Lines Matching full:nvram
3 * CMOS/NV-RAM driver for Atari. Adapted from drivers/char/nvram.c.
15 #include <linux/nvram.h>
26 * purpose memory in the NVRAM - that is to say, they all add the
27 * NVRAM_FIRST_BYTE offset. Pass them offsets into NVRAM as if you did not
178 static void atari_nvram_proc_read(unsigned char *nvram, struct seq_file *seq, in atari_nvram_proc_read() argument
193 if (nvram[1] == boot_prefs[i].val) { in atari_nvram_proc_read()
198 seq_printf(seq, "0x%02x (undefined)\n", nvram[1]); in atari_nvram_proc_read()
201 (nvram[16] & 0x80) ? "on" : "off"); in atari_nvram_proc_read()
203 if (nvram[16] & 0x80) in atari_nvram_proc_read()
204 seq_printf(seq, "%d\n", nvram[16] & 7); in atari_nvram_proc_read()
212 if (nvram[6] < ARRAY_SIZE(languages)) in atari_nvram_proc_read()
213 seq_printf(seq, "%s\n", languages[nvram[6]]); in atari_nvram_proc_read()
215 seq_printf(seq, "%u (undefined)\n", nvram[6]); in atari_nvram_proc_read()
217 if (nvram[7] < ARRAY_SIZE(languages)) in atari_nvram_proc_read()
218 seq_printf(seq, "%s\n", languages[nvram[7]]); in atari_nvram_proc_read()
220 seq_printf(seq, "%u (undefined)\n", nvram[7]); in atari_nvram_proc_read()
222 seq_printf(seq, dateformat[nvram[8] & 7], in atari_nvram_proc_read()
223 nvram[9] ? nvram[9] : '/', nvram[9] ? nvram[9] : '/'); in atari_nvram_proc_read()
224 seq_printf(seq, ", %dh clock\n", nvram[8] & 16 ? 24 : 12); in atari_nvram_proc_read()
226 if (nvram[10] == 0) in atari_nvram_proc_read()
229 seq_printf(seq, "%ds%s\n", nvram[10], in atari_nvram_proc_read()
230 nvram[10] < 8 ? ", no memory test" : ""); in atari_nvram_proc_read()
232 vmode = (nvram[14] << 8) | nvram[15]; in atari_nvram_proc_read()
264 if (!proc_create_single("driver/nvram", 0, NULL, nvram_proc_read)) { in atari_nvram_init()
265 pr_err("nvram: can't create /proc/driver/nvram\n"); in atari_nvram_init()