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