1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef __MPCXX_H__
15#define __MPCXX_H__
16
17
18
19
20
21#define EXC_OFF_SYS_RESET 0x0100
22#define _START_OFFSET EXC_OFF_SYS_RESET
23
24
25
26
27#define SYPCR_SWTC 0xFFFF0000
28#define SYPCR_BMT 0x0000FF00
29#define SYPCR_BME 0x00000080
30#define SYPCR_SWF 0x00000008
31#define SYPCR_SWE 0x00000004
32#define SYPCR_SWRI 0x00000002
33#define SYPCR_SWP 0x00000001
34
35
36
37
38#define SIUMCR_EARB 0x80000000
39#define SIUMCR_EARP0 0x00000000
40#define SIUMCR_EARP1 0x10000000
41#define SIUMCR_EARP2 0x20000000
42#define SIUMCR_EARP3 0x30000000
43#define SIUMCR_EARP4 0x40000000
44#define SIUMCR_EARP5 0x50000000
45#define SIUMCR_EARP6 0x60000000
46#define SIUMCR_EARP7 0x70000000
47#define SIUMCR_DSHW 0x00800000
48#define SIUMCR_DBGC00 0x00000000
49#define SIUMCR_DBGC01 0x00200000
50#define SIUMCR_DBGC10 0x00400000
51#define SIUMCR_DBGC11 0x00600000
52#define SIUMCR_DBPC00 0x00000000
53#define SIUMCR_DBPC01 0x00080000
54#define SIUMCR_DBPC10 0x00100000
55#define SIUMCR_DBPC11 0x00180000
56#define SIUMCR_FRC 0x00020000
57#define SIUMCR_DLK 0x00010000
58#define SIUMCR_PNCS 0x00008000
59#define SIUMCR_OPAR 0x00004000
60#define SIUMCR_DPC 0x00002000
61#define SIUMCR_MPRE 0x00001000
62#define SIUMCR_MLRC00 0x00000000
63#define SIUMCR_MLRC01 0x00000400
64#define SIUMCR_MLRC10 0x00000800
65#define SIUMCR_MLRC11 0x00000C00
66#define SIUMCR_AEME 0x00000200
67#define SIUMCR_SEME 0x00000100
68#define SIUMCR_BSC 0x00000080
69#define SIUMCR_GB5E 0x00000040
70#define SIUMCR_B2DD 0x00000020
71#define SIUMCR_B3DD 0x00000010
72
73
74
75
76#define TBSCR_TBIRQ7 0x8000
77#define TBSCR_TBIRQ6 0x4000
78#define TBSCR_TBIRQ5 0x2000
79#define TBSCR_TBIRQ4 0x1000
80#define TBSCR_TBIRQ3 0x0800
81#define TBSCR_TBIRQ2 0x0400
82#define TBSCR_TBIRQ1 0x0200
83#define TBSCR_TBIRQ0 0x0100
84#if 0
85#define TBSCR_REFA 0x0080
86#define TBSCR_REFB 0x0040
87#define TBSCR_REFAE 0x0008
88#define TBSCR_REFBE 0x0004
89#define TBSCR_TBF 0x0002
90#define TBSCR_TBE 0x0001
91#endif
92
93
94
95
96#undef PISCR_PIRQ
97#define PISCR_PITF 0x0002
98#if 0
99#define PISCR_PS 0x0080
100#define PISCR_PIE 0x0004
101#define PISCR_PTE 0x0001
102#endif
103
104
105
106
107#define RSR_JTRS 0x01000000
108#define RSR_DBSRS 0x02000000
109#define RSR_DBHRS 0x04000000
110#define RSR_CSRS 0x08000000
111#define RSR_SWRS 0x10000000
112#define RSR_LLRS 0x20000000
113#define RSR_ESRS 0x40000000
114#define RSR_EHRS 0x80000000
115
116#define RSR_ALLBITS (RSR_JTRS|RSR_DBSRS|RSR_DBHRS|RSR_CSRS|RSR_SWRS|RSR_LLRS|RSR_ESRS|RSR_EHRS)
117
118
119
120
121
122#define MPC8xx_NEW_CLK 0x0800
123
124
125
126
127
128#define PLPRCR_MFN_MSK 0xF8000000
129#define PLPRCR_MFN_SHIFT 27
130#define PLPRCR_MFD_MSK 0x07C00000
131#define PLPRCR_MFD_SHIFT 22
132#define PLPRCR_S_MSK 0x00300000
133#define PLPRCR_S_SHIFT 20
134#define PLPRCR_MFI_MSK 0x000F0000
135#define PLPRCR_MFI_SHIFT 16
136
137#define PLPRCR_PDF_MSK 0x0000001E
138#define PLPRCR_PDF_SHIFT 1
139#define PLPRCR_DBRMO 0x00000001
140
141
142#define PLPRCR_MFACT_MSK (PLPRCR_MFN_MSK | \
143 PLPRCR_MFD_MSK | \
144 PLPRCR_S_MSK | \
145 PLPRCR_MFI_MSK | \
146 PLPRCR_PDF_MSK)
147
148
149#define PLPRCR_MF_MSK 0xFFF00000
150#define PLPRCR_MF_SHIFT 20
151
152#define PLPRCR_SPLSS 0x00008000
153#define PLPRCR_TMIST 0x00001000
154
155#define PLPRCR_LPM_MSK 0x00000300
156#define PLPRCR_LPM_NORMAL 0x00000000
157#define PLPRCR_LPM_DOZE 0x00000100
158#define PLPRCR_LPM_SLEEP 0x00000200
159#define PLPRCR_LPM_DEEP_SLEEP 0x00000300
160#define PLPRCR_LPM_DOWN 0x00000300
161
162
163#define PLPRCR_TEXPS 0x00004000
164#define PLPRCR_CSRC 0x00000400
165
166#define PLPRCR_CSR 0x00000080
167#define PLPRCR_LOLRE 0x00000040
168#define PLPRCR_FIOPD 0x00000020
169
170
171
172
173#define SCCR_COM00 0x00000000
174#define SCCR_COM01 0x20000000
175#define SCCR_COM10 0x40000000
176#define SCCR_COM11 0x60000000
177#define SCCR_TBS 0x02000000
178#define SCCR_RTDIV 0x01000000
179#define SCCR_RTSEL 0x00800000
180#define SCCR_CRQEN 0x00400000
181#define SCCR_PRQEN 0x00200000
182#define SCCR_EBDF00 0x00000000
183#define SCCR_EBDF01 0x00020000
184#define SCCR_EBDF10 0x00040000
185#define SCCR_EBDF11 0x00060000
186#define SCCR_DFSYNC00 0x00000000
187#define SCCR_DFSYNC01 0x00002000
188#define SCCR_DFSYNC10 0x00004000
189#define SCCR_DFSYNC11 0x00006000
190#define SCCR_DFBRG00 0x00000000
191#define SCCR_DFBRG01 0x00000800
192#define SCCR_DFBRG10 0x00001000
193#define SCCR_DFBRG11 0x00001800
194#define SCCR_DFNL000 0x00000000
195#define SCCR_DFNL001 0x00000100
196#define SCCR_DFNL010 0x00000200
197#define SCCR_DFNL011 0x00000300
198#define SCCR_DFNL100 0x00000400
199#define SCCR_DFNL101 0x00000500
200#define SCCR_DFNL110 0x00000600
201#define SCCR_DFNL111 0x00000700
202#define SCCR_DFNH000 0x00000000
203#define SCCR_DFNH110 0x000000D0
204#define SCCR_DFNH111 0x000000E0
205#define SCCR_DFLCD000 0x00000000
206#define SCCR_DFLCD001 0x00000004
207#define SCCR_DFLCD010 0x00000008
208#define SCCR_DFLCD011 0x0000000C
209#define SCCR_DFLCD100 0x00000010
210#define SCCR_DFLCD101 0x00000014
211#define SCCR_DFLCD110 0x00000018
212#define SCCR_DFLCD111 0x0000001C
213#define SCCR_DFALCD00 0x00000000
214#define SCCR_DFALCD01 0x00000001
215#define SCCR_DFALCD10 0x00000002
216#define SCCR_DFALCD11 0x00000003
217
218
219
220
221
222#define BR_BA_MSK 0xFFFF8000
223#define BR_AT_MSK 0x00007000
224#define BR_PS_MSK 0x00000C00
225#define BR_PS_32 0x00000000
226#define BR_PS_16 0x00000800
227#define BR_PS_8 0x00000400
228#define BR_PARE 0x00000200
229#define BR_WP 0x00000100
230#define BR_MS_MSK 0x000000C0
231#define BR_MS_GPCM 0x00000000
232#define BR_MS_UPMA 0x00000080
233#define BR_MS_UPMB 0x000000C0
234#define BR_V 0x00000001
235
236
237
238
239#define OR_AM_MSK 0xFFFF8000
240#define OR_ATM_MSK 0x00007000
241#define OR_CSNT_SAM 0x00000800
242
243#define OR_ACS_MSK 0x00000600
244#define OR_ACS_DIV1 0x00000000
245#define OR_ACS_DIV4 0x00000400
246#define OR_ACS_DIV2 0x00000600
247#define OR_G5LA 0x00000400
248#define OR_G5LS 0x00000200
249#define OR_BI 0x00000100
250#define OR_SCY_MSK 0x000000F0
251#define OR_SCY_0_CLK 0x00000000
252#define OR_SCY_1_CLK 0x00000010
253#define OR_SCY_2_CLK 0x00000020
254#define OR_SCY_3_CLK 0x00000030
255#define OR_SCY_4_CLK 0x00000040
256#define OR_SCY_5_CLK 0x00000050
257#define OR_SCY_6_CLK 0x00000060
258#define OR_SCY_7_CLK 0x00000070
259#define OR_SCY_8_CLK 0x00000080
260#define OR_SCY_9_CLK 0x00000090
261#define OR_SCY_10_CLK 0x000000A0
262#define OR_SCY_11_CLK 0x000000B0
263#define OR_SCY_12_CLK 0x000000C0
264#define OR_SCY_13_CLK 0x000000D0
265#define OR_SCY_14_CLK 0x000000E0
266#define OR_SCY_15_CLK 0x000000F0
267#define OR_SETA 0x00000008
268#define OR_TRLX 0x00000004
269#define OR_EHTR 0x00000002
270
271
272
273
274
275#define MPTPR_PTP_MSK 0xFF00
276#define MPTPR_PTP_DIV2 0x2000
277#define MPTPR_PTP_DIV4 0x1000
278#define MPTPR_PTP_DIV8 0x0800
279#define MPTPR_PTP_DIV16 0x0400
280#define MPTPR_PTP_DIV32 0x0200
281#define MPTPR_PTP_DIV64 0x0100
282
283
284
285
286#define MCR_OP_WRITE 0x00000000
287#define MCR_OP_READ 0x40000000
288#define MCR_OP_RUN 0x80000000
289#define MCR_UPM_A 0x00000000
290#define MCR_UPM_B 0x00800000
291#define MCR_MB_CS0 0x00000000
292#define MCR_MB_CS1 0x00002000
293#define MCR_MB_CS2 0x00004000
294#define MCR_MB_CS3 0x00006000
295#define MCR_MB_CS4 0x00008000
296#define MCR_MB_CS5 0x0000A000
297#define MCR_MB_CS6 0x0000C000
298#define MCR_MB_CS7 0x0000E000
299#define MCR_MLCF(n) (((n)&0xF)<<8)
300#define MCR_MAD(addr) ((addr)&0x3F)
301
302
303
304
305#define MAMR_PTA_MSK 0xFF000000
306#define MAMR_PTA_SHIFT 0x00000018
307#define MAMR_PTAE 0x00800000
308#define MAMR_AMA_MSK 0x00700000
309#define MAMR_AMA_TYPE_0 0x00000000
310#define MAMR_AMA_TYPE_1 0x00100000
311#define MAMR_AMA_TYPE_2 0x00200000
312#define MAMR_AMA_TYPE_3 0x00300000
313#define MAMR_AMA_TYPE_4 0x00400000
314#define MAMR_AMA_TYPE_5 0x00500000
315#define MAMR_DSA_MSK 0x00060000
316#define MAMR_DSA_1_CYCL 0x00000000
317#define MAMR_DSA_2_CYCL 0x00020000
318#define MAMR_DSA_3_CYCL 0x00040000
319#define MAMR_DSA_4_CYCL 0x00060000
320#define MAMR_G0CLA_MSK 0x0000E000
321#define MAMR_G0CLA_A12 0x00000000
322#define MAMR_G0CLA_A11 0x00002000
323#define MAMR_G0CLA_A10 0x00004000
324#define MAMR_G0CLA_A9 0x00006000
325#define MAMR_G0CLA_A8 0x00008000
326#define MAMR_G0CLA_A7 0x0000A000
327#define MAMR_G0CLA_A6 0x0000C000
328#define MAMR_G0CLA_A5 0x0000E000
329#define MAMR_GPL_A4DIS 0x00001000
330#define MAMR_RLFA_MSK 0x00000F00
331#define MAMR_RLFA_1X 0x00000100
332#define MAMR_RLFA_2X 0x00000200
333#define MAMR_RLFA_3X 0x00000300
334#define MAMR_RLFA_4X 0x00000400
335#define MAMR_RLFA_5X 0x00000500
336#define MAMR_RLFA_6X 0x00000600
337#define MAMR_RLFA_7X 0x00000700
338#define MAMR_RLFA_8X 0x00000800
339#define MAMR_RLFA_9X 0x00000900
340#define MAMR_RLFA_10X 0x00000A00
341#define MAMR_RLFA_11X 0x00000B00
342#define MAMR_RLFA_12X 0x00000C00
343#define MAMR_RLFA_13X 0x00000D00
344#define MAMR_RLFA_14X 0x00000E00
345#define MAMR_RLFA_15X 0x00000F00
346#define MAMR_RLFA_16X 0x00000000
347#define MAMR_WLFA_MSK 0x000000F0
348#define MAMR_WLFA_1X 0x00000010
349#define MAMR_WLFA_2X 0x00000020
350#define MAMR_WLFA_3X 0x00000030
351#define MAMR_WLFA_4X 0x00000040
352#define MAMR_WLFA_5X 0x00000050
353#define MAMR_WLFA_6X 0x00000060
354#define MAMR_WLFA_7X 0x00000070
355#define MAMR_WLFA_8X 0x00000080
356#define MAMR_WLFA_9X 0x00000090
357#define MAMR_WLFA_10X 0x000000A0
358#define MAMR_WLFA_11X 0x000000B0
359#define MAMR_WLFA_12X 0x000000C0
360#define MAMR_WLFA_13X 0x000000D0
361#define MAMR_WLFA_14X 0x000000E0
362#define MAMR_WLFA_15X 0x000000F0
363#define MAMR_WLFA_16X 0x00000000
364#define MAMR_TLFA_MSK 0x0000000F
365#define MAMR_TLFA_1X 0x00000001
366#define MAMR_TLFA_2X 0x00000002
367#define MAMR_TLFA_3X 0x00000003
368#define MAMR_TLFA_4X 0x00000004
369#define MAMR_TLFA_5X 0x00000005
370#define MAMR_TLFA_6X 0x00000006
371#define MAMR_TLFA_7X 0x00000007
372#define MAMR_TLFA_8X 0x00000008
373#define MAMR_TLFA_9X 0x00000009
374#define MAMR_TLFA_10X 0x0000000A
375#define MAMR_TLFA_11X 0x0000000B
376#define MAMR_TLFA_12X 0x0000000C
377#define MAMR_TLFA_13X 0x0000000D
378#define MAMR_TLFA_14X 0x0000000E
379#define MAMR_TLFA_15X 0x0000000F
380#define MAMR_TLFA_16X 0x00000000
381
382
383
384
385#define MBMR_PTB_MSK 0xFF000000
386#define MBMR_PTB_SHIFT 0x00000018
387#define MBMR_PTBE 0x00800000
388#define MBMR_AMB_MSK 0x00700000
389#define MBMR_AMB_TYPE_0 0x00000000
390#define MBMR_AMB_TYPE_1 0x00100000
391#define MBMR_AMB_TYPE_2 0x00200000
392#define MBMR_AMB_TYPE_3 0x00300000
393#define MBMR_AMB_TYPE_4 0x00400000
394#define MBMR_AMB_TYPE_5 0x00500000
395#define MBMR_DSB_MSK 0x00060000
396#define MBMR_DSB_1_CYCL 0x00000000
397#define MBMR_DSB_2_CYCL 0x00020000
398#define MBMR_DSB_3_CYCL 0x00040000
399#define MBMR_DSB_4_CYCL 0x00060000
400#define MBMR_G0CLB_MSK 0x0000E000
401#define MBMR_G0CLB_A12 0x00000000
402#define MBMR_G0CLB_A11 0x00002000
403#define MBMR_G0CLB_A10 0x00004000
404#define MBMR_G0CLB_A9 0x00006000
405#define MBMR_G0CLB_A8 0x00008000
406#define MBMR_G0CLB_A7 0x0000A000
407#define MBMR_G0CLB_A6 0x0000C000
408#define MBMR_G0CLB_A5 0x0000E000
409#define MBMR_GPL_B4DIS 0x00001000
410#define MBMR_RLFB_MSK 0x00000F00
411#define MBMR_RLFB_1X 0x00000100
412#define MBMR_RLFB_2X 0x00000200
413#define MBMR_RLFB_3X 0x00000300
414#define MBMR_RLFB_4X 0x00000400
415#define MBMR_RLFB_5X 0x00000500
416#define MBMR_RLFB_6X 0x00000600
417#define MBMR_RLFB_7X 0x00000700
418#define MBMR_RLFB_8X 0x00000800
419#define MBMR_RLFB_9X 0x00000900
420#define MBMR_RLFB_10X 0x00000A00
421#define MBMR_RLFB_11X 0x00000B00
422#define MBMR_RLFB_12X 0x00000C00
423#define MBMR_RLFB_13X 0x00000D00
424#define MBMR_RLFB_14X 0x00000E00
425#define MBMR_RLFB_15X 0x00000f00
426#define MBMR_RLFB_16X 0x00000000
427#define MBMR_WLFB_MSK 0x000000F0
428#define MBMR_WLFB_1X 0x00000010
429#define MBMR_WLFB_2X 0x00000020
430#define MBMR_WLFB_3X 0x00000030
431#define MBMR_WLFB_4X 0x00000040
432#define MBMR_WLFB_5X 0x00000050
433#define MBMR_WLFB_6X 0x00000060
434#define MBMR_WLFB_7X 0x00000070
435#define MBMR_WLFB_8X 0x00000080
436#define MBMR_WLFB_9X 0x00000090
437#define MBMR_WLFB_10X 0x000000A0
438#define MBMR_WLFB_11X 0x000000B0
439#define MBMR_WLFB_12X 0x000000C0
440#define MBMR_WLFB_13X 0x000000D0
441#define MBMR_WLFB_14X 0x000000E0
442#define MBMR_WLFB_15X 0x000000F0
443#define MBMR_WLFB_16X 0x00000000
444#define MBMR_TLFB_MSK 0x0000000F
445#define MBMR_TLFB_1X 0x00000001
446#define MBMR_TLFB_2X 0x00000002
447#define MBMR_TLFB_3X 0x00000003
448#define MBMR_TLFB_4X 0x00000004
449#define MBMR_TLFB_5X 0x00000005
450#define MBMR_TLFB_6X 0x00000006
451#define MBMR_TLFB_7X 0x00000007
452#define MBMR_TLFB_8X 0x00000008
453#define MBMR_TLFB_9X 0x00000009
454#define MBMR_TLFB_10X 0x0000000A
455#define MBMR_TLFB_11X 0x0000000B
456#define MBMR_TLFB_12X 0x0000000C
457#define MBMR_TLFB_13X 0x0000000D
458#define MBMR_TLFB_14X 0x0000000E
459#define MBMR_TLFB_15X 0x0000000F
460#define MBMR_TLFB_16X 0x00000000
461
462
463
464
465#define TGCR_CAS4 0x8000
466#define TGCR_FRZ4 0x4000
467#define TGCR_STP4 0x2000
468#define TGCR_RST4 0x1000
469#define TGCR_GM2 0x0800
470#define TGCR_FRZ3 0x0400
471#define TGCR_STP3 0x0200
472#define TGCR_RST3 0x0100
473#define TGCR_CAS2 0x0080
474#define TGCR_FRZ2 0x0040
475#define TGCR_STP2 0x0020
476#define TGCR_RST2 0x0010
477#define TGCR_GM1 0x0008
478#define TGCR_FRZ1 0x0004
479#define TGCR_STP1 0x0002
480#define TGCR_RST1 0x0001
481
482
483
484
485
486#define TMR_PS_MSK 0xFF00
487#define TMR_PS_SHIFT 8
488#define TMR_CE_MSK 0x00C0
489#define TMR_CE_INTR_DIS 0x0000
490#define TMR_CE_RISING 0x0040
491#define TMR_CE_FALLING 0x0080
492#define TMR_CE_ANY 0x00C0
493#define TMR_OM 0x0020
494#define TMR_ORI 0x0010
495#define TMR_FRR 0x0008
496#define TMR_ICLK_MSK 0x0006
497#define TMR_ICLK_IN_CAS 0x0000
498#define TMR_ICLK_IN_GEN 0x0002
499#define TMR_ICLK_IN_GEN_DIV16 0x0004
500#define TMR_ICLK_TIN_PIN 0x0006
501#define TMR_GE 0x0001
502
503
504
505
506
507#define I2MOD_REVD 0x20
508#define I2MOD_GCD 0x10
509#define I2MOD_FLT 0x08
510#define I2MOD_PDIV32 0x00
511#define I2MOD_PDIV16 0x02
512#define I2MOD_PDIV8 0x04
513#define I2MOD_PDIV4 0x06
514#define I2MOD_EN 0x01
515
516#define I2CER_TXE 0x10
517#define I2CER_BSY 0x04
518#define I2CER_TXB 0x02
519#define I2CER_RXB 0x01
520#define I2CER_ALL (I2CER_TXE | I2CER_BSY | I2CER_TXB | I2CER_RXB)
521
522#define I2COM_STR 0x80
523#define I2COM_MASTER 0x01
524
525
526
527
528#define SPI_EMASK 0x37
529#define SPI_MME 0x20
530#define SPI_TXE 0x10
531#define SPI_BSY 0x04
532#define SPI_TXB 0x02
533#define SPI_RXB 0x01
534
535#define SPI_STR 0x80
536
537
538
539
540#define PCMCIA_GCRX_CXRESET 0x00000040
541#define PCMCIA_GCRX_CXOE 0x00000080
542
543#define PCMCIA_VS1(slot) (0x80000000 >> (slot << 4))
544#define PCMCIA_VS2(slot) (0x40000000 >> (slot << 4))
545#define PCMCIA_VS_MASK(slot) (0xC0000000 >> (slot << 4))
546#define PCMCIA_VS_SHIFT(slot) (30 - (slot << 4))
547
548#define PCMCIA_WP(slot) (0x20000000 >> (slot << 4))
549#define PCMCIA_CD2(slot) (0x10000000 >> (slot << 4))
550#define PCMCIA_CD1(slot) (0x08000000 >> (slot << 4))
551#define PCMCIA_BVD2(slot) (0x04000000 >> (slot << 4))
552#define PCMCIA_BVD1(slot) (0x02000000 >> (slot << 4))
553#define PCMCIA_RDY(slot) (0x01000000 >> (slot << 4))
554#define PCMCIA_RDY_L(slot) (0x00800000 >> (slot << 4))
555#define PCMCIA_RDY_H(slot) (0x00400000 >> (slot << 4))
556#define PCMCIA_RDY_R(slot) (0x00200000 >> (slot << 4))
557#define PCMCIA_RDY_F(slot) (0x00100000 >> (slot << 4))
558#define PCMCIA_MASK(slot) (0xFFFF0000 >> (slot << 4))
559
560
561
562
563
564
565#define PCMCIA_BSIZE_1 0x00000000
566#define PCMCIA_BSIZE_2 0x08000000
567#define PCMCIA_BSIZE_4 0x18000000
568#define PCMCIA_BSIZE_8 0x10000000
569#define PCMCIA_BSIZE_16 0x30000000
570#define PCMCIA_BSIZE_32 0x38000000
571#define PCMCIA_BSIZE_64 0x28000000
572#define PCMCIA_BSIZE_128 0x20000000
573#define PCMCIA_BSIZE_256 0x60000000
574#define PCMCIA_BSIZE_512 0x68000000
575#define PCMCIA_BSIZE_1K 0x78000000
576#define PCMCIA_BSIZE_2K 0x70000000
577#define PCMCIA_BSIZE_4K 0x50000000
578#define PCMCIA_BSIZE_8K 0x58000000
579#define PCMCIA_BSIZE_16K 0x48000000
580#define PCMCIA_BSIZE_32K 0x40000000
581#define PCMCIA_BSIZE_64K 0xC0000000
582#define PCMCIA_BSIZE_128K 0xC8000000
583#define PCMCIA_BSIZE_256K 0xD8000000
584#define PCMCIA_BSIZE_512K 0xD0000000
585#define PCMCIA_BSIZE_1M 0xF0000000
586#define PCMCIA_BSIZE_2M 0xF8000000
587#define PCMCIA_BSIZE_4M 0xE8000000
588#define PCMCIA_BSIZE_8M 0xE0000000
589#define PCMCIA_BSIZE_16M 0xA0000000
590#define PCMCIA_BSIZE_32M 0xA8000000
591#define PCMCIA_BSIZE_64M 0xB8000000
592
593
594#define PCMCIA_SHT(t) ((t & 0x0F)<<16)
595#define PCMCIA_SST(t) ((t & 0x0F)<<12)
596#define PCMCIA_SL(t) ((t==32) ? 0 : ((t & 0x1F)<<7))
597
598
599#define PCMCIA_PPS_8 0x00000000
600#define PCMCIA_PPS_16 0x00000040
601
602
603#define PCMCIA_PRS_MEM 0x00000000
604#define PCMCIA_PRS_ATTR 0x00000010
605#define PCMCIA_PRS_IO 0x00000018
606#define PCMCIA_PRS_DMA 0x00000020
607#define PCMCIA_PRS_DMA_LAST 0x00000028
608#define PCMCIA_PRS_CEx 0x00000030
609
610#define PCMCIA_PSLOT_A 0x00000000
611#define PCMCIA_PSLOT_B 0x00000004
612#define PCMCIA_WPROT 0x00000002
613#define PCMCIA_PV 0x00000001
614
615#define UPMA 0x00000000
616#define UPMB 0x00800000
617
618#endif
619