Lines Matching refs:nvram
61 # error Cannot build nvram driver for this machine configuration.
549 pc_proc_infos(unsigned char *nvram, char *buffer, int *len, in pc_proc_infos() argument
562 (nvram[6] & 1) ? (nvram[6] >> 6) + 1 : 0); in pc_proc_infos()
564 type = nvram[2] >> 4; in pc_proc_infos()
570 type = nvram[2] & 0x0f; in pc_proc_infos()
577 type = nvram[4] >> 4; in pc_proc_infos()
579 PRINT_PROC("%02x\n", type == 0x0f ? nvram[11] : type); in pc_proc_infos()
584 type = nvram[4] & 0x0f; in pc_proc_infos()
586 PRINT_PROC("%02x\n", type == 0x0f ? nvram[12] : type); in pc_proc_infos()
591 nvram[18] | (nvram[19] << 8), in pc_proc_infos()
592 nvram[20], nvram[25], in pc_proc_infos()
593 nvram[21] | (nvram[22] << 8), nvram[23] | (nvram[24] << 8)); in pc_proc_infos()
595 nvram[39] | (nvram[40] << 8), in pc_proc_infos()
596 nvram[41], nvram[46], in pc_proc_infos()
597 nvram[42] | (nvram[43] << 8), nvram[44] | (nvram[45] << 8)); in pc_proc_infos()
599 PRINT_PROC("DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8)); in pc_proc_infos()
601 nvram[9] | (nvram[10] << 8), nvram[34] | (nvram[35] << 8)); in pc_proc_infos()
603 PRINT_PROC("Gfx adapter : %s\n", gfx_types[(nvram[6] >> 4) & 3]); in pc_proc_infos()
606 (nvram[6] & 2) ? "" : "not "); in pc_proc_infos()
652 static int cobalt_proc_infos(unsigned char *nvram, char *buffer, int *len, in cobalt_proc_infos() argument
668 flags = nvram[COBT_CMOS_FLAG_BYTE_0] << 8 in cobalt_proc_infos()
669 | nvram[COBT_CMOS_FLAG_BYTE_1]; in cobalt_proc_infos()
699 switch (nvram[COBT_CMOS_BOOT_METHOD]) { in cobalt_proc_infos()
718 nvram[COBT_CMOS_BOOT_DEV0_MAJ], in cobalt_proc_infos()
719 nvram[COBT_CMOS_BOOT_DEV0_MIN] ); in cobalt_proc_infos()
721 nvram[COBT_CMOS_BOOT_DEV1_MAJ], in cobalt_proc_infos()
722 nvram[COBT_CMOS_BOOT_DEV1_MIN] ); in cobalt_proc_infos()
724 nvram[COBT_CMOS_BOOT_DEV2_MAJ], in cobalt_proc_infos()
725 nvram[COBT_CMOS_BOOT_DEV2_MIN] ); in cobalt_proc_infos()
728 nvram[COBT_CMOS_UPTIME_0] << 24 | in cobalt_proc_infos()
729 nvram[COBT_CMOS_UPTIME_1] << 16 | in cobalt_proc_infos()
730 nvram[COBT_CMOS_UPTIME_2] << 8 | in cobalt_proc_infos()
731 nvram[COBT_CMOS_UPTIME_3]); in cobalt_proc_infos()
734 nvram[COBT_CMOS_BOOTCOUNT_0] << 24 | in cobalt_proc_infos()
735 nvram[COBT_CMOS_BOOTCOUNT_1] << 16 | in cobalt_proc_infos()
736 nvram[COBT_CMOS_BOOTCOUNT_2] << 8 | in cobalt_proc_infos()
737 nvram[COBT_CMOS_BOOTCOUNT_3]); in cobalt_proc_infos()
741 sernum[i] = nvram[COBT_CMOS_SYS_SERNUM_0 + i]; in cobalt_proc_infos()
752 if (checksum != nvram[COBT_CMOS_SYS_SERNUM_CSUM]) { in cobalt_proc_infos()
757 PRINT_PROC("Rom Revison: %d.%d.%d\n", nvram[COBT_CMOS_ROM_REV_MAJ], in cobalt_proc_infos()
758 nvram[COBT_CMOS_ROM_REV_MIN], nvram[COBT_CMOS_ROM_REV_REV]); in cobalt_proc_infos()
760 PRINT_PROC("BTO Server: %d.%d.%d.%d", nvram[COBT_CMOS_BTO_IP_0], in cobalt_proc_infos()
761 nvram[COBT_CMOS_BTO_IP_1], nvram[COBT_CMOS_BTO_IP_2], in cobalt_proc_infos()
762 nvram[COBT_CMOS_BTO_IP_3]); in cobalt_proc_infos()
763 bto_csum = nvram[COBT_CMOS_BTO_IP_0] + nvram[COBT_CMOS_BTO_IP_1] in cobalt_proc_infos()
764 + nvram[COBT_CMOS_BTO_IP_2] + nvram[COBT_CMOS_BTO_IP_3]; in cobalt_proc_infos()
765 if (bto_csum != nvram[COBT_CMOS_BTO_IP_CSUM]) { in cobalt_proc_infos()
771 && nvram[COBT_CMOS_VERSION] >= COBT_CMOS_VER_BTOCODE) { in cobalt_proc_infos()
773 nvram[COBT_CMOS_BTO_CODE_0] << 24 | in cobalt_proc_infos()
774 nvram[COBT_CMOS_BTO_CODE_1] << 16 | in cobalt_proc_infos()
775 nvram[COBT_CMOS_BTO_CODE_2] << 8 | in cobalt_proc_infos()
776 nvram[COBT_CMOS_BTO_CODE_3]); in cobalt_proc_infos()
854 atari_proc_infos(unsigned char *nvram, char *buffer, int *len, in atari_proc_infos() argument
865 if (nvram[1] == boot_prefs[i].val) { in atari_proc_infos()
871 PRINT_PROC("0x%02x (undefined)\n", nvram[1]); in atari_proc_infos()
874 (nvram[16] & 0x80) ? "on" : "off"); in atari_proc_infos()
876 if (nvram[16] & 0x80) in atari_proc_infos()
877 PRINT_PROC("%d\n", nvram[16] & 7); in atari_proc_infos()
886 if (nvram[6] < fieldsize(languages)) in atari_proc_infos()
887 PRINT_PROC("%s\n", languages[nvram[6]]); in atari_proc_infos()
889 PRINT_PROC("%u (undefined)\n", nvram[6]); in atari_proc_infos()
891 if (nvram[7] < fieldsize(languages)) in atari_proc_infos()
892 PRINT_PROC("%s\n", languages[nvram[7]]); in atari_proc_infos()
894 PRINT_PROC("%u (undefined)\n", nvram[7]); in atari_proc_infos()
896 PRINT_PROC(dateformat[nvram[8] & 7], in atari_proc_infos()
897 nvram[9] ? nvram[9] : '/', nvram[9] ? nvram[9] : '/'); in atari_proc_infos()
898 PRINT_PROC(", %dh clock\n", nvram[8] & 16 ? 24 : 12); in atari_proc_infos()
900 if (nvram[10] == 0) in atari_proc_infos()
903 PRINT_PROC("%ds%s\n", nvram[10], in atari_proc_infos()
904 nvram[10] < 8 ? ", no memory test" : ""); in atari_proc_infos()
906 vmode = (nvram[14] << 8) || nvram[15]; in atari_proc_infos()