]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.2-nvram-hdd.patch
- obsolete
[packages/kernel.git] / linux-2.4.2-nvram-hdd.patch
CommitLineData
db84aa94 1--- drivers/char/nvram.c~ Wed Feb 14 02:40:29 2001
2+++ drivers/char/nvram.c Wed Feb 28 23:16:33 2001
3@@ -25,12 +25,18 @@
4 * the kernel and is not a module. Since the functions are used by some Atari
5 * drivers, this is the case on the Atari.
6 *
7+ * 02/2001: I've coded some user space hacks for PC that use the NVRAM driver
8+ * to set/show hard disk type(s), floppy disk type(s) and display type. These
9+ * can be found in bios-cmos-X.Y.tar.gz (X.Y = version #). Paul G.
10+ *
11 *
12 * 1.1 Cesar Barros: SMP locking fixes
13 * added changelog
14+ * 1.2 Paul Gortmaker: remove display of type 48/49 hard disk data
15+ from /proc as it is not standardized & depends on BIOS mfr.
16 */
17
18-#define NVRAM_VERSION "1.1"
19+#define NVRAM_VERSION "1.2"
20
21 #include <linux/module.h>
22 #include <linux/config.h>
23@@ -532,17 +538,6 @@
24 PRINT_PROC( "%02x\n", type == 0x0f ? nvram[12] : type );
25 else
26 PRINT_PROC( "none\n" );
27-
28- PRINT_PROC( "HD type 48 data: %d/%d/%d C/H/S, precomp %d, lz %d\n",
29- nvram[18] | (nvram[19] << 8),
30- nvram[20], nvram[25],
31- nvram[21] | (nvram[22] << 8),
32- nvram[23] | (nvram[24] << 8) );
33- PRINT_PROC( "HD type 49 data: %d/%d/%d C/H/S, precomp %d, lz %d\n",
34- nvram[39] | (nvram[40] << 8),
35- nvram[41], nvram[46],
36- nvram[42] | (nvram[43] << 8),
37- nvram[44] | (nvram[45] << 8) );
38
39 PRINT_PROC( "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8) );
40 PRINT_PROC( "Extended memory: %d kB (configured), %d kB (tested)\n",
41
This page took 0.240625 seconds and 4 git commands to generate.