Lines Matching full:nvram

12  * "NVRAM" (NV stands for non-volatile).
14 * The data are supplied as a (seekable) character device, /dev/nvram. The
19 * Checksums over the NVRAM contents are managed by this driver. In case of a
21 * to a sane state either by ioctl(NVRAM_INIT) (clear whole NVRAM) or
35 #include <linux/nvram.h>
53 #include <asm/nvram.h>
71 * purpose memory in the NVRAM - that is to say, they all add the
72 * NVRAM_FIRST_BYTE offset. Pass them offsets into NVRAM as if you did not
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"); in nvram_misc_ioctl()
323 /* initialize NVRAM contents and checksum */ in nvram_misc_ioctl()
411 static void pc_nvram_proc_read(unsigned char *nvram, struct seq_file *seq, in pc_nvram_proc_read() argument
424 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_nvram_proc_read()
426 type = nvram[2] >> 4; in pc_nvram_proc_read()
432 type = nvram[2] & 0x0f; in pc_nvram_proc_read()
439 type = nvram[4] >> 4; in pc_nvram_proc_read()
441 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type); in pc_nvram_proc_read()
446 type = nvram[4] & 0x0f; in pc_nvram_proc_read()
448 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type); in pc_nvram_proc_read()
453 nvram[18] | (nvram[19] << 8), in pc_nvram_proc_read()
454 nvram[20], nvram[25], in pc_nvram_proc_read()
455 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8)); in pc_nvram_proc_read()
457 nvram[39] | (nvram[40] << 8), in pc_nvram_proc_read()
458 nvram[41], nvram[46], in pc_nvram_proc_read()
459 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8)); in pc_nvram_proc_read()
461 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8)); in pc_nvram_proc_read()
463 nvram[9] | (nvram[10] << 8), nvram[34] | (nvram[35] << 8)); in pc_nvram_proc_read()
466 gfx_types[(nvram[6] >> 4) & 3]); in pc_nvram_proc_read()
469 (nvram[6] & 2) ? "" : "not "); in pc_nvram_proc_read()
502 "nvram",
516 pr_err("nvram: can't misc_register on minor=%d\n", NVRAM_MINOR); in nvram_module_init()
521 if (!proc_create_single("driver/nvram", 0, NULL, nvram_proc_read)) { in nvram_module_init()
522 pr_err("nvram: can't create /proc/driver/nvram\n"); in nvram_module_init()
535 remove_proc_entry("driver/nvram", NULL); in nvram_module_exit()
546 MODULE_ALIAS("devname:nvram");