154002Sfujita /* 254002Sfujita * Copyright (c) 1992 OMRON Corporation. 3*63192Sbostic * Copyright (c) 1992, 1993 4*63192Sbostic * The Regents of the University of California. All rights reserved. 554002Sfujita * 654002Sfujita * This code is derived from software contributed to Berkeley by 754002Sfujita * OMRON Corporation. 854002Sfujita * 954002Sfujita * %sccs.include.redist.c% 1054002Sfujita * 1154002Sfujita * 12*63192Sbostic * @(#)nvram.h 8.1 (Berkeley) 06/10/93 1354002Sfujita */ 1454002Sfujita 1554002Sfujita /* 1654002Sfujita * OMRON: $Id: nvram.h,v 1.1 92/05/27 14:32:51 moti Exp $ 1754002Sfujita * by Shigeto Mochida 1854002Sfujita */ 1954002Sfujita 2054002Sfujita /* 2154002Sfujita * Non Volatile RAM 2254002Sfujita */ 2354002Sfujita 2454002Sfujita #define NVRAMSZ 2040 /* Size of NVRAM. (Total 2040 bytes) */ 2554002Sfujita #define NVSYMSZ 16 2654002Sfujita #define NVVALSZ 16 2754002Sfujita #define NVSYSSZ 42 2854002Sfujita #define NVUSRSZ 512 2954002Sfujita 3054002Sfujita /* 3154002Sfujita * Battery back-up memory space. 3254002Sfujita */ 3354002Sfujita struct nvram { 3454002Sfujita char nv_testwrite[4]; /* for battery check */ 3554002Sfujita char nv_hdr[4]; /* header name */ 3654002Sfujita long nv_machtype; /* machine-type ID */ 3754002Sfujita long nv_machno; /* machine number */ 3854002Sfujita char nv_calclock[12]; /* RTC initialize */ 3954002Sfujita char nv_checksum[4]; /* check sum for "nv_system" */ 4054002Sfujita struct nv_system { 4154002Sfujita char nv_symbol[NVSYMSZ]; 4254002Sfujita char nv_value[NVVALSZ]; 4354002Sfujita } nv_system[NVSYSSZ]; /* system define */ 4454002Sfujita char nv_reserve[152]; /* reserved */ 4554002Sfujita char nv_user[NVUSRSZ]; /* user avail area */ 4654002Sfujita }; 47