1 /*
2  * Copyright (c) 2010 Broadcom Corporation
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef	_SDIOH_H
18 #define	_SDIOH_H
19 
20 #define SD_SysAddr			0x000
21 #define SD_BlockSize			0x004
22 #define SD_BlockCount 			0x006
23 #define SD_Arg0				0x008
24 #define SD_Arg1 			0x00A
25 #define SD_TransferMode			0x00C
26 #define SD_Command 			0x00E
27 #define SD_Response0			0x010
28 #define SD_Response1 			0x012
29 #define SD_Response2			0x014
30 #define SD_Response3 			0x016
31 #define SD_Response4			0x018
32 #define SD_Response5 			0x01A
33 #define SD_Response6			0x01C
34 #define SD_Response7 			0x01E
35 #define SD_BufferDataPort0		0x020
36 #define SD_BufferDataPort1 		0x022
37 #define SD_PresentState			0x024
38 #define SD_HostCntrl			0x028
39 #define SD_PwrCntrl			0x029
40 #define SD_BlockGapCntrl 		0x02A
41 #define SD_WakeupCntrl 			0x02B
42 #define SD_ClockCntrl			0x02C
43 #define SD_TimeoutCntrl 		0x02E
44 #define SD_SoftwareReset		0x02F
45 #define SD_IntrStatus			0x030
46 #define SD_ErrorIntrStatus 		0x032
47 #define SD_IntrStatusEnable		0x034
48 #define SD_ErrorIntrStatusEnable 	0x036
49 #define SD_IntrSignalEnable		0x038
50 #define SD_ErrorIntrSignalEnable 	0x03A
51 #define SD_CMD12ErrorStatus		0x03C
52 #define SD_Capabilities			0x040
53 #define SD_Capabilities_Reserved	0x044
54 #define SD_MaxCurCap			0x048
55 #define SD_MaxCurCap_Reserved		0x04C
56 #define SD_ADMA_SysAddr			0x58
57 #define SD_SlotInterruptStatus		0x0FC
58 #define SD_HostControllerVersion 	0x0FE
59 
60 /* SD specific registers in PCI config space */
61 #define SD_SlotInfo	0x40
62 
63 #endif				/* _SDIOH_H */
64