diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2007-10-02 09:54:41 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:14 -0400 |
commit | b4126e86301cfc6863cbc74bc4500a88b7c582df (patch) | |
tree | 45ab759f09e249b335208375d24a11c0797a200a /arch/mips/pci/fixup-cobalt.c | |
parent | b1df86d6e148e3be6d1e43e604b19fbb6815b8ba (diff) |
[MIPS] Cobalt: Move PCI definitions to arch/mips/pci/fixup-cobalt.c.
These PCI definitions are only used in arch/mips/pci/fixup-cobalt.c.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci/fixup-cobalt.c')
-rw-r--r-- | arch/mips/pci/fixup-cobalt.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/mips/pci/fixup-cobalt.c b/arch/mips/pci/fixup-cobalt.c index 4eb5410f842a..f7df1142912b 100644 --- a/arch/mips/pci/fixup-cobalt.c +++ b/arch/mips/pci/fixup-cobalt.c | |||
@@ -20,6 +20,23 @@ | |||
20 | #include <cobalt.h> | 20 | #include <cobalt.h> |
21 | #include <irq.h> | 21 | #include <irq.h> |
22 | 22 | ||
23 | /* | ||
24 | * PCI slot numbers | ||
25 | */ | ||
26 | #define COBALT_PCICONF_CPU 0x06 | ||
27 | #define COBALT_PCICONF_ETH0 0x07 | ||
28 | #define COBALT_PCICONF_RAQSCSI 0x08 | ||
29 | #define COBALT_PCICONF_VIA 0x09 | ||
30 | #define COBALT_PCICONF_PCISLOT 0x0A | ||
31 | #define COBALT_PCICONF_ETH1 0x0C | ||
32 | |||
33 | /* | ||
34 | * The Cobalt board ID information. The boards have an ID number wired | ||
35 | * into the VIA that is available in the high nibble of register 94. | ||
36 | */ | ||
37 | #define VIA_COBALT_BRD_ID_REG 0x94 | ||
38 | #define VIA_COBALT_BRD_REG_to_ID(reg) ((unsigned char)(reg) >> 4) | ||
39 | |||
23 | static void qube_raq_galileo_early_fixup(struct pci_dev *dev) | 40 | static void qube_raq_galileo_early_fixup(struct pci_dev *dev) |
24 | { | 41 | { |
25 | if (dev->devfn == PCI_DEVFN(0, 0) && | 42 | if (dev->devfn == PCI_DEVFN(0, 0) && |