aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/proto.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/alpha/kernel/proto.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/alpha/kernel/proto.h')
-rw-r--r--arch/alpha/kernel/proto.h210
1 files changed, 210 insertions, 0 deletions
diff --git a/arch/alpha/kernel/proto.h b/arch/alpha/kernel/proto.h
new file mode 100644
index 000000000000..e1560fb15610
--- /dev/null
+++ b/arch/alpha/kernel/proto.h
@@ -0,0 +1,210 @@
1#include <linux/config.h>
2#include <linux/interrupt.h>
3
4
5/* Prototypes of functions used across modules here in this directory. */
6
7#define vucp volatile unsigned char *
8#define vusp volatile unsigned short *
9#define vip volatile int *
10#define vuip volatile unsigned int *
11#define vulp volatile unsigned long *
12
13struct pt_regs;
14struct task_struct;
15struct pci_dev;
16struct pci_controller;
17
18/* core_apecs.c */
19extern struct pci_ops apecs_pci_ops;
20extern void apecs_init_arch(void);
21extern void apecs_pci_clr_err(void);
22extern void apecs_machine_check(u64, u64, struct pt_regs *);
23extern void apecs_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
24
25/* core_cia.c */
26extern struct pci_ops cia_pci_ops;
27extern void cia_init_pci(void);
28extern void cia_init_arch(void);
29extern void pyxis_init_arch(void);
30extern void cia_kill_arch(int);
31extern void cia_machine_check(u64, u64, struct pt_regs *);
32extern void cia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
33
34/* core_irongate.c */
35extern struct pci_ops irongate_pci_ops;
36extern int irongate_pci_clr_err(void);
37extern void irongate_init_arch(void);
38extern void irongate_machine_check(u64, u64, struct pt_regs *);
39#define irongate_pci_tbi ((void *)0)
40
41/* core_lca.c */
42extern struct pci_ops lca_pci_ops;
43extern void lca_init_arch(void);
44extern void lca_machine_check(u64, u64, struct pt_regs *);
45extern void lca_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
46
47/* core_marvel.c */
48extern struct pci_ops marvel_pci_ops;
49extern void marvel_init_arch(void);
50extern void marvel_kill_arch(int);
51extern void marvel_machine_check(u64, u64, struct pt_regs *);
52extern void marvel_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
53extern int marvel_pa_to_nid(unsigned long);
54extern int marvel_cpuid_to_nid(int);
55extern unsigned long marvel_node_mem_start(int);
56extern unsigned long marvel_node_mem_size(int);
57extern struct _alpha_agp_info *marvel_agp_info(void);
58struct io7 *marvel_find_io7(int pe);
59struct io7 *marvel_next_io7(struct io7 *prev);
60void io7_clear_errors(struct io7 *io7);
61
62/* core_mcpcia.c */
63extern struct pci_ops mcpcia_pci_ops;
64extern void mcpcia_init_arch(void);
65extern void mcpcia_init_hoses(void);
66extern void mcpcia_machine_check(u64, u64, struct pt_regs *);
67extern void mcpcia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
68
69/* core_polaris.c */
70extern struct pci_ops polaris_pci_ops;
71extern int polaris_read_config_dword(struct pci_dev *, int, u32 *);
72extern int polaris_write_config_dword(struct pci_dev *, int, u32);
73extern void polaris_init_arch(void);
74extern void polaris_machine_check(u64, u64, struct pt_regs *);
75#define polaris_pci_tbi ((void *)0)
76
77/* core_t2.c */
78extern struct pci_ops t2_pci_ops;
79extern void t2_init_arch(void);
80extern void t2_kill_arch(int);
81extern void t2_machine_check(u64, u64, struct pt_regs *);
82extern void t2_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
83
84/* core_titan.c */
85extern struct pci_ops titan_pci_ops;
86extern void titan_init_arch(void);
87extern void titan_kill_arch(int);
88extern void titan_machine_check(u64, u64, struct pt_regs *);
89extern void titan_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
90extern struct _alpha_agp_info *titan_agp_info(void);
91
92/* core_tsunami.c */
93extern struct pci_ops tsunami_pci_ops;
94extern void tsunami_init_arch(void);
95extern void tsunami_kill_arch(int);
96extern void tsunami_machine_check(u64, u64, struct pt_regs *);
97extern void tsunami_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
98
99/* core_wildfire.c */
100extern struct pci_ops wildfire_pci_ops;
101extern void wildfire_init_arch(void);
102extern void wildfire_kill_arch(int);
103extern void wildfire_machine_check(u64, u64, struct pt_regs *);
104extern void wildfire_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
105extern int wildfire_pa_to_nid(unsigned long);
106extern int wildfire_cpuid_to_nid(int);
107extern unsigned long wildfire_node_mem_start(int);
108extern unsigned long wildfire_node_mem_size(int);
109
110/* setup.c */
111extern unsigned long srm_hae;
112extern int boot_cpuid;
113#ifdef CONFIG_VERBOSE_MCHECK
114extern unsigned long alpha_verbose_mcheck;
115#endif
116
117/* srmcons.c */
118#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM)
119extern void register_srm_console(void);
120extern void unregister_srm_console(void);
121#else
122#define register_srm_console()
123#define unregister_srm_console()
124#endif
125
126/* smp.c */
127extern void setup_smp(void);
128extern void handle_ipi(struct pt_regs *);
129extern void smp_percpu_timer_interrupt(struct pt_regs *);
130
131/* bios32.c */
132/* extern void reset_for_srm(void); */
133
134/* time.c */
135extern irqreturn_t timer_interrupt(int irq, void *dev, struct pt_regs * regs);
136extern void common_init_rtc(void);
137extern unsigned long est_cycle_freq;
138
139/* smc37c93x.c */
140extern void SMC93x_Init(void);
141
142/* smc37c669.c */
143extern void SMC669_Init(int);
144
145/* es1888.c */
146extern void es1888_init(void);
147
148/* ns87312.c */
149extern void ns87312_enable_ide(long ide_base);
150
151/* ../lib/fpreg.c */
152extern void alpha_write_fp_reg (unsigned long reg, unsigned long val);
153extern unsigned long alpha_read_fp_reg (unsigned long reg);
154
155/* head.S */
156extern void wrmces(unsigned long mces);
157extern void cserve_ena(unsigned long);
158extern void cserve_dis(unsigned long);
159extern void __smp_callin(unsigned long);
160
161/* entry.S */
162extern void entArith(void);
163extern void entIF(void);
164extern void entInt(void);
165extern void entMM(void);
166extern void entSys(void);
167extern void entUna(void);
168extern void entDbg(void);
169
170/* ptrace.c */
171extern int ptrace_set_bpt (struct task_struct *child);
172extern int ptrace_cancel_bpt (struct task_struct *child);
173
174/* traps.c */
175extern void dik_show_regs(struct pt_regs *regs, unsigned long *r9_15);
176extern void die_if_kernel(char *, struct pt_regs *, long, unsigned long *);
177
178/* sys_titan.c */
179extern void titan_dispatch_irqs(u64, struct pt_regs *);
180
181/* ../mm/init.c */
182extern void switch_to_system_map(void);
183extern void srm_paging_stop(void);
184
185/* ../mm/remap.c */
186extern int __alpha_remap_area_pages(unsigned long, unsigned long,
187 unsigned long, unsigned long);
188
189/* irq.c */
190
191#ifdef CONFIG_SMP
192#define mcheck_expected(cpu) (cpu_data[cpu].mcheck_expected)
193#define mcheck_taken(cpu) (cpu_data[cpu].mcheck_taken)
194#define mcheck_extra(cpu) (cpu_data[cpu].mcheck_extra)
195#else
196extern struct mcheck_info
197{
198 unsigned char expected __attribute__((aligned(8)));
199 unsigned char taken;
200 unsigned char extra;
201} __mcheck_info;
202
203#define mcheck_expected(cpu) (*((void)(cpu), &__mcheck_info.expected))
204#define mcheck_taken(cpu) (*((void)(cpu), &__mcheck_info.taken))
205#define mcheck_extra(cpu) (*((void)(cpu), &__mcheck_info.extra))
206#endif
207
208extern void process_mcheck_info(unsigned long vector, unsigned long la_ptr,
209 struct pt_regs *regs, const char *machine,
210 int expected);