proto.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:5k
- #include <linux/config.h>
- /* Prototypes of functions used across modules here in this directory. */
- #define vucp volatile unsigned char *
- #define vusp volatile unsigned short *
- #define vip volatile int *
- #define vuip volatile unsigned int *
- #define vulp volatile unsigned long *
- struct pt_regs;
- struct task_struct;
- struct pci_dev;
- struct pci_controller;
- /* core_apecs.c */
- extern struct pci_ops apecs_pci_ops;
- extern void apecs_init_arch(void);
- extern void apecs_pci_clr_err(void);
- extern void apecs_machine_check(u64, u64, struct pt_regs *);
- extern void apecs_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* core_cia.c */
- extern struct pci_ops cia_pci_ops;
- extern void cia_init_pci(void);
- extern void cia_init_arch(void);
- extern void pyxis_init_arch(void);
- extern void cia_machine_check(u64, u64, struct pt_regs *);
- extern void cia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* core_irongate.c */
- extern struct pci_ops irongate_pci_ops;
- extern int irongate_pci_clr_err(void);
- extern void irongate_init_arch(void);
- extern void irongate_machine_check(u64, u64, struct pt_regs *);
- #define irongate_pci_tbi ((void *)0)
- /* core_lca.c */
- extern struct pci_ops lca_pci_ops;
- extern void lca_init_arch(void);
- extern void lca_machine_check(u64, u64, struct pt_regs *);
- extern void lca_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* core_mcpcia.c */
- extern struct pci_ops mcpcia_pci_ops;
- extern void mcpcia_init_arch(void);
- extern void mcpcia_init_hoses(void);
- extern void mcpcia_machine_check(u64, u64, struct pt_regs *);
- extern void mcpcia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* core_polaris.c */
- extern struct pci_ops polaris_pci_ops;
- extern int polaris_read_config_dword(struct pci_dev *, int, u32 *);
- extern int polaris_write_config_dword(struct pci_dev *, int, u32);
- extern void polaris_init_arch(void);
- extern void polaris_machine_check(u64, u64, struct pt_regs *);
- #define polaris_pci_tbi ((void *)0)
- /* core_t2.c */
- extern struct pci_ops t2_pci_ops;
- extern void t2_init_arch(void);
- extern void t2_machine_check(u64, u64, struct pt_regs *);
- #define t2_pci_tbi ((void *)0)
- /* core_titan.c */
- extern struct pci_ops titan_pci_ops;
- extern void titan_init_arch(void);
- extern void titan_kill_arch(int);
- extern void titan_machine_check(u64, u64, struct pt_regs *);
- extern void titan_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* core_tsunami.c */
- extern struct pci_ops tsunami_pci_ops;
- extern void tsunami_init_arch(void);
- extern void tsunami_kill_arch(int);
- extern void tsunami_machine_check(u64, u64, struct pt_regs *);
- extern void tsunami_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* core_wildfire.c */
- extern struct pci_ops wildfire_pci_ops;
- extern void wildfire_init_arch(void);
- extern void wildfire_kill_arch(int);
- extern void wildfire_machine_check(u64, u64, struct pt_regs *);
- extern void wildfire_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
- /* setup.c */
- extern unsigned long srm_hae;
- extern int boot_cpuid;
- extern int srmcons_output;
- extern void register_srm_console(void);
- extern void unregister_srm_console(void);
- /* smp.c */
- extern void setup_smp(void);
- extern void handle_ipi(struct pt_regs *);
- extern void smp_percpu_timer_interrupt(struct pt_regs *);
- /* bios32.c */
- /* extern void reset_for_srm(void); */
- /* time.c */
- extern void timer_interrupt(int irq, void *dev, struct pt_regs * regs);
- extern void common_init_rtc(void);
- extern unsigned long est_cycle_freq;
- /* smc37c93x.c */
- extern void SMC93x_Init(void);
- /* smc37c669.c */
- extern int SMC669_Init(int);
- /* es1888.c */
- extern void es1888_init(void);
- /* ns87312.c */
- extern void ns87312_enable_ide(long ide_base);
- /* ../lib/fpreg.c */
- extern void alpha_write_fp_reg (unsigned long reg, unsigned long val);
- extern unsigned long alpha_read_fp_reg (unsigned long reg);
- /* head.S */
- extern void wrmces(unsigned long mces);
- extern void cserve_ena(unsigned long);
- extern void cserve_dis(unsigned long);
- extern void __smp_callin(unsigned long);
- /* entry.S */
- extern void entArith(void);
- extern void entIF(void);
- extern void entInt(void);
- extern void entMM(void);
- extern void entSys(void);
- extern void entUna(void);
- extern void entDbg(void);
- /* process.c */
- extern void cpu_idle(void) __attribute__((noreturn));
- /* ptrace.c */
- extern int ptrace_set_bpt (struct task_struct *child);
- extern int ptrace_cancel_bpt (struct task_struct *child);
- /* traps.c */
- extern void dik_show_regs(struct pt_regs *regs, unsigned long *r9_15);
- extern void die_if_kernel(char *, struct pt_regs *, long, unsigned long *);
- /* ../mm/init.c */
- extern void switch_to_system_map(void);
- extern void srm_paging_stop(void);
- /* irq.c */
- #ifdef CONFIG_SMP
- #define mcheck_expected(cpu) (cpu_data[cpu].mcheck_expected)
- #define mcheck_taken(cpu) (cpu_data[cpu].mcheck_taken)
- #define mcheck_extra(cpu) (cpu_data[cpu].mcheck_extra)
- #else
- extern struct mcheck_info
- {
- unsigned char expected __attribute__((aligned(8)));
- unsigned char taken;
- unsigned char extra;
- } __mcheck_info;
- #define mcheck_expected(cpu) (__mcheck_info.expected)
- #define mcheck_taken(cpu) (__mcheck_info.taken)
- #define mcheck_extra(cpu) (__mcheck_info.extra)
- #endif
- #define DEBUG_MCHECK 0 /* 0 = minimal, 1 = debug, 2 = debug+dump. */
- extern void process_mcheck_info(unsigned long vector, unsigned long la_ptr,
- struct pt_regs *regs, const char *machine,
- int expected);