Lines Matching defs:nvram
14 * The data are supplied as a (seekable) character device, /dev/nvram. The
35 #include <linux/nvram.h>
53 #include <asm/nvram.h>
218 * The are the file operation function for user access to /dev/nvram
287 pr_warn("nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n");
401 static void pc_nvram_proc_read(unsigned char *nvram, struct seq_file *seq,
414 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0);
416 type = nvram[2] >> 4;
422 type = nvram[2] & 0x0f;
429 type = nvram[4] >> 4;
431 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type);
436 type = nvram[4] & 0x0f;
438 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type);
443 nvram[18] | (nvram[19] << 8),
444 nvram[20], nvram[25],
445 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8));
447 nvram[39] | (nvram[40] << 8),
448 nvram[41], nvram[46],
449 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8));
451 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8));
453 nvram[9] | (nvram[10] << 8), nvram[34] | (nvram[35] << 8));
456 gfx_types[(nvram[6] >> 4) & 3]);
459 (nvram[6] & 2) ? "" : "not ");
492 "nvram",
506 pr_err("nvram: can't misc_register on minor=%d\n", NVRAM_MINOR);
511 if (!proc_create_single("driver/nvram", 0, NULL, nvram_proc_read)) {
512 pr_err("nvram: can't create /proc/driver/nvram\n");
525 remove_proc_entry("driver/nvram", NULL);
536 MODULE_ALIAS("devname:nvram");