patch-2.4.8 linux/arch/ia64/kernel/pci.c
Next file: linux/arch/ia64/kernel/perfmon.c
Previous file: linux/arch/ia64/kernel/minstate.h
Back to the patch index
Back to the overall index
- Lines: 107
- Date:
Tue Jul 31 10:30:08 2001
- Orig file:
v2.4.7/linux/arch/ia64/kernel/pci.c
- Orig date:
Fri Feb 9 11:29:44 2001
diff -u --recursive --new-file v2.4.7/linux/arch/ia64/kernel/pci.c linux/arch/ia64/kernel/pci.c
@@ -1,6 +1,6 @@
/*
* pci.c - Low-Level PCI Access in IA-64
- *
+ *
* Derived from bios32.c of i386 tree.
*/
#include <linux/config.h>
@@ -53,7 +53,7 @@
#define PCI_CONFIG_ADDRESS(dev, where) \
(((u64) dev->bus->number << 16) | ((u64) (dev->devfn & 0xff) << 8) | (where & 0xff))
-static int
+static int
pci_conf_read_config_byte(struct pci_dev *dev, int where, u8 *value)
{
s64 status;
@@ -64,7 +64,7 @@
return status;
}
-static int
+static int
pci_conf_read_config_word(struct pci_dev *dev, int where, u16 *value)
{
s64 status;
@@ -75,7 +75,7 @@
return status;
}
-static int
+static int
pci_conf_read_config_dword(struct pci_dev *dev, int where, u32 *value)
{
s64 status;
@@ -86,19 +86,19 @@
return status;
}
-static int
+static int
pci_conf_write_config_byte (struct pci_dev *dev, int where, u8 value)
{
return ia64_sal_pci_config_write(PCI_CONFIG_ADDRESS(dev, where), 1, value);
}
-static int
+static int
pci_conf_write_config_word (struct pci_dev *dev, int where, u16 value)
{
return ia64_sal_pci_config_write(PCI_CONFIG_ADDRESS(dev, where), 2, value);
}
-static int
+static int
pci_conf_write_config_dword (struct pci_dev *dev, int where, u32 value)
{
return ia64_sal_pci_config_write(PCI_CONFIG_ADDRESS(dev, where), 4, value);
@@ -116,7 +116,7 @@
/*
* Initialization. Uses the SAL interface
*/
-void __init
+void __init
pcibios_init (void)
{
# define PCI_BUSES_TO_SCAN 255
@@ -125,7 +125,7 @@
platform_pci_fixup(0); /* phase 0 initialization (before PCI bus has been scanned) */
printk("PCI: Probing PCI hardware\n");
- for (i = 0; i < PCI_BUSES_TO_SCAN; i++)
+ for (i = 0; i < PCI_BUSES_TO_SCAN; i++)
pci_scan_bus(i, &pci_conf, NULL);
platform_pci_fixup(1); /* phase 1 initialization (after PCI bus has been scanned) */
@@ -146,14 +146,14 @@
pcibios_update_resource (struct pci_dev *dev, struct resource *root,
struct resource *res, int resource)
{
- unsigned long where, size;
- u32 reg;
+ unsigned long where, size;
+ u32 reg;
- where = PCI_BASE_ADDRESS_0 + (resource * 4);
- size = res->end - res->start;
- pci_read_config_dword(dev, where, ®);
- reg = (reg & size) | (((u32)(res->start - root->start)) & ~size);
- pci_write_config_dword(dev, where, reg);
+ where = PCI_BASE_ADDRESS_0 + (resource * 4);
+ size = res->end - res->start;
+ pci_read_config_dword(dev, where, ®);
+ reg = (reg & size) | (((u32)(res->start - root->start)) & ~size);
+ pci_write_config_dword(dev, where, reg);
/* ??? FIXME -- record old value for shutdown. */
}
@@ -190,7 +190,7 @@
/*
* PCI BIOS setup, always defaults to SAL interface
*/
-char * __init
+char * __init
pcibios_setup (char *str)
{
return NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)