summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ppcn_60x/nvram/ds1385.h
blob: c8a90699f2bdf44ed80d4f595f903bff29300f91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 *  COPYRIGHT (c) 1998 by Radstone Technology
 *
 *
 * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
 * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
 *
 * You are hereby granted permission to use, copy, modify, and distribute
 * this file, provided that this notice, plus the above copyright notice
 * and disclaimer, appears in all copies. Radstone Technology will provide
 * no support for this code.
 *
 */

/*
 * Definitions for the ds1385 NvRAM
 */

#ifndef _DS1385_H
#define _DS1385_H

#include "prepnvr.h"

#define DS1385_NVSIZE 4096       /* size of NVRAM */
#define DS1385_GESIZE (DS1385_NVSIZE-CONFSIZE-OSAREASIZE-sizeof(HEADER))
#define DS1385_PORT_BASE 0x74

/* Here is the whole map of the DS1385 NVRAM */
typedef struct _DS1385_NVRAM_MAP {
  HEADER Header;
  unsigned char GEArea[DS1385_GESIZE];
  unsigned char OSArea[OSAREASIZE];
  unsigned char ConfigArea[CONFSIZE];
  } DS1385_NVRAM_MAP, *PDS1385_NVRAM_MAP;

#endif /* _DS1385_H */