getifaddrs: add un-namespaced alias
[minix.git] / drivers / ti1225 / ti1225.h
blob261adf2fd1b5dfdef7a954e8c0518af6eced2ecc
1 /*
2 ti1225.h
4 Created: Dec 2005 by Philip Homburg
5 */
7 /* PCI attribute space registers */
8 #define TI_CB_BASEADDR 0x10
9 #define TI_PCI_BUS_NR 0x18
10 #define TI_CB_BUS_NR 0x19
11 #define TI_SO_BUS_NR 0x1A
12 #define TI_LEGACY_BA 0x44
13 #define TI_SYSCTRL 0x80
14 #define TI_MF_ROUTE 0x8C
15 #define TI_CARD_CTRL 0x91
16 #define TI_CCR_IFG 0x01
17 #define TI_DEV_CTRL 0x92
19 /* CardBus Socket Registers */
20 struct csr
22 /*00*/ u32_t csr_event;
23 /*04*/ u32_t csr_mask;
24 /*08*/ u32_t csr_present;
25 /*0C*/ u32_t csr_force_event;
26 /*10*/ u32_t csr_control;
27 /*14*/ u32_t csr_res0;
28 /*18*/ u32_t csr_res1;
29 /*1C*/ u32_t csr_res2;
30 /*20*/ u32_t csr_power;
33 /* csr_mask */
34 #define CM_PWRMASK 0x00000008
35 #define CM_CDMASK 0x00000006
36 #define CM_CSTSMASK 0x00000001
38 /* csr_present */
39 #define CP_YVSOCKET 0x80000000
40 #define CP_XVSOCKET 0x40000000
41 #define CP_3VSOCKET 0x20000000
42 #define CP_5VSOCKET 0x10000000
43 #define CP_YVCARD 0x00002000
44 #define CP_XVCARD 0x00001000
45 #define CP_3VCARD 0x00000800
46 #define CP_5VCARD 0x00000400
47 #define CP_BADVCCREQ 0x00000200
48 #define CP_DATALOST 0x00000100
49 #define CP_NOTACARD 0x00000080
50 #define CP_IREQCINT 0x00000040
51 #define CP_CBCARD 0x00000020
52 #define CP_16BITCARD 0x00000010
53 #define CP_PWRCYCLE 0x00000008
54 #define CP_CDETECT2 0x00000004
55 #define CP_CDETECT1 0x00000002
56 #define CP_CARDSTS 0x00000001
58 /* csr_control */
59 #define CC_VCCCTRL 0x00000070
60 #define CC_VCC_OFF 0x00000000
61 #define CC_VCC_5V 0x00000020
62 #define CC_VCC_3V 0x00000030
63 #define CC_VCC_XV 0x00000040
64 #define CC_VCC_YV 0x00000050
65 #define CC_VPPCTRL 0x00000007
66 #define CC_VPP_OFF 0x00000000
67 #define CC_VPP_12V 0x00000001
68 #define CC_VPP_5V 0x00000002
69 #define CC_VPP_3V 0x00000003
70 #define CC_VPP_XV 0x00000004
71 #define CC_VPP_YV 0x00000005