1
2
3
4
5
6
7
8
9
10
11
12
13
14#define IRONGATE_HAE_ADDRESS (&alpha_mv.hae_cache)
15#define MARVEL_HAE_ADDRESS (&alpha_mv.hae_cache)
16#define POLARIS_HAE_ADDRESS (&alpha_mv.hae_cache)
17#define TSUNAMI_HAE_ADDRESS (&alpha_mv.hae_cache)
18#define TITAN_HAE_ADDRESS (&alpha_mv.hae_cache)
19#define WILDFIRE_HAE_ADDRESS (&alpha_mv.hae_cache)
20
21#ifdef CIA_ONE_HAE_WINDOW
22#define CIA_HAE_ADDRESS (&alpha_mv.hae_cache)
23#endif
24#ifdef MCPCIA_ONE_HAE_WINDOW
25#define MCPCIA_HAE_ADDRESS (&alpha_mv.hae_cache)
26#endif
27#ifdef T2_ONE_HAE_WINDOW
28#define T2_HAE_ADDRESS (&alpha_mv.hae_cache)
29#endif
30
31
32
33
34#define JENSEN_IACK_SC 1
35#define T2_IACK_SC 1
36#define WILDFIRE_IACK_SC 1
37
38
39
40
41
42#define CAT1(x,y) x##y
43#define CAT(x,y) CAT1(x,y)
44
45#define DO_DEFAULT_RTC .rtc_port = 0x70
46
47#define DO_EV4_MMU \
48 .max_asn = EV4_MAX_ASN, \
49 .mv_switch_mm = ev4_switch_mm, \
50 .mv_activate_mm = ev4_activate_mm, \
51 .mv_flush_tlb_current = ev4_flush_tlb_current, \
52 .mv_flush_tlb_current_page = ev4_flush_tlb_current_page
53
54#define DO_EV5_MMU \
55 .max_asn = EV5_MAX_ASN, \
56 .mv_switch_mm = ev5_switch_mm, \
57 .mv_activate_mm = ev5_activate_mm, \
58 .mv_flush_tlb_current = ev5_flush_tlb_current, \
59 .mv_flush_tlb_current_page = ev5_flush_tlb_current_page
60
61#define DO_EV6_MMU \
62 .max_asn = EV6_MAX_ASN, \
63 .mv_switch_mm = ev5_switch_mm, \
64 .mv_activate_mm = ev5_activate_mm, \
65 .mv_flush_tlb_current = ev5_flush_tlb_current, \
66 .mv_flush_tlb_current_page = ev5_flush_tlb_current_page
67
68#define DO_EV7_MMU \
69 .max_asn = EV6_MAX_ASN, \
70 .mv_switch_mm = ev5_switch_mm, \
71 .mv_activate_mm = ev5_activate_mm, \
72 .mv_flush_tlb_current = ev5_flush_tlb_current, \
73 .mv_flush_tlb_current_page = ev5_flush_tlb_current_page
74
75#define IO_LITE(UP,low) \
76 .hae_register = (unsigned long *) CAT(UP,_HAE_ADDRESS), \
77 .iack_sc = CAT(UP,_IACK_SC), \
78 .mv_ioread8 = CAT(low,_ioread8), \
79 .mv_ioread16 = CAT(low,_ioread16), \
80 .mv_ioread32 = CAT(low,_ioread32), \
81 .mv_iowrite8 = CAT(low,_iowrite8), \
82 .mv_iowrite16 = CAT(low,_iowrite16), \
83 .mv_iowrite32 = CAT(low,_iowrite32), \
84 .mv_readb = CAT(low,_readb), \
85 .mv_readw = CAT(low,_readw), \
86 .mv_readl = CAT(low,_readl), \
87 .mv_readq = CAT(low,_readq), \
88 .mv_writeb = CAT(low,_writeb), \
89 .mv_writew = CAT(low,_writew), \
90 .mv_writel = CAT(low,_writel), \
91 .mv_writeq = CAT(low,_writeq), \
92 .mv_ioportmap = CAT(low,_ioportmap), \
93 .mv_ioremap = CAT(low,_ioremap), \
94 .mv_iounmap = CAT(low,_iounmap), \
95 .mv_is_ioaddr = CAT(low,_is_ioaddr), \
96 .mv_is_mmio = CAT(low,_is_mmio) \
97
98#define IO(UP,low) \
99 IO_LITE(UP,low), \
100 .pci_ops = &CAT(low,_pci_ops), \
101 .mv_pci_tbi = CAT(low,_pci_tbi)
102
103#define DO_APECS_IO IO(APECS,apecs)
104#define DO_CIA_IO IO(CIA,cia)
105#define DO_IRONGATE_IO IO(IRONGATE,irongate)
106#define DO_LCA_IO IO(LCA,lca)
107#define DO_MARVEL_IO IO(MARVEL,marvel)
108#define DO_MCPCIA_IO IO(MCPCIA,mcpcia)
109#define DO_POLARIS_IO IO(POLARIS,polaris)
110#define DO_T2_IO IO(T2,t2)
111#define DO_TSUNAMI_IO IO(TSUNAMI,tsunami)
112#define DO_TITAN_IO IO(TITAN,titan)
113#define DO_WILDFIRE_IO IO(WILDFIRE,wildfire)
114
115#define DO_PYXIS_IO IO_LITE(CIA,cia_bwx), \
116 .pci_ops = &cia_pci_ops, \
117 .mv_pci_tbi = cia_pci_tbi
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135#ifdef CONFIG_ALPHA_GENERIC
136#define __initmv __initdata
137#define ALIAS_MV(x)
138#else
139#define __initmv __refdata
140
141
142
143
144#if 0
145#define ALIAS_MV(system) \
146 struct alpha_machine_vector alpha_mv __attribute__((alias(#system "_mv"))); \
147 EXPORT_SYMBOL(alpha_mv);
148#else
149#define ALIAS_MV(system) \
150 asm(".global alpha_mv\nalpha_mv = " #system "_mv"); \
151 EXPORT_SYMBOL(alpha_mv);
152#endif
153#endif
154