xref: /original-bsd/sys/luna68k/dev/nvram.h (revision 3705696b)
1 /*
2  * Copyright (c) 1992 OMRON Corporation.
3  * Copyright (c) 1992, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * OMRON Corporation.
8  *
9  * %sccs.include.redist.c%
10  *
11  *
12  *	@(#)nvram.h	8.1 (Berkeley) 06/10/93
13  */
14 
15 /*
16  * OMRON: $Id: nvram.h,v 1.1 92/05/27 14:32:51 moti Exp $
17  * by Shigeto Mochida
18  */
19 
20 /*
21  * Non Volatile RAM
22  */
23 
24 #define	NVRAMSZ		2040	/* Size of NVRAM. (Total 2040 bytes) */
25 #define NVSYMSZ		16
26 #define NVVALSZ		16
27 #define NVSYSSZ		42
28 #define NVUSRSZ		512
29 
30 /*
31  * Battery back-up memory space.
32  */
33 struct nvram {
34 	char	nv_testwrite[4];	/* for battery check */
35 	char	nv_hdr[4];		/* header name */
36 	long	nv_machtype;		/* machine-type ID */
37 	long	nv_machno;		/* machine number */
38 	char	nv_calclock[12];	/* RTC initialize */
39 	char	nv_checksum[4];		/* check sum for "nv_system" */
40 	struct nv_system {
41 		char	nv_symbol[NVSYMSZ];
42 		char	nv_value[NVVALSZ];
43 	} nv_system[NVSYSSZ];		/* system define */
44 	char	nv_reserve[152];	/* reserved */
45 	char	nv_user[NVUSRSZ];		/* user avail area */
46 };
47