1 --- drivers/char/nvram.c~ Wed Feb 14 02:40:29 2001
2 +++ drivers/char/nvram.c Wed Feb 28 23:16:33 2001
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.
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.
12 * 1.1 Cesar Barros: SMP locking fixes
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.
18 -#define NVRAM_VERSION "1.1"
19 +#define NVRAM_VERSION "1.2"
21 #include <linux/module.h>
22 #include <linux/config.h>
24 PRINT_PROC( "%02x\n", type == 0x0f ? nvram[12] : type );
26 PRINT_PROC( "none\n" );
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) );
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",