|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* @(#)nvram.h 1.0 10/06/86 (c) 1986 NeXT */ ! 26: ! 27: /* ! 28: * HISTORY ! 29: * ! 30: * 15-Mar-90 John Seamons (jks) at NeXT ! 31: * Replaced unused ni_timezone field with bits to indicate auto poweron ! 32: * mode in new clock chip. Updated to include ni_reset field used by ROM. ! 33: */ ! 34: ! 35: #ifndef _NVRAM_ ! 36: #define _NVRAM_ ! 37: #ifndef __ASSEMBLER__ ! 38: struct nvram_info { ! 39: #define NI_RESET 9 ! 40: u_int ni_reset : 4, ! 41: #define SCC_ALT_CONS 0x08000000 ! 42: ni_alt_cons : 1, ! 43: #define ALLOW_EJECT 0x04000000 ! 44: ni_allow_eject : 1, ! 45: ni_vol_r : 6, ! 46: ni_brightness : 6, ! 47: #define HW_PWD 0x6 ! 48: ni_hw_pwd : 4, ! 49: ni_vol_l : 6, ! 50: ni_spkren : 1, ! 51: ni_lowpass : 1, ! 52: #define BOOT_ANY 0x00000002 ! 53: ni_boot_any : 1, ! 54: #define ANY_CMD 0x00000001 ! 55: ni_any_cmd : 1; ! 56: #define NVRAM_HW_PASSWD 6 ! 57: u_char ni_ep[NVRAM_HW_PASSWD]; ! 58: #define ni_enetaddr ni_ep ! 59: #define ni_hw_passwd ni_ep ! 60: u_short ni_simm; /* 4 SIMMs, 4 bits per SIMM */ ! 61: char ni_adobe[2]; ! 62: u_char ni_pot[3]; ! 63: u_char ni_new_clock_chip : 1, ! 64: ni_auto_poweron : 1, ! 65: ni_use_console_slot : 1, /* Console slot was set by user. */ ! 66: ni_console_slot : 2, /* Preferred console dev slot>>1 */ ! 67: ni_use_parity_mem : 1, /* Use parity RAM if available? */ ! 68: : 2; ! 69: #define NVRAM_BOOTCMD 12 ! 70: char ni_bootcmd[NVRAM_BOOTCMD]; ! 71: u_short ni_cksum; ! 72: }; ! 73: ! 74: #define N_brightness 0 ! 75: #define N_volume_l 1 ! 76: #define N_volume_r 2 ! 77: #endif /* __ASSEMBLER__ */ ! 78: ! 79: /* nominal values during self test */ ! 80: #define BRIGHT_NOM 20 ! 81: #define VOL_NOM 0 ! 82: ! 83: /* bits in ni_pot[0] */ ! 84: #define POT_ON 0x01 ! 85: #define EXTENDED_POT 0x02 ! 86: #define LOOP_POT 0x04 ! 87: #define VERBOSE_POT 0x08 ! 88: #define TEST_DRAM_POT 0x10 ! 89: #define BOOT_POT 0x20 ! 90: #define TEST_MONITOR_POT 0x40 ! 91: ! 92: /* ni_pot[1] oldest selftest error code */ ! 93: /* ni_pot[2] most recent selftest error code */ ! 94: ! 95: #endif /* _NVRAM_ */ ! 96:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.