patch-2.4.1 linux/arch/ppc/kernel/galaxy_pci.c
Next file: linux/arch/ppc/kernel/gemini_pci.c
Previous file: linux/arch/ppc/kernel/feature.c
Back to the patch index
Back to the overall index
- Lines: 111
- Date:
Mon Jan 22 15:41:15 2001
- Orig file:
v2.4.0/linux/arch/ppc/kernel/galaxy_pci.c
- Orig date:
Thu Feb 10 12:37:51 2000
diff -u --recursive --new-file v2.4.0/linux/arch/ppc/kernel/galaxy_pci.c linux/arch/ppc/kernel/galaxy_pci.c
@@ -36,67 +36,84 @@
/* Function Prototypes */
-decl_config_access_method(galaxy);
-
-
void __init
galaxy_pcibios_fixup(void)
{
}
-void __init
-galaxy_setup_pci_ptrs(void)
+static int
+galaxy_pcibios_read_config_byte(struct pci_controller* hose,
+ u8 bus, u8 dev, u8 offset, u8 *val)
{
- set_config_access_method(galaxy);
- ppc_md.pcibios_fixup = galaxy_pcibios_fixup;
+ return (PCIBIOS_SUCCESSFUL);
}
-int
-galaxy_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn,
- unsigned char offset, unsigned char *val)
+static int
+galaxy_pcibios_read_config_word(struct pci_controller* hose,
+ u8 bus, u8 dev, u8 offset, u16 *val)
{
return (PCIBIOS_SUCCESSFUL);
}
-int
-galaxy_pcibios_read_config_word(unsigned char bus, unsigned char dev_fn,
- unsigned char offset, unsigned short *val)
+static int
+galaxy_pcibios_read_config_dword(struct pci_controller* hose,
+ u8 bus, u8 dev, u8 offset, u32 *val)
{
return (PCIBIOS_SUCCESSFUL);
}
-int
-galaxy_pcibios_read_config_dword(unsigned char bus, unsigned char dev_fn,
- unsigned char offset, unsigned int *val)
+static int
+galaxy_pcibios_write_config_byte(struct pci_controller* hose,
+ u8 bus, u8 dev, u8 offset, u8 val)
{
return (PCIBIOS_SUCCESSFUL);
}
-int
-galaxy_pcibios_write_config_byte(unsigned char bus, unsigned char dev_fn,
- unsigned char offset, unsigned char val)
+static int
+galaxy_pcibios_write_config_word(struct pci_controller* hose,
+ u8 bus, u8 dev, u8 offset, u16 val)
{
return (PCIBIOS_SUCCESSFUL);
}
-int
-galaxy_pcibios_write_config_word(unsigned char bus, unsigned char dev_fn,
- unsigned char offset, unsigned short val)
+static int
+galaxy_pcibios_write_config_dword(struct pci_controller* hose,
+ u8 bus, u8 dev, u8 offset, u32 val)
{
return (PCIBIOS_SUCCESSFUL);
}
-int
-galaxy_pcibios_write_config_dword(unsigned char bus, unsigned char dev_fn,
- unsigned char offset, unsigned int val)
+static struct pci_controller_ops galaxy_pci_ops =
{
+ galaxy_pcibios_read_config_byte,
+ galaxy_pcibios_read_config_word,
+ galaxy_pcibios_read_config_dword,
+ galaxy_pcibios_write_config_byte,
+ galaxy_pcibios_write_config_word,
+ galaxy_pcibios_write_config_dword
+};
- return (PCIBIOS_SUCCESSFUL);
+void __init
+galaxy_find_bridges(void)
+{
+ struct pci_controller* hose;
+
+ set_config_access_method(galaxy);
+
+ ppc_md.pcibios_fixup = galaxy_pcibios_fixup;
+ hose = pcibios_alloc_controller();
+ if (!hose)
+ return;
+ hose->ops = &galaxy_pci_ops;
+ /* Todo ...
+ hose->cfg_data = ioremap(PCICFGDATA, ...);
+ hose->cfg_addr = ioremap(PCICFGADDR, ...);
+ */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)