Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58646
b: refs/heads/master
c: 19df0d1
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Jul 10, 2007
1 parent 5c5ef05 commit 509d405
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b5bf509317c013ea0a7c166affc1d4631720d85
refs/heads/master: 19df0d1169b3ddcc84933794d1401aaafe2f0000
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-atlas.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static char irq_tab[][5] __initdata = {
{0, 0, 0, 0, 0 } /* 21: Unused */
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return irq_tab[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-au1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

extern char irq_tab_alchemy[][5];

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return irq_tab_alchemy[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-capcella.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static char irq_tab_capcella[][5] __initdata = {
[14] = { -1, INTA, INTB, INTC, INTD }
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return irq_tab_capcella[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-cobalt.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static char irq_tab_raq2[] __initdata = {
[COBALT_PCICONF_ETH1] = COBALT_ETH1_IRQ
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (cobalt_board_id < COBALT_BRD_ID_QUBE2)
return irq_tab_qube1[slot];
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-emma2rh.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void __devinit emma2rh_pci_host_fixup(struct pci_dev *dev)
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_EMMA2RH,
emma2rh_pci_host_fixup);

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return irq_map[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-excite.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <linux/pci.h>
#include <excite.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (pin == 0)
return -1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-ip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static char irq_tab_mace[][5] __initdata = {
* irqs. I suppose a device without a pin A will thank us for doing it
* right if there exists such a broken piece of crap.
*/
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return irq_tab_mace[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-jmr3927.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include <asm/jmr3927/jmr3927.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
unsigned char irq = pin;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-malta.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static char irq_tab[][5] __initdata = {
{0, PCID, PCIA, PCIB, PCIC } /* 21: PCI Slot 4 */
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int virq;
virq = irq_tab[slot][pin];
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-mpc30x.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static const int irq_tab_mpc30x[] __initdata = {
[29] = MQ200_IRQ,
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (slot == 30)
return internal_func_irqs[PCI_FUNC(dev->devfn)];
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-ocelot-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/kernel.h>
#include <linux/init.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int bus = dev->bus->number;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-ocelot3.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
return 0;
}

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int bus = dev->bus->number;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-pnx8550.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void __init pcibios_fixup(void)
/* nothing to do here */
}

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return pnx8550_irq_tab[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-rbtx4927.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ int pci_get_irq(struct pci_dev *dev, int pin)
return irq;
}

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
unsigned char irq;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-sni.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static inline int is_rm300_revd(void)
return (csmsr & 0xa0) == 0x20;
}

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
switch (sni_brd_type) {
case SNI_BRD_PCI_TOWER:
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-tb0219.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <asm/vr41xx/tb0219.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int irq = -1;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-tb0226.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <asm/vr41xx/giu.h>
#include <asm/vr41xx/tb0226.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int irq = -1;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-tb0287.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <asm/vr41xx/tb0287.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
unsigned char bus;
int irq = -1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-tx4938.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int pci_get_irq(struct pci_dev *dev, int pin)
return irq;
}

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
unsigned char irq = 0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-vr4133.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void i8259_init(void)
}
#endif

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
extern int pci_probe_only;
pci_probe_only = 1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-wrppmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static char pci_irq_tab[PCI_SLOT_MAXNR][5] __initdata = {
[6] = {0, WRPPMC_PCI_INTA_IRQ, 0, 0, 0},
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return pci_irq_tab[slot][pin];
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-yosemite.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/init.h>
#include <linux/pci.h>

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (pin == 0)
return -1;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/pci/pci-bcm1480.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ static inline void WRITECFG32(u32 addr, u32 data)
*(u32 *)(cfg_space + (addr & ~3)) = data;
}

int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
This is b0rked.
return dev->irq;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/pci-ddb5477.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static unsigned char rockhopperII_irq_map[MAX_SLOT_NUM] = {
/* SLOT: 20, AD:31 */ VRC5477_IRQ_IOPCI_INTA, /* vrc5477 usb host */
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int slot_num;
unsigned char *slot_irq_map;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/pci-ip27.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int __init bridge_probe(nasid_t nasid, int widget_id, int masterwid)
* A given PCI device, in general, should be able to intr any of the cpus
* on any one of the hubs connected to its xbow.
*/
int __devinit pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __devinit pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
int irq = bc->pci_int[slot];
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/pci-lasat.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ arch_initcall(lasat_pci_setup);
#define LASATINT_PCIC 7
#define LASATINT_PCID 8

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
switch (slot) {
case 1:
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/pci-sb1250.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static inline void WRITECFG32(u32 addr, u32 data)
*(u32 *) (cfg_space + (addr & ~3)) = data;
}

int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
return dev->irq;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-mips/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extern void register_pci_controller(struct pci_controller *hose);
/*
* board supplied pci irq fixup routine
*/
extern int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin);
extern int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);


/* Can be used to override the logic in pci_scan_bus for skipping
Expand Down

0 comments on commit 509d405

Please sign in to comment.