patch-2.1.121 linux/arch/alpha/kernel/proto.h

Next file: linux/arch/alpha/kernel/ptrace.c
Previous file: linux/arch/alpha/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.120/linux/arch/alpha/kernel/proto.h linux/arch/alpha/kernel/proto.h
@@ -6,13 +6,21 @@
 #define vuip	volatile unsigned int   *
 #define vulp	volatile unsigned long  *
 
+struct linux_hose_info;
+
 /* core_apecs.c */
-extern int apecs_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int apecs_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int apecs_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int apecs_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int apecs_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int apecs_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int apecs_hose_read_config_byte (u8, u8, u8, u8 *value,
+					struct linux_hose_info *hose);
+extern int apecs_hose_read_config_word (u8, u8, u8, u16 *value,
+					struct linux_hose_info *hose);
+extern int apecs_hose_read_config_dword (u8, u8, u8, u32 *value,
+					 struct linux_hose_info *hose);
+extern int apecs_hose_write_config_byte (u8, u8, u8, u8 value,
+					 struct linux_hose_info *hose);
+extern int apecs_hose_write_config_word (u8, u8, u8, u16 value,
+					 struct linux_hose_info *hose);
+extern int apecs_hose_write_config_dword (u8, u8, u8, u32 value,
+					  struct linux_hose_info *hose);
 extern void apecs_init_arch(unsigned long *, unsigned long *);
 
 extern volatile unsigned int apecs_mcheck_expected;
@@ -21,43 +29,66 @@
 extern void apecs_machine_check(u64, u64, struct pt_regs *);
 
 /* core_cia.c */
-extern int cia_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int cia_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int cia_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int cia_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int cia_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int cia_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int cia_hose_read_config_byte (u8, u8, u8, u8 *value,
+				      struct linux_hose_info *hose);
+extern int cia_hose_read_config_word (u8, u8, u8, u16 *value,
+				      struct linux_hose_info *hose);
+extern int cia_hose_read_config_dword (u8, u8, u8, u32 *value,
+				       struct linux_hose_info *hose);
+extern int cia_hose_write_config_byte (u8, u8, u8, u8 value,
+				       struct linux_hose_info *hose);
+extern int cia_hose_write_config_word (u8, u8, u8, u16 value,
+				       struct linux_hose_info *hose);
+extern int cia_hose_write_config_dword (u8, u8, u8, u32 value,
+					struct linux_hose_info *hose);
 extern void cia_init_arch(unsigned long *, unsigned long *);
 extern void cia_machine_check(u64, u64, struct pt_regs *);
 
 /* core_lca.c */
-extern int lca_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int lca_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int lca_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int lca_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int lca_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int lca_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int lca_hose_read_config_byte (u8, u8, u8, u8 *value,
+				      struct linux_hose_info *hose);
+extern int lca_hose_read_config_word (u8, u8, u8, u16 *value,
+				      struct linux_hose_info *hose);
+extern int lca_hose_read_config_dword (u8, u8, u8, u32 *value,
+				       struct linux_hose_info *hose);
+extern int lca_hose_write_config_byte (u8, u8, u8, u8 value,
+				       struct linux_hose_info *hose);
+extern int lca_hose_write_config_word (u8, u8, u8, u16 value,
+				       struct linux_hose_info *hose);
+extern int lca_hose_write_config_dword (u8, u8, u8, u32 value,
+					struct linux_hose_info *hose);
 extern void lca_init_arch(unsigned long *, unsigned long *);
 extern void lca_machine_check(u64, u64, struct pt_regs *);
 
 /* core_mcpcia.c */
-extern int mcpcia_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int mcpcia_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int mcpcia_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int mcpcia_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int mcpcia_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int mcpcia_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int mcpcia_hose_read_config_byte (u8, u8, u8, u8 *value,
+					 struct linux_hose_info *hose);
+extern int mcpcia_hose_read_config_word (u8, u8, u8, u16 *value,
+					 struct linux_hose_info *hose);
+extern int mcpcia_hose_read_config_dword (u8, u8, u8, u32 *value,
+					  struct linux_hose_info *hose);
+extern int mcpcia_hose_write_config_byte (u8, u8, u8, u8 value,
+					  struct linux_hose_info *hose);
+extern int mcpcia_hose_write_config_word (u8, u8, u8, u16 value,
+					  struct linux_hose_info *hose);
+extern int mcpcia_hose_write_config_dword (u8, u8, u8, u32 value,
+					   struct linux_hose_info *hose);
 extern void mcpcia_init_arch(unsigned long *, unsigned long *);
 extern void mcpcia_machine_check(u64, u64, struct pt_regs *);
-extern void mcpcia_pci_fixup(void);
 
 /* core_pyxis.c */
-extern int pyxis_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int pyxis_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int pyxis_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int pyxis_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int pyxis_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int pyxis_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int pyxis_hose_read_config_byte (u8, u8, u8, u8 *value,
+					struct linux_hose_info *hose);
+extern int pyxis_hose_read_config_word (u8, u8, u8, u16 *value,
+					struct linux_hose_info *hose);
+extern int pyxis_hose_read_config_dword (u8, u8, u8, u32 *value,
+					 struct linux_hose_info *hose);
+extern int pyxis_hose_write_config_byte (u8, u8, u8, u8 value,
+					 struct linux_hose_info *hose);
+extern int pyxis_hose_write_config_word (u8, u8, u8, u16 value,
+					 struct linux_hose_info *hose);
+extern int pyxis_hose_write_config_dword (u8, u8, u8, u32 value,
+					  struct linux_hose_info *hose);
 extern void pyxis_enable_errors (void);
 extern int pyxis_srm_window_setup (void);
 extern void pyxis_native_window_setup(void);
@@ -66,22 +97,34 @@
 extern void pyxis_machine_check(u64, u64, struct pt_regs *);
 
 /* core_t2.c */
-extern int t2_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int t2_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int t2_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int t2_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int t2_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int t2_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int t2_hose_read_config_byte (u8, u8, u8, u8 *value,
+				     struct linux_hose_info *hose);
+extern int t2_hose_read_config_word (u8, u8, u8, u16 *value,
+				     struct linux_hose_info *hose);
+extern int t2_hose_read_config_dword (u8, u8, u8, u32 *value,
+				      struct linux_hose_info *hose);
+extern int t2_hose_write_config_byte (u8, u8, u8, u8 value,
+				      struct linux_hose_info *hose);
+extern int t2_hose_write_config_word (u8, u8, u8, u16 value,
+				      struct linux_hose_info *hose);
+extern int t2_hose_write_config_dword (u8, u8, u8, u32 value,
+				       struct linux_hose_info *hose);
 extern void t2_init_arch(unsigned long *, unsigned long *);
 extern void t2_machine_check(u64, u64, struct pt_regs *);
 
 /* core_tsunami.c */
-extern int tsunami_pcibios_read_config_byte (u8, u8, u8, u8 *value);
-extern int tsunami_pcibios_read_config_word (u8, u8, u8, u16 *value);
-extern int tsunami_pcibios_read_config_dword (u8, u8, u8, u32 *value);
-extern int tsunami_pcibios_write_config_byte (u8, u8, u8, u8 value);
-extern int tsunami_pcibios_write_config_word (u8, u8, u8, u16 value);
-extern int tsunami_pcibios_write_config_dword (u8, u8, u8, u32 value);
+extern int tsunami_hose_read_config_byte (u8, u8, u8, u8 *value,
+					  struct linux_hose_info *hose);
+extern int tsunami_hose_read_config_word (u8, u8, u8, u16 *value,
+					  struct linux_hose_info *hose);
+extern int tsunami_hose_read_config_dword (u8, u8, u8, u32 *value,
+					   struct linux_hose_info *hose);
+extern int tsunami_hose_write_config_byte (u8, u8, u8, u8 value,
+					   struct linux_hose_info *hose);
+extern int tsunami_hose_write_config_word (u8, u8, u8, u16 value,
+					   struct linux_hose_info *hose);
+extern int tsunami_hose_write_config_dword (u8, u8, u8, u32 value,
+					    struct linux_hose_info *hose);
 extern void tsunami_init_arch(unsigned long *, unsigned long *);
 extern void tsunami_machine_check(u64, u64, struct pt_regs *);
 
@@ -92,14 +135,14 @@
 
 /* smp.c */
 extern void setup_smp(void);
-extern char *smp_info(void);
+extern int smp_info(char *buffer);
 extern void handle_ipi(struct pt_regs *);
 
 /* bios32.c */
 extern void reset_for_srm(void);
 
 /* time.c */
-extern void timer_interrupt(struct pt_regs * regs);
+extern void timer_interrupt(int irq, void *dev, struct pt_regs * regs);
 
 /* smc37c93x.c */
 extern void SMC93x_Init(void);
@@ -118,6 +161,7 @@
 extern void wrmces(unsigned long mces);
 extern void cserve_ena(unsigned long);
 extern void cserve_dis(unsigned long);
+extern void __start_cpu(unsigned long);
 
 /* entry.S */
 extern void entArith(void);
@@ -129,3 +173,4 @@
 
 /* process.c */
 void generic_kill_arch (int mode, char *reboot_cmd);
+void cpu_idle(void *) __attribute__((noreturn));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov