c2da0de17fed2583b2082fa019e8a9fa1b7fb8d5
[coreboot.git] / src / southbridge / ricoh / rl5c476 / rl5c476.h
1 /*
2  * (C) Copyright 2004 Nick Barker <nick.barker9@btinternet.com>
3  *
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18  * MA 02111-1307 USA
19  */
20
21  /* rl5c476 routines and defines*/
22
23
24 typedef unsigned char u8;
25
26
27 /* the 16 bit control structure for ricoh cardbus bridge */
28 typedef struct pc16reg  {
29         u8 idrevs;
30         u8 ifstat;
31         u8 pwctrl;
32         u8 igctrl;
33         u8 cschg;
34         u8 cscint;
35         u8 awinen;
36         u8 ioctrl;
37         u8 iostl0;
38         u8 iosth0;
39         u8 iospl0;
40         u8 iosph0;
41         u8 iostl1;
42         u8 iosth1;
43         u8 iospl1;
44         u8 iosph1;
45         u8 smstl0;
46         u8 smsth0;
47         u8 smspl0;
48         u8 smsph0;
49         u8 moffl0;
50         u8 moffh0;
51         u8 cdgenc;
52         u8 resv1;
53         u8 smstl1;
54         u8 smsth1;
55         u8 smspl1;
56         u8 smsph1;
57         u8 moffl1;
58         u8 moffh1;
59         u8 glctrl;
60         u8 atctrl;
61         u8 smstl2;
62         u8 smsth2;
63         u8 smspl2;
64         u8 smsph2;
65         u8 moffl2;
66         u8 moffh2;
67         u8 resv2;
68         u8 resv3;
69         u8 smstl3;
70         u8 smsth3;
71         u8 smspl3;
72         u8 smsph3;
73         u8 moffl3;
74         u8 moffh3;
75         u8 resv4;
76         u8 miscc1;
77         u8 smstl4;
78         u8 smsth4;
79         u8 smspl4;
80         u8 smsph4;
81         u8 moffl4;
82         u8 moffh4;
83         u8 ioffl0;
84         u8 ioffh0;
85         u8 ioffl1;
86         u8 ioffh1;
87         u8 gpio;
88         u8 resv5;
89         u8 resv6;
90         u8 resv7;
91         u8 resv8;
92         u8 resv9;
93         u8 smpga0;
94 } __attribute__ ((packed)) pc16reg_t;
95
96         
97