Home | History | Annotate | Line # | Download | only in include
eeprom.h revision 1.1
      1  1.1  glass /*
      2  1.1  glass  * Copyright (c) 1994 Gordon W. Ross
      3  1.1  glass  * All rights reserved.
      4  1.1  glass  *
      5  1.1  glass  * Redistribution and use in source and binary forms, with or without
      6  1.1  glass  * modification, are permitted provided that the following conditions
      7  1.1  glass  * are met:
      8  1.1  glass  * 1. Redistributions of source code must retain the above copyright
      9  1.1  glass  *    notice, this list of conditions and the following disclaimer.
     10  1.1  glass  * 2. Redistributions in binary form must reproduce the above copyright
     11  1.1  glass  *    notice, this list of conditions and the following disclaimer in the
     12  1.1  glass  *    documentation and/or other materials provided with the distribution.
     13  1.1  glass  * 3. All advertising materials mentioning features or use of this software
     14  1.1  glass  *    must display the following acknowledgement:
     15  1.1  glass  *      This product includes software developed by Gordon W. Ross.
     16  1.1  glass  * 4. The name of the Author may not be used to endorse or promote products
     17  1.1  glass  *    derived from this software without specific prior written permission.
     18  1.1  glass  *
     19  1.1  glass  * THIS SOFTWARE IS PROVIDED BY Gordon W. Ross ``AS IS'' AND
     20  1.1  glass  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21  1.1  glass  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22  1.1  glass  * ARE DISCLAIMED.  IN NO EVENT SHALL THE Gordon W. Ross BE LIABLE
     23  1.1  glass  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     24  1.1  glass  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     25  1.1  glass  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     26  1.1  glass  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27  1.1  glass  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28  1.1  glass  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29  1.1  glass  * SUCH DAMAGE.
     30  1.1  glass  *
     31  1.1  glass  * $Header: /tank/opengrok/rsync2/NetBSD/src/sys/arch/sun3/include/eeprom.h,v 1.1 1994/03/16 04:34:00 glass Exp $
     32  1.1  glass  */
     33  1.1  glass 
     34  1.1  glass /*
     35  1.1  glass  * Structure/definitions for the Sun3 EEPROM.
     36  1.1  glass  *
     37  1.1  glass  * This information is published in the Sun document:
     38  1.1  glass  * "PROM User's Manual", part number 800-1736010.
     39  1.1  glass  */
     40  1.1  glass 
     41  1.1  glass 
     42  1.1  glass /*
     43  1.1  glass  * Note that most places where the PROM stores a "true/false" flag,
     44  1.1  glass  * the true value is 0x12 and false is the usual zero.  Such flags
     45  1.1  glass  * all take the values EE_TRUE or EE_FALSE so this file does not
     46  1.1  glass  * need to define so many value macros.
     47  1.1  glass  */
     48  1.1  glass #define	EE_TRUE 0x12
     49  1.1  glass #define	EE_FALSE   0
     50  1.1  glass 
     51  1.1  glass struct eeprom {
     52  1.1  glass 
     53  1.1  glass 	/* 0x00 */
     54  1.1  glass 	u_char	eeTestArea[4];		/* Factory Defined */
     55  1.1  glass 	u_short	eeWriteCount[4];	/*    ||      ||   */
     56  1.1  glass 	u_char	eeChecksum[4];  	/*    ||      ||   */
     57  1.1  glass 	time_t	eeLastHwUpdate; 	/*    ||      ||   */
     58  1.1  glass 
     59  1.1  glass 	/* 0x14 */
     60  1.1  glass 	u_char	eeInstalledMem; 	/* Megabytes */
     61  1.1  glass 	u_char	eeMemTestSize;		/*     ||    */
     62  1.1  glass 
     63  1.1  glass 	/* 0x16 */
     64  1.1  glass 	u_char	eeScreenSize;
     65  1.1  glass #define	EE_SCR_1152X900 	0x00
     66  1.1  glass #define	EE_SCR_1024X1024	0x12
     67  1.1  glass #define EE_SCR_1600X1280	0x13
     68  1.1  glass #define EE_SCR_1440X1440	0x14
     69  1.1  glass 
     70  1.1  glass 	u_char	eeWatchDogDoesReset;	/* Watchdog timeout action:
     71  1.1  glass 					 * true:  reset/reboot
     72  1.1  glass 					 * false: return to monitor
     73  1.1  glass 					 */
     74  1.1  glass 	/* 0x18 */
     75  1.1  glass 	u_char	eeBootDevStored;	/* Is the boot device stored:
     76  1.1  glass 					 * true:  use stored device spec.
     77  1.1  glass 					 * false: use default (try all)
     78  1.1  glass 					 */
     79  1.1  glass 	/* Stored boot device spec. i.e.: "sd(Ctlr,Unit,Part)" */
     80  1.1  glass 	u_char	eeBootDevName[2];	/* xy,xd,sd,ie,le,st,xt,mt,...	*/
     81  1.1  glass 	u_char	eeBootDevCtlr;
     82  1.1  glass 	u_char	eeBootDevUnit;
     83  1.1  glass 	u_char	eeBootDevPart;
     84  1.1  glass 
     85  1.1  glass 	/* 0x1E */
     86  1.1  glass 	u_char	eeKeyboardType;		/* zero for sun keyboards */
     87  1.1  glass 	u_char	eeConsole;		/* What to use for the console	*/
     88  1.1  glass #define	EE_CONS_BW		0x00	/* - On-board B&W / keyboard	*/
     89  1.1  glass #define	EE_CONS_TTYA		0x10	/* - serial port A		*/
     90  1.1  glass #define	EE_CONS_TTYB		0x11	/* - serial port B		*/
     91  1.1  glass #define	EE_CONS_COLOR		0x12	/* - Color FB / keyboard	*/
     92  1.1  glass 
     93  1.1  glass 	/* 0x20 */
     94  1.1  glass 	u_char	eeCustomBanner;		/* Is there a custom banner:
     95  1.1  glass 					 * true:  use text at 0x68
     96  1.1  glass 					 * false: use Sun banner
     97  1.1  glass 					 */
     98  1.1  glass 
     99  1.1  glass 	u_char	eeKeyClick;		/* true/false */
    100  1.1  glass 
    101  1.1  glass 	/* Boot device with "Diag" switch in Diagnostic mode: */
    102  1.1  glass 	u_char	eeDiagDevName[2];
    103  1.1  glass 	u_char	eeDiagDevCtlr;
    104  1.1  glass 	u_char	eeDiagDevUnit;
    105  1.1  glass 	u_char	eeDiagDevPart;
    106  1.1  glass 
    107  1.1  glass 	/* Video white-on-black (not implemented) */
    108  1.1  glass 	u_char	eeWhiteOnBlack;		/* true/false */
    109  1.1  glass 
    110  1.1  glass 	/* 0x28 */
    111  1.1  glass 	char	eeDiagPath[40];		/* path name of diag program	*/
    112  1.1  glass 
    113  1.1  glass 	/* 0x50 */
    114  1.1  glass 	u_char	eeTtyCols;		/* normally 80 */
    115  1.1  glass 	u_char	eeTtyRows;		/* normally 34 */
    116  1.1  glass 	u_char	ee_x52[6];		/* unused */
    117  1.1  glass 
    118  1.1  glass 	/* 0x58 */
    119  1.1  glass 	/* Default parameters for tty A and tty B: */
    120  1.1  glass 	struct	eeTtyDef {
    121  1.1  glass 	    u_char	eetBaudSet;	/* Is the baud rate set?
    122  1.1  glass 					 * true:  use values here
    123  1.1  glass 					 * false: use default (9600)
    124  1.1  glass 					 */
    125  1.1  glass 	    u_char	eetBaudHi;	/* i.e. 96..  */
    126  1.1  glass 	    u_char	eetBaudLo;	/*      ..00  */
    127  1.1  glass 	    u_char	eetNoRtsDtr;	/* true: disable H/W flow
    128  1.1  glass 					 * false: enable H/W flow */
    129  1.1  glass 	    u_char	eet_pad[4];
    130  1.1  glass 	} eeTtyDefA, eeTtyDefB;
    131  1.1  glass 
    132  1.1  glass 	/* 0x68 */
    133  1.1  glass 	char eeBannerString[80];	/* see eeCustomBanner above */
    134  1.1  glass 
    135  1.1  glass 	/* 0xB8 */
    136  1.1  glass 	u_short	eeTestPattern;		/* must be 0xAA55 */
    137  1.1  glass 	u_short ee_xBA;			/* unused */
    138  1.1  glass 
    139  1.1  glass 	/* 0xBC */
    140  1.1  glass 	/* Configuration data.  Hopefully we don't need it. */
    141  1.1  glass 	struct eeConf {
    142  1.1  glass 	    u_char	eecData[16];
    143  1.1  glass 	} eeConf[12+1];
    144  1.1  glass 
    145  1.1  glass 	/* 0x18c */
    146  1.1  glass 	u_char	eeAltKeyTable;		/* What Key table to use:
    147  1.1  glass 					 * 0x58: EEPROM tables
    148  1.1  glass 					 * else: PROM key tables
    149  1.1  glass 					 */
    150  1.1  glass 	u_char	eeKeyboardLocale;	/* extended keyboard type */
    151  1.1  glass 	u_char	eeKeyboardID;		/* for EEPROM key tables  */
    152  1.1  glass 	u_char	eeCustomLogo;		/* true: use eeLogoBitmap */
    153  1.1  glass 
    154  1.1  glass 	/* 0x190 */
    155  1.1  glass 	u_char	eeKeymapLC[0x80];
    156  1.1  glass 	u_char	eeKeymapUC[0x80];
    157  1.1  glass 
    158  1.1  glass 	/* 0x290 */
    159  1.1  glass 	u_char	eeLogoBitmap[64][8];	/* 64x64 bit custom logo */
    160  1.1  glass 
    161  1.1  glass 	/* 0x490 */
    162  1.1  glass 	u_char	ee_x490[0x500-0x490];	/* unused */
    163  1.1  glass 
    164  1.1  glass 	/* Other stuff we don't care about... */
    165  1.1  glass 	/* 0x500 */
    166  1.1  glass 	u_char	eeReserved[0x100];
    167  1.1  glass 	/* 0x600 */
    168  1.1  glass 	u_char	eeROM_Area[0x100];
    169  1.1  glass 	/* 0x700 */
    170  1.1  glass 	u_char	eeUnixArea[0x100];
    171  1.1  glass };
    172