Lines Matching defs:nvram
13 * The data are supplied as a (seekable) character device, /dev/nvram. The
41 #include <linux/nvram.h>
52 # error Cannot build nvram driver for this machine configuration.
201 * The are the file operation function for user access to /dev/nvram
407 if (!proc_create("driver/nvram", 0, NULL, &nvram_proc_fops))
426 "nvram",
440 printk(KERN_ERR "nvram: can't misc_register on minor=%d\n",
446 printk(KERN_ERR "nvram: can't create /proc/driver/nvram\n");
460 remove_proc_entry("driver/nvram", NULL);
511 static void pc_proc_infos(unsigned char *nvram, struct seq_file *seq,
524 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0);
526 type = nvram[2] >> 4;
532 type = nvram[2] & 0x0f;
539 type = nvram[4] >> 4;
541 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type);
546 type = nvram[4] & 0x0f;
548 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type);
553 nvram[18] | (nvram[19] << 8),
554 nvram[20], nvram[25],
555 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8));
557 nvram[39] | (nvram[40] << 8),
558 nvram[41], nvram[46],
559 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8));
561 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8));
563 nvram[9] | (nvram[10] << 8), nvram[34] | (nvram[35] << 8));
566 gfx_types[(nvram[6] >> 4) & 3]);
569 (nvram[6] & 2) ? "" : "not ");
641 static void atari_proc_infos(unsigned char *nvram, struct seq_file *seq,
652 if (nvram[1] == boot_prefs[i].val) {
658 seq_printf(seq, "0x%02x (undefined)\n", nvram[1]);
661 (nvram[16] & 0x80) ? "on" : "off");
663 if (nvram[16] & 0x80)
664 seq_printf(seq, "%d\n", nvram[16] & 7);
673 if (nvram[6] < ARRAY_SIZE(languages))
674 seq_printf(seq, "%s\n", languages[nvram[6]]);
676 seq_printf(seq, "%u (undefined)\n", nvram[6]);
678 if (nvram[7] < ARRAY_SIZE(languages))
679 seq_printf(seq, "%s\n", languages[nvram[7]]);
681 seq_printf(seq, "%u (undefined)\n", nvram[7]);
683 seq_printf(seq, dateformat[nvram[8] & 7],
684 nvram[9] ? nvram[9] : '/', nvram[9] ? nvram[9] : '/');
685 seq_printf(seq, ", %dh clock\n", nvram[8] & 16 ? 24 : 12);
687 if (nvram[10] == 0)
690 seq_printf(seq, "%ds%s\n", nvram[10],
691 nvram[10] < 8 ? ", no memory test" : "");
693 vmode = (nvram[14] << 8) || nvram[15];