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>
219 * The are the file operation function for user access to /dev/nvram
288 pr_warn("nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n");
411 static void pc_nvram_proc_read(unsigned char *nvram, struct seq_file *seq,
424 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0);
426 type = nvram[2] >> 4;
432 type = nvram[2] & 0x0f;
439 type = nvram[4] >> 4;
441 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type);
446 type = nvram[4] & 0x0f;
448 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type);
453 nvram[18] | (nvram[19] << 8),
454 nvram[20], nvram[25],
455 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8));
457 nvram[39] | (nvram[40] << 8),
458 nvram[41], nvram[46],
459 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8));
461 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8));
463 nvram[9] | (nvram[10] << 8), nvram[34] | (nvram[35] << 8));
466 gfx_types[(nvram[6] >> 4) & 3]);
469 (nvram[6] & 2) ? "" : "not ");
502 "nvram",
516 pr_err("nvram: can't misc_register on minor=%d\n", NVRAM_MINOR);
521 if (!proc_create_single("driver/nvram", 0, NULL, nvram_proc_read)) {
522 pr_err("nvram: can't create /proc/driver/nvram\n");
535 remove_proc_entry("driver/nvram", NULL);
545 MODULE_ALIAS("devname:nvram");