X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-mips%2Fpci.h;h=3eea3ba0fca5ec7f2353a0555c0dc47c2800637d;hb=2d56d3c43cc97ae48586745556f5a5b564d61582;hp=6c9ad8171a773a9dd3e49d44b356292167306ece;hpb=be15cd72d256e5eb3261a781b8507fac83ab33f6;p=powerpc.git diff --git a/include/asm-mips/pci.h b/include/asm-mips/pci.h index 6c9ad8171a..3eea3ba0fc 100644 --- a/include/asm-mips/pci.h +++ b/include/asm-mips/pci.h @@ -6,7 +6,6 @@ #ifndef _ASM_PCI_H #define _ASM_PCI_H -#include #include #ifdef __KERNEL__ @@ -33,6 +32,7 @@ struct pci_controller { unsigned long mem_offset; struct resource *io_resource; unsigned long io_offset; + unsigned long io_map_base; unsigned int index; /* For compatibility with current (as of July 2003) pciutils @@ -188,4 +188,10 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev) /* Do platform specific device initialization at pci_enable_device() time */ extern int pcibios_plat_dev_init(struct pci_dev *dev); +/* Chances are this interrupt is wired PC-style ... */ +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) +{ + return channel ? 15 : 14; +} + #endif /* _ASM_PCI_H */