| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |  | 
|  | 13 | struct pt_regs; | 
|  | 14 | struct task_struct; | 
|  | 15 | struct pci_dev; | 
|  | 16 | struct pci_controller; | 
|  | 17 |  | 
|  | 18 | /* core_apecs.c */ | 
|  | 19 | extern struct pci_ops apecs_pci_ops; | 
|  | 20 | extern void apecs_init_arch(void); | 
|  | 21 | extern void apecs_pci_clr_err(void); | 
|  | 22 | extern void apecs_machine_check(u64, u64, struct pt_regs *); | 
|  | 23 | extern void apecs_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 24 |  | 
|  | 25 | /* core_cia.c */ | 
|  | 26 | extern struct pci_ops cia_pci_ops; | 
|  | 27 | extern void cia_init_pci(void); | 
|  | 28 | extern void cia_init_arch(void); | 
|  | 29 | extern void pyxis_init_arch(void); | 
|  | 30 | extern void cia_kill_arch(int); | 
|  | 31 | extern void cia_machine_check(u64, u64, struct pt_regs *); | 
|  | 32 | extern void cia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 33 |  | 
|  | 34 | /* core_irongate.c */ | 
|  | 35 | extern struct pci_ops irongate_pci_ops; | 
|  | 36 | extern int irongate_pci_clr_err(void); | 
|  | 37 | extern void irongate_init_arch(void); | 
|  | 38 | extern void irongate_machine_check(u64, u64, struct pt_regs *); | 
|  | 39 | #define irongate_pci_tbi ((void *)0) | 
|  | 40 |  | 
|  | 41 | /* core_lca.c */ | 
|  | 42 | extern struct pci_ops lca_pci_ops; | 
|  | 43 | extern void lca_init_arch(void); | 
|  | 44 | extern void lca_machine_check(u64, u64, struct pt_regs *); | 
|  | 45 | extern void lca_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 46 |  | 
|  | 47 | /* core_marvel.c */ | 
|  | 48 | extern struct pci_ops marvel_pci_ops; | 
|  | 49 | extern void marvel_init_arch(void); | 
|  | 50 | extern void marvel_kill_arch(int); | 
|  | 51 | extern void marvel_machine_check(u64, u64, struct pt_regs *); | 
|  | 52 | extern void marvel_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 53 | extern int marvel_pa_to_nid(unsigned long); | 
|  | 54 | extern int marvel_cpuid_to_nid(int); | 
|  | 55 | extern unsigned long marvel_node_mem_start(int); | 
|  | 56 | extern unsigned long marvel_node_mem_size(int); | 
|  | 57 | extern struct _alpha_agp_info *marvel_agp_info(void); | 
|  | 58 | struct io7 *marvel_find_io7(int pe); | 
|  | 59 | struct io7 *marvel_next_io7(struct io7 *prev); | 
|  | 60 | void io7_clear_errors(struct io7 *io7); | 
|  | 61 |  | 
|  | 62 | /* core_mcpcia.c */ | 
|  | 63 | extern struct pci_ops mcpcia_pci_ops; | 
|  | 64 | extern void mcpcia_init_arch(void); | 
|  | 65 | extern void mcpcia_init_hoses(void); | 
|  | 66 | extern void mcpcia_machine_check(u64, u64, struct pt_regs *); | 
|  | 67 | extern void mcpcia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 68 |  | 
|  | 69 | /* core_polaris.c */ | 
|  | 70 | extern struct pci_ops polaris_pci_ops; | 
|  | 71 | extern int polaris_read_config_dword(struct pci_dev *, int, u32 *); | 
|  | 72 | extern int polaris_write_config_dword(struct pci_dev *, int, u32); | 
|  | 73 | extern void polaris_init_arch(void); | 
|  | 74 | extern void polaris_machine_check(u64, u64, struct pt_regs *); | 
|  | 75 | #define polaris_pci_tbi ((void *)0) | 
|  | 76 |  | 
|  | 77 | /* core_t2.c */ | 
|  | 78 | extern struct pci_ops t2_pci_ops; | 
|  | 79 | extern void t2_init_arch(void); | 
|  | 80 | extern void t2_kill_arch(int); | 
|  | 81 | extern void t2_machine_check(u64, u64, struct pt_regs *); | 
|  | 82 | extern void t2_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 83 |  | 
|  | 84 | /* core_titan.c */ | 
|  | 85 | extern struct pci_ops titan_pci_ops; | 
|  | 86 | extern void titan_init_arch(void); | 
|  | 87 | extern void titan_kill_arch(int); | 
|  | 88 | extern void titan_machine_check(u64, u64, struct pt_regs *); | 
|  | 89 | extern void titan_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 90 | extern struct _alpha_agp_info *titan_agp_info(void); | 
|  | 91 |  | 
|  | 92 | /* core_tsunami.c */ | 
|  | 93 | extern struct pci_ops tsunami_pci_ops; | 
|  | 94 | extern void tsunami_init_arch(void); | 
|  | 95 | extern void tsunami_kill_arch(int); | 
|  | 96 | extern void tsunami_machine_check(u64, u64, struct pt_regs *); | 
|  | 97 | extern void tsunami_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 98 |  | 
|  | 99 | /* core_wildfire.c */ | 
|  | 100 | extern struct pci_ops wildfire_pci_ops; | 
|  | 101 | extern void wildfire_init_arch(void); | 
|  | 102 | extern void wildfire_kill_arch(int); | 
|  | 103 | extern void wildfire_machine_check(u64, u64, struct pt_regs *); | 
|  | 104 | extern void wildfire_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t); | 
|  | 105 | extern int wildfire_pa_to_nid(unsigned long); | 
|  | 106 | extern int wildfire_cpuid_to_nid(int); | 
|  | 107 | extern unsigned long wildfire_node_mem_start(int); | 
|  | 108 | extern unsigned long wildfire_node_mem_size(int); | 
|  | 109 |  | 
|  | 110 | /* setup.c */ | 
|  | 111 | extern unsigned long srm_hae; | 
|  | 112 | extern int boot_cpuid; | 
|  | 113 | #ifdef CONFIG_VERBOSE_MCHECK | 
|  | 114 | extern unsigned long alpha_verbose_mcheck; | 
|  | 115 | #endif | 
|  | 116 |  | 
|  | 117 | /* srmcons.c */ | 
|  | 118 | #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM) | 
|  | 119 | extern void register_srm_console(void); | 
|  | 120 | extern void unregister_srm_console(void); | 
|  | 121 | #else | 
|  | 122 | #define register_srm_console() | 
|  | 123 | #define unregister_srm_console() | 
|  | 124 | #endif | 
|  | 125 |  | 
|  | 126 | /* smp.c */ | 
|  | 127 | extern void setup_smp(void); | 
|  | 128 | extern void handle_ipi(struct pt_regs *); | 
|  | 129 | extern void smp_percpu_timer_interrupt(struct pt_regs *); | 
|  | 130 |  | 
|  | 131 | /* bios32.c */ | 
|  | 132 | /* extern void reset_for_srm(void); */ | 
|  | 133 |  | 
|  | 134 | /* time.c */ | 
|  | 135 | extern irqreturn_t timer_interrupt(int irq, void *dev, struct pt_regs * regs); | 
|  | 136 | extern void common_init_rtc(void); | 
|  | 137 | extern unsigned long est_cycle_freq; | 
|  | 138 |  | 
|  | 139 | /* smc37c93x.c */ | 
|  | 140 | extern void SMC93x_Init(void); | 
|  | 141 |  | 
|  | 142 | /* smc37c669.c */ | 
|  | 143 | extern void SMC669_Init(int); | 
|  | 144 |  | 
|  | 145 | /* es1888.c */ | 
|  | 146 | extern void es1888_init(void); | 
|  | 147 |  | 
|  | 148 | /* ns87312.c */ | 
|  | 149 | extern void ns87312_enable_ide(long ide_base); | 
|  | 150 |  | 
|  | 151 | /* ../lib/fpreg.c */ | 
|  | 152 | extern void alpha_write_fp_reg (unsigned long reg, unsigned long val); | 
|  | 153 | extern unsigned long alpha_read_fp_reg (unsigned long reg); | 
|  | 154 |  | 
|  | 155 | /* head.S */ | 
|  | 156 | extern void wrmces(unsigned long mces); | 
|  | 157 | extern void cserve_ena(unsigned long); | 
|  | 158 | extern void cserve_dis(unsigned long); | 
|  | 159 | extern void __smp_callin(unsigned long); | 
|  | 160 |  | 
|  | 161 | /* entry.S */ | 
|  | 162 | extern void entArith(void); | 
|  | 163 | extern void entIF(void); | 
|  | 164 | extern void entInt(void); | 
|  | 165 | extern void entMM(void); | 
|  | 166 | extern void entSys(void); | 
|  | 167 | extern void entUna(void); | 
|  | 168 | extern void entDbg(void); | 
|  | 169 |  | 
|  | 170 | /* ptrace.c */ | 
|  | 171 | extern int ptrace_set_bpt (struct task_struct *child); | 
|  | 172 | extern int ptrace_cancel_bpt (struct task_struct *child); | 
|  | 173 |  | 
|  | 174 | /* traps.c */ | 
|  | 175 | extern void dik_show_regs(struct pt_regs *regs, unsigned long *r9_15); | 
|  | 176 | extern void die_if_kernel(char *, struct pt_regs *, long, unsigned long *); | 
|  | 177 |  | 
|  | 178 | /* sys_titan.c */ | 
|  | 179 | extern void titan_dispatch_irqs(u64, struct pt_regs *); | 
|  | 180 |  | 
|  | 181 | /* ../mm/init.c */ | 
|  | 182 | extern void switch_to_system_map(void); | 
|  | 183 | extern void srm_paging_stop(void); | 
|  | 184 |  | 
|  | 185 | /* ../mm/remap.c */ | 
|  | 186 | extern 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 | 
|  | 196 | extern 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 |  | 
|  | 208 | extern void process_mcheck_info(unsigned long vector, unsigned long la_ptr, | 
|  | 209 | struct pt_regs *regs, const char *machine, | 
|  | 210 | int expected); |