1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 3 /* rl5c476 routines and defines*/ 4 5 #include <stdint.h> 6 7 /* the 16 bit control structure for ricoh cardbus bridge */ 8 typedef struct pc16reg { 9 u8 idrevs; 10 u8 ifstat; 11 u8 pwctrl; 12 u8 igctrl; 13 u8 cschg; 14 u8 cscint; 15 u8 awinen; 16 u8 ioctrl; 17 u8 iostl0; 18 u8 iosth0; 19 u8 iospl0; 20 u8 iosph0; 21 u8 iostl1; 22 u8 iosth1; 23 u8 iospl1; 24 u8 iosph1; 25 u8 smstl0; 26 u8 smsth0; 27 u8 smspl0; 28 u8 smsph0; 29 u8 moffl0; 30 u8 moffh0; 31 u8 cdgenc; 32 u8 resv1; 33 u8 smstl1; 34 u8 smsth1; 35 u8 smspl1; 36 u8 smsph1; 37 u8 moffl1; 38 u8 moffh1; 39 u8 glctrl; 40 u8 atctrl; 41 u8 smstl2; 42 u8 smsth2; 43 u8 smspl2; 44 u8 smsph2; 45 u8 moffl2; 46 u8 moffh2; 47 u8 resv2; 48 u8 resv3; 49 u8 smstl3; 50 u8 smsth3; 51 u8 smspl3; 52 u8 smsph3; 53 u8 moffl3; 54 u8 moffh3; 55 u8 resv4; 56 u8 miscc1; 57 u8 smstl4; 58 u8 smsth4; 59 u8 smspl4; 60 u8 smsph4; 61 u8 moffl4; 62 u8 moffh4; 63 u8 ioffl0; 64 u8 ioffh0; 65 u8 ioffl1; 66 u8 ioffh1; 67 u8 gpio; 68 u8 resv5; 69 u8 resv6; 70 u8 resv7; 71 u8 resv8; 72 u8 resv9; 73 u8 smpga0; 74 } __packed pc16reg_t; 75