GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / m68k / include / asm / apollohw.h
blob2bc3a117ca597ee4a3b12550376d196ca868d667
1 /* apollohw.h : some structures to access apollo HW */
3 #ifndef _ASMm68k_APOLLOHW_H_
4 #define _ASMm68k_APOLLOHW_H_
6 #include <linux/types.h>
8 /*
9 apollo models
12 extern u_long apollo_model;
14 #define APOLLO_UNKNOWN (0)
15 #define APOLLO_DN3000 (1)
16 #define APOLLO_DN3010 (2)
17 #define APOLLO_DN3500 (3)
18 #define APOLLO_DN4000 (4)
19 #define APOLLO_DN4500 (5)
22 see scn2681 data sheet for more info.
23 member names are read_write.
26 #define DECLARE_2681_FIELD(x) unsigned char x; unsigned char dummy##x
28 struct SCN2681 {
30 DECLARE_2681_FIELD(mra);
31 DECLARE_2681_FIELD(sra_csra);
32 DECLARE_2681_FIELD(BRGtest_cra);
33 DECLARE_2681_FIELD(rhra_thra);
34 DECLARE_2681_FIELD(ipcr_acr);
35 DECLARE_2681_FIELD(isr_imr);
36 DECLARE_2681_FIELD(ctu_ctur);
37 DECLARE_2681_FIELD(ctl_ctlr);
38 DECLARE_2681_FIELD(mrb);
39 DECLARE_2681_FIELD(srb_csrb);
40 DECLARE_2681_FIELD(tst_crb);
41 DECLARE_2681_FIELD(rhrb_thrb);
42 DECLARE_2681_FIELD(reserved);
43 DECLARE_2681_FIELD(ip_opcr);
44 DECLARE_2681_FIELD(startCnt_setOutBit);
45 DECLARE_2681_FIELD(stopCnt_resetOutBit);
50 struct mc146818 {
51 unsigned char second, alarm_second;
52 unsigned char minute, alarm_minute;
53 unsigned char hours, alarm_hours;
54 unsigned char day_of_week, day_of_month;
55 unsigned char month, year;
59 #define IO_BASE 0x80000000
61 extern u_long sio01_physaddr;
62 extern u_long sio23_physaddr;
63 extern u_long rtc_physaddr;
64 extern u_long pica_physaddr;
65 extern u_long picb_physaddr;
66 extern u_long cpuctrl_physaddr;
67 extern u_long timer_physaddr;
69 #define SAU7_SIO01_PHYSADDR 0x10400
70 #define SAU7_SIO23_PHYSADDR 0x10500
71 #define SAU7_RTC_PHYSADDR 0x10900
72 #define SAU7_PICA 0x11000
73 #define SAU7_PICB 0x11100
74 #define SAU7_CPUCTRL 0x10100
75 #define SAU7_TIMER 0x010800
77 #define SAU8_SIO01_PHYSADDR 0x8400
78 #define SAU8_RTC_PHYSADDR 0x8900
79 #define SAU8_PICA 0x9400
80 #define SAU8_PICB 0x9500
81 #define SAU8_CPUCTRL 0x8100
82 #define SAU8_TIMER 0x8800
84 #define sio01 ((*(volatile struct SCN2681 *)(IO_BASE + sio01_physaddr)))
85 #define sio23 ((*(volatile struct SCN2681 *)(IO_BASE + sio23_physaddr)))
86 #define rtc (((volatile struct mc146818 *)(IO_BASE + rtc_physaddr)))
87 #define cpuctrl (*(volatile unsigned int *)(IO_BASE + cpuctrl_physaddr))
88 #define pica (IO_BASE + pica_physaddr)
89 #define picb (IO_BASE + picb_physaddr)
90 #define timer (IO_BASE + timer_physaddr)
91 #define addr_xlat_map ((unsigned short *)(IO_BASE + 0x17000))
93 #define isaIO2mem(x) (((((x) & 0x3f8) << 7) | (((x) & 0xfc00) >> 6) | ((x) & 0x7)) + 0x40000 + IO_BASE)
95 #define IRQ_APOLLO IRQ_USER
97 #endif