2 * Copyright (C) 2001 David J. Mckay (david.mckay@st.com)
4 * May be copied or modified under the terms of the GNU General Public
5 * License. See linux/COPYING for more information.
7 * Defintions for the ST40 PCI hardware.
10 #ifndef __PCI_ST40_H__
11 #define __PCI_ST40_H__
13 #define ST40PCI_VCR_STATUS 0x00
15 #define ST40PCI_VCR_VERSION 0x08
17 #define ST40PCI_CR 0x10
19 #define CR_SOFT_RESET (1<<12)
20 #define CR_PFCS (1<<11)
22 #define CR_BMAM (1<<6)
23 #define CR_HOST (1<<5)
24 #define CR_CLKEN (1<<4)
25 #define CR_SOCS (1<<3)
26 #define CR_IOCS (1<<2)
27 #define CR_RSTCTL (1<<1)
28 #define CR_CFINT (1<<0)
29 #define CR_LOCK_MASK 0x5a000000
32 #define ST40PCI_LSR0 0X14
33 #define ST40PCI_LAR0 0x1c
35 #define ST40PCI_INT 0x24
36 #define INT_MADIM (1<<2)
39 #define ST40PCI_INTM 0x28
40 #define ST40PCI_AIR 0x2c
41 #define ST40PCI_CIR 0x30
42 #define ST40PCI_AINT 0x40
43 #define ST40PCI_AINTM 0x44
44 #define ST40PCI_BMIR 0x48
45 #define ST40PCI_PAR 0x4c
46 #define ST40PCI_MBR 0x50
47 #define ST40PCI_IOBR 0x54
48 #define ST40PCI_PINT 0x58
49 #define ST40PCI_PINTM 0x5c
50 #define ST40PCI_MBMR 0x70
51 #define ST40PCI_IOBMR 0x74
52 #define ST40PCI_PDR 0x78
54 /* These are configs space registers */
55 #define ST40PCI_CSR_VID 0x10000
56 #define ST40PCI_CSR_DID 0x10002
57 #define ST40PCI_CSR_CMD 0x10004
58 #define ST40PCI_CSR_STATUS 0x10006
59 #define ST40PCI_CSR_MBAR0 0x10010
60 #define ST40PCI_CSR_TRDY 0x10040
61 #define ST40PCI_CSR_RETRY 0x10041
62 #define ST40PCI_CSR_MIT 0x1000d
64 #define ST40_IO_ADDR 0xb6000000
66 #endif /* __PCI_ST40_H__ */