diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-03-02 07:18:01 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-03-02 07:18:01 -0800 |
| commit | 2235551de593b3e7b93a7f239bb8097929b1cfd6 (patch) | |
| tree | 9436ca90f8e2ff2d634ff1f9b933b1eec647fa50 /include | |
| parent | 1274fcd685ec15f10261f48dc990367c2180d589 (diff) | |
| parent | 458a71cde815a7ab0848046f42af2d4fcb226fef (diff) | |
Merge suse.de:/home/greg/linux/BK/bleed-2.6
into suse.de:/home/greg/linux/BK/pci-2.6
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-alpha/pci.h | 11 | ||||
| -rw-r--r-- | include/asm-ia64/pci.h | 9 | ||||
| -rw-r--r-- | include/asm-mips/pci.h | 11 | ||||
| -rw-r--r-- | include/asm-ppc/pci.h | 3 | ||||
| -rw-r--r-- | include/asm-ppc64/pci.h | 4 | ||||
| -rw-r--r-- | include/asm-sparc64/pci.h | 5 | ||||
| -rw-r--r-- | include/linux/pci.h | 11 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 5 |
8 files changed, 23 insertions, 36 deletions
diff --git a/include/asm-alpha/pci.h b/include/asm-alpha/pci.h index bbefe1238d63..88854a9dd150 100644 --- a/include/asm-alpha/pci.h +++ b/include/asm-alpha/pci.h @@ -228,17 +228,10 @@ extern void pcibios_resource_to_bus(struct pci_dev *, struct pci_bus_region *, #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index -static inline int -pci_name_bus(char *name, struct pci_bus *bus) +static inline int pci_proc_domain(struct pci_bus *bus) { struct pci_controller *hose = bus->sysdata; - - if (likely(hose->need_domain_info == 0)) { - sprintf(name, "%02x", bus->number); - } else { - sprintf(name, "%04x:%02x", hose->index, bus->number); - } - return 0; + return hose->need_domain_info; } static inline void diff --git a/include/asm-ia64/pci.h b/include/asm-ia64/pci.h index 48e565fb5e0f..a8314ee4e7d2 100644 --- a/include/asm-ia64/pci.h +++ b/include/asm-ia64/pci.h @@ -121,14 +121,9 @@ struct pci_controller { extern struct pci_ops pci_root_ops; -static inline int pci_name_bus(char *name, struct pci_bus *bus) +static inline int pci_proc_domain(struct pci_bus *bus) { - if (pci_domain_nr(bus) == 0) { - sprintf(name, "%02x", bus->number); - } else { - sprintf(name, "%04x:%02x", pci_domain_nr(bus), bus->number); - } - return 0; + return (pci_domain_nr(bus) != 0); } static inline void pcibios_add_platform_entries(struct pci_dev *dev) diff --git a/include/asm-mips/pci.h b/include/asm-mips/pci.h index 987090e07a65..c9c576b48556 100644 --- a/include/asm-mips/pci.h +++ b/include/asm-mips/pci.h @@ -137,17 +137,10 @@ extern void pcibios_resource_to_bus(struct pci_dev *dev, #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index -static inline int -pci_name_bus(char *name, struct pci_bus *bus) +static inline int pci_proc_domain(struct pci_bus *bus) { struct pci_controller *hose = bus->sysdata; - - if (likely(hose->need_domain_info == 0)) { - sprintf(name, "%02x", bus->number); - } else { - sprintf(name, "%04x:%02x", hose->index, bus->number); - } - return 0; + return hose->need_domain_info; } #endif /* CONFIG_PCI_DOMAINS */ diff --git a/include/asm-ppc/pci.h b/include/asm-ppc/pci.h index 5349f5ca4697..4312793a1d41 100644 --- a/include/asm-ppc/pci.h +++ b/include/asm-ppc/pci.h @@ -79,9 +79,8 @@ extern unsigned long pci_bus_to_phys(unsigned int ba, int busnr); #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index /* Set the name of the bus as it appears in /proc/bus/pci */ -static inline int pci_name_bus(char *name, struct pci_bus *bus) +static inline int pci_proc_domain(struct pci_bus *bus) { - sprintf(name, "%02x", bus->number); return 0; } diff --git a/include/asm-ppc64/pci.h b/include/asm-ppc64/pci.h index 144878b404aa..d87b70e088b2 100644 --- a/include/asm-ppc64/pci.h +++ b/include/asm-ppc64/pci.h @@ -190,8 +190,8 @@ static inline int pci_dma_mapping_error(dma_addr_t dma_addr) extern int pci_domain_nr(struct pci_bus *bus); -/* Set the name of the bus as it appears in /proc/bus/pci */ -extern int pci_name_bus(char *name, struct pci_bus *bus); +/* Decide whether to display the domain number in /proc */ +extern int pci_proc_domain(struct pci_bus *bus); struct vm_area_struct; /* Map a range of PCI memory or I/O space for a device into user space */ diff --git a/include/asm-sparc64/pci.h b/include/asm-sparc64/pci.h index 861f16533ba2..2a0c85cd1c11 100644 --- a/include/asm-sparc64/pci.h +++ b/include/asm-sparc64/pci.h @@ -223,7 +223,10 @@ static inline int pci_dma_mapping_error(dma_addr_t dma_addr) /* Return the index of the PCI controller for device PDEV. */ extern int pci_domain_nr(struct pci_bus *bus); -extern int pci_name_bus(char *name, struct pci_bus *bus); +static inline int pci_proc_domain(struct pci_bus *bus) +{ + return 1; +} /* Platform support for /proc/bus/pci/X/Y mmap()s. */ diff --git a/include/linux/pci.h b/include/linux/pci.h index d0844ceb2810..87da80182983 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -549,8 +549,6 @@ struct pci_dev { unsigned int irq; struct resource resource[DEVICE_COUNT_RESOURCE]; /* I/O and memory regions + expansion ROMs */ - char * slot_name; /* pointer to dev.bus_id */ - /* These fields are used by common fixups */ unsigned int transparent:1; /* Transparent PCI bridge */ unsigned int multifunction:1;/* Part of multi-function device */ @@ -642,8 +640,10 @@ struct pci_ops { }; struct pci_raw_ops { - int (*read)(int dom, int bus, int devfn, int reg, int len, u32 *val); - int (*write)(int dom, int bus, int devfn, int reg, int len, u32 val); + int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn, + int reg, int len, u32 *val); + int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn, + int reg, int len, u32 val); }; extern struct pci_raw_ops *raw_pci_ops; @@ -966,9 +966,8 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int en */ #ifndef CONFIG_PCI_DOMAINS static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } -static inline int pci_name_bus(char *name, struct pci_bus *bus) +static inline int pci_proc_domain(struct pci_bus *bus) { - sprintf(name, "%02x", bus->number); return 0; } #endif diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 3dca3b53f74b..95983c84aa98 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -862,6 +862,9 @@ #define PCI_DEVICE_ID_APPLE_KEYLARGO_I 0x003e #define PCI_DEVICE_ID_APPLE_K2_ATA100 0x0043 #define PCI_DEVICE_ID_APPLE_K2_GMAC 0x004c +#define PCI_DEVICE_ID_APPLE_SH_ATA 0x0050 +#define PCI_DEVICE_ID_APPLE_SH_SUNGEM 0x0051 +#define PCI_DEVICE_ID_APPLE_SH_FW 0x0052 #define PCI_DEVICE_ID_APPLE_TIGON3 0x1645 #define PCI_VENDOR_ID_YAMAHA 0x1073 @@ -1905,6 +1908,8 @@ #define PCI_DEVICE_ID_OXSEMI_16PCI954PP 0x9513 #define PCI_DEVICE_ID_OXSEMI_16PCI952 0x9521 +#define PCI_VENDOR_ID_SAMSUNG 0x144d + #define PCI_VENDOR_ID_AIRONET 0x14b9 #define PCI_DEVICE_ID_AIRONET_4800_1 0x0001 #define PCI_DEVICE_ID_AIRONET_4800 0x4500 // values switched? see |
