1
2
3
4
5
6
7
8
9 #ifndef _PCI_SH7751_H_
10 #define _PCI_SH7751_H_
11
12
13 #define SH7751_VENDOR_ID 0x1054
14 #define SH7751_DEVICE_ID 0x3505
15 #define SH7751R_DEVICE_ID 0x350e
16
17
18 #define SH7751_PCI_CONFIG_BASE 0xFD000000
19 #define SH7751_PCI_CONFIG_SIZE 0x1000000
20 #define SH7751_PCI_MEMORY_BASE 0xFD000000
21 #define SH7751_PCI_MEM_SIZE 0x01000000
22 #define SH7751_PCI_IO_BASE 0xFE240000
23 #define SH7751_PCI_IO_SIZE 0x40000
24
25 #define SH7751_PCIREG_BASE 0xFE200000
26
27 #define SH7751_PCICONF0 0x0
28 #define SH7751_PCICONF0_DEVID 0xFFFF0000
29 #define SH7751_PCICONF0_VNDID 0x0000FFFF
30 #define SH7751_PCICONF1 0x4
31 #define SH7751_PCICONF1_DPE 0x80000000
32 #define SH7751_PCICONF1_SSE 0x40000000
33 #define SH7751_PCICONF1_RMA 0x20000000
34 #define SH7751_PCICONF1_RTA 0x10000000
35 #define SH7751_PCICONF1_STA 0x08000000
36 #define SH7751_PCICONF1_DEV 0x06000000
37 #define SH7751_PCICONF1_DPD 0x01000000
38 #define SH7751_PCICONF1_FBBC 0x00800000
39 #define SH7751_PCICONF1_UDF 0x00400000
40 #define SH7751_PCICONF1_66M 0x00200000
41 #define SH7751_PCICONF1_PM 0x00100000
42 #define SH7751_PCICONF1_PBBE 0x00000200
43 #define SH7751_PCICONF1_SER 0x00000100
44 #define SH7751_PCICONF1_WCC 0x00000080
45 #define SH7751_PCICONF1_PER 0x00000040
46 #define SH7751_PCICONF1_VPS 0x00000020
47 #define SH7751_PCICONF1_MWIE 0x00000010
48 #define SH7751_PCICONF1_SPC 0x00000008
49 #define SH7751_PCICONF1_BUM 0x00000004
50 #define SH7751_PCICONF1_MES 0x00000002
51 #define SH7751_PCICONF1_IOS 0x00000001
52 #define SH7751_PCICONF2 0x8
53 #define SH7751_PCICONF2_BCC 0xFF000000
54 #define SH7751_PCICONF2_SCC 0x00FF0000
55 #define SH7751_PCICONF2_RLPI 0x0000FF00
56 #define SH7751_PCICONF2_REV 0x000000FF
57 #define SH7751_PCICONF3 0xC
58 #define SH7751_PCICONF3_BIST7 0x80000000
59 #define SH7751_PCICONF3_BIST6 0x40000000
60 #define SH7751_PCICONF3_BIST3_0 0x0F000000
61 #define SH7751_PCICONF3_HD7 0x00800000
62 #define SH7751_PCICONF3_HD6_0 0x007F0000
63 #define SH7751_PCICONF3_LAT 0x0000FF00
64 #define SH7751_PCICONF3_CLS 0x000000FF
65 #define SH7751_PCICONF4 0x10
66 #define SH7751_PCICONF4_BASE 0xFFFFFFFC
67 #define SH7751_PCICONF4_ASI 0x00000001
68 #define SH7751_PCICONF5 0x14
69 #define SH7751_PCICONF5_BASE 0xFFFFFFF0
70 #define SH7751_PCICONF5_LAP 0x00000008
71 #define SH7751_PCICONF5_LAT 0x00000006
72 #define SH7751_PCICONF5_ASI 0x00000001
73 #define SH7751_PCICONF6 0x18
74 #define SH7751_PCICONF6_BASE 0xFFFFFFF0
75 #define SH7751_PCICONF6_LAP 0x00000008
76 #define SH7751_PCICONF6_LAT 0x00000006
77 #define SH7751_PCICONF6_ASI 0x00000001
78
79 #define SH7751_PCICONF11 0x2C
80 #define SH7751_PCICONF11_SSID 0xFFFF0000
81 #define SH7751_PCICONF11_SVID 0x0000FFFF
82
83 #define SH7751_PCICONF13 0x34
84 #define SH7751_PCICONF13_CPTR 0x000000FF
85
86 #define SH7751_PCICONF15 0x3C
87 #define SH7751_PCICONF15_IPIN 0x000000FF
88 #define SH7751_PCICONF16 0x40
89 #define SH7751_PCICONF16_PMES 0xF8000000
90 #define SH7751_PCICONF16_D2S 0x04000000
91 #define SH7751_PCICONF16_D1S 0x02000000
92 #define SH7751_PCICONF16_DSI 0x00200000
93 #define SH7751_PCICONF16_PMCK 0x00080000
94 #define SH7751_PCICONF16_VER 0x00070000
95 #define SH7751_PCICONF16_NIP 0x0000FF00
96 #define SH7751_PCICONF16_CID 0x000000FF
97 #define SH7751_PCICONF17 0x44
98 #define SH7751_PCICONF17_DATA 0xFF000000
99 #define SH7751_PCICONF17_PMES 0x00800000
100 #define SH7751_PCICONF17_DSCL 0x00600000
101 #define SH7751_PCICONF17_DSEL 0x001E0000
102 #define SH7751_PCICONF17_PMEN 0x00010000
103 #define SH7751_PCICONF17_PWST 0x00000003
104
105
106
107 #define SH7751_BCR1 0xFF800000
108 #define SH7751_BCR2 0xFF800004
109 #define SH7751_BCR3 0xFF800050
110 #define SH7751_BCR4 0xFE0A00F0
111 #define SH7751_WCR1 0xFF800008
112 #define SH7751_WCR2 0xFF80000C
113 #define SH7751_WCR3 0xFF800010
114 #define SH7751_MCR 0xFF800014
115
116
117 #define SH7751_CS0_BASE_ADDR 0x0
118 #define SH7751_MEM_REGION_SIZE 0x04000000
119 #define SH7751_CS1_BASE_ADDR (SH7751_CS0_BASE_ADDR + SH7751_MEM_REGION_SIZE)
120 #define SH7751_CS2_BASE_ADDR (SH7751_CS1_BASE_ADDR + SH7751_MEM_REGION_SIZE)
121 #define SH7751_CS3_BASE_ADDR (SH7751_CS2_BASE_ADDR + SH7751_MEM_REGION_SIZE)
122 #define SH7751_CS4_BASE_ADDR (SH7751_CS3_BASE_ADDR + SH7751_MEM_REGION_SIZE)
123 #define SH7751_CS5_BASE_ADDR (SH7751_CS4_BASE_ADDR + SH7751_MEM_REGION_SIZE)
124 #define SH7751_CS6_BASE_ADDR (SH7751_CS5_BASE_ADDR + SH7751_MEM_REGION_SIZE)
125
126 #endif