Lines Matching full:nvram
11 * "NVRAM" (NV stands for non-volatile).
13 * The data are supplied as a (seekable) character device, /dev/nvram. The
18 * Checksums over the NVRAM contents are managed by this driver. In case of a
20 * to a sane state either by ioctl(NVRAM_INIT) (clear whole NVRAM) or
25 * want to access the NVRAM: nvram_{read,write,check_checksum,set_checksum}.
41 #include <linux/nvram.h>
52 # error Cannot build nvram driver for this machine configuration.
137 * purpose memory in the NVRAM - that is to say, they all add the
138 * NVRAM_FIRST_BYTE offset. Pass them offsets into NVRAM as if you did not
212 * The are the file operation function for user access to /dev/nvram
297 /* initialize NVRAM contents and checksum */ in nvram_ioctl()
394 if (!proc_create_single("driver/nvram", 0, NULL, nvram_proc_read)) in nvram_add_proc_fs()
413 "nvram",
427 printk(KERN_ERR "nvram: can't misc_register on minor=%d\n", in nvram_init()
433 printk(KERN_ERR "nvram: can't create /proc/driver/nvram\n"); in nvram_init()
447 remove_proc_entry("driver/nvram", NULL); in nvram_cleanup_module()
498 static void pc_proc_infos(unsigned char *nvram, struct seq_file *seq, in pc_proc_infos() argument
511 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_proc_infos()
513 type = nvram[2] >> 4; in pc_proc_infos()
519 type = nvram[2] & 0x0f; in pc_proc_infos()
526 type = nvram[4] >> 4; in pc_proc_infos()
528 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type); in pc_proc_infos()
533 type = nvram[4] & 0x0f; in pc_proc_infos()
535 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type); in pc_proc_infos()
540 nvram[18] | (nvram[19] << 8), in pc_proc_infos()
541 nvram[20], nvram[25], in pc_proc_infos()
542 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8)); in pc_proc_infos()
544 nvram[39] | (nvram[40] << 8), in pc_proc_infos()
545 nvram[41], nvram[46], in pc_proc_infos()
546 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8)); in pc_proc_infos()
548 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8)); in pc_proc_infos()
550 nvram[9] | (nvram[10] << 8), nvram[34] | (nvram[35] << 8)); in pc_proc_infos()
553 gfx_types[(nvram[6] >> 4) & 3]); in pc_proc_infos()
556 (nvram[6] & 2) ? "" : "not "); in pc_proc_infos()
628 static void atari_proc_infos(unsigned char *nvram, struct seq_file *seq, in atari_proc_infos() argument
639 if (nvram[1] == boot_prefs[i].val) { in atari_proc_infos()
645 seq_printf(seq, "0x%02x (undefined)\n", nvram[1]); in atari_proc_infos()
648 (nvram[16] & 0x80) ? "on" : "off"); in atari_proc_infos()
650 if (nvram[16] & 0x80) in atari_proc_infos()
651 seq_printf(seq, "%d\n", nvram[16] & 7); in atari_proc_infos()
660 if (nvram[6] < ARRAY_SIZE(languages)) in atari_proc_infos()
661 seq_printf(seq, "%s\n", languages[nvram[6]]); in atari_proc_infos()
663 seq_printf(seq, "%u (undefined)\n", nvram[6]); in atari_proc_infos()
665 if (nvram[7] < ARRAY_SIZE(languages)) in atari_proc_infos()
666 seq_printf(seq, "%s\n", languages[nvram[7]]); in atari_proc_infos()
668 seq_printf(seq, "%u (undefined)\n", nvram[7]); in atari_proc_infos()
670 seq_printf(seq, dateformat[nvram[8] & 7], in atari_proc_infos()
671 nvram[9] ? nvram[9] : '/', nvram[9] ? nvram[9] : '/'); in atari_proc_infos()
672 seq_printf(seq, ", %dh clock\n", nvram[8] & 16 ? 24 : 12); in atari_proc_infos()
674 if (nvram[10] == 0) in atari_proc_infos()
677 seq_printf(seq, "%ds%s\n", nvram[10], in atari_proc_infos()
678 nvram[10] < 8 ? ", no memory test" : ""); in atari_proc_infos()
680 vmode = (nvram[14] << 8) | nvram[15]; in atari_proc_infos()