pci.c (0337966d121ebebf73a1c346123e8112796e684e) pci.c (19a8d6b7604df85402deecae01d7861cb1d40c89)
1/*
2 * linux/arch/mips/txx9/pci.c
3 *
4 * Based on linux/arch/mips/txx9/rbtx4927/setup.c,
5 * linux/arch/mips/txx9/rbtx4938/setup.c,
6 * and RBTX49xx patch from CELF patch archive.
7 *
8 * Copyright 2001-2005 MontaVista Software Inc.

--- 372 unchanged lines hidden (view full) ---

381DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, final_fixup);
382DECLARE_PCI_FIXUP_RESUME(PCI_ANY_ID, PCI_ANY_ID, final_fixup);
383
384int pcibios_plat_dev_init(struct pci_dev *dev)
385{
386 return 0;
387}
388
1/*
2 * linux/arch/mips/txx9/pci.c
3 *
4 * Based on linux/arch/mips/txx9/rbtx4927/setup.c,
5 * linux/arch/mips/txx9/rbtx4938/setup.c,
6 * and RBTX49xx patch from CELF patch archive.
7 *
8 * Copyright 2001-2005 MontaVista Software Inc.

--- 372 unchanged lines hidden (view full) ---

381DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, final_fixup);
382DECLARE_PCI_FIXUP_RESUME(PCI_ANY_ID, PCI_ANY_ID, final_fixup);
383
384int pcibios_plat_dev_init(struct pci_dev *dev)
385{
386 return 0;
387}
388
389int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
389static int (*txx9_pci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
390int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
390{
391{
391 return txx9_board_vec->pci_map_irq(dev, slot, pin);
392 return txx9_pci_map_irq(dev, slot, pin);
392}
393
394char * (*txx9_board_pcibios_setup)(char *str) __initdata;
395
396char *__init txx9_pcibios_setup(char *str)
397{
398 if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str))
399 return NULL;

--- 19 unchanged lines hidden (view full) ---

419 return NULL;
420 } else if (!strncmp(str, "err=", 4)) {
421 if (!strcmp(str + 4, "panic"))
422 txx9_pci_err_action = TXX9_PCI_ERR_PANIC;
423 else if (!strcmp(str + 4, "ignore"))
424 txx9_pci_err_action = TXX9_PCI_ERR_IGNORE;
425 return NULL;
426 }
393}
394
395char * (*txx9_board_pcibios_setup)(char *str) __initdata;
396
397char *__init txx9_pcibios_setup(char *str)
398{
399 if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str))
400 return NULL;

--- 19 unchanged lines hidden (view full) ---

420 return NULL;
421 } else if (!strncmp(str, "err=", 4)) {
422 if (!strcmp(str + 4, "panic"))
423 txx9_pci_err_action = TXX9_PCI_ERR_PANIC;
424 else if (!strcmp(str + 4, "ignore"))
425 txx9_pci_err_action = TXX9_PCI_ERR_IGNORE;
426 return NULL;
427 }
428
429 txx9_pci_map_irq = txx9_board_vec->pci_map_irq;
430
427 return str;
428}
431 return str;
432}