mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
pci: cleanup __PCI_REROUTE_INTERRUPTS
This flag was used as a transition for differing pcib implementations. Today it is defined for all supported architectures, and can be removed. Reviewed by: imp, jhb Differential Revision: https://reviews.freebsd.org/D48485
This commit is contained in:
parent
6651a75af2
commit
5884fab461
7 changed files with 0 additions and 15 deletions
|
|
@ -48,7 +48,6 @@
|
|||
*/
|
||||
|
||||
#define __HAVE_ACPI
|
||||
#define __PCI_REROUTE_INTERRUPT
|
||||
|
||||
#ifndef MACHINE
|
||||
#define MACHINE "amd64"
|
||||
|
|
|
|||
|
|
@ -49,8 +49,6 @@
|
|||
#define STACKALIGNBYTES (8 - 1)
|
||||
#define STACKALIGN(p) ((u_int)(p) & ~STACKALIGNBYTES)
|
||||
|
||||
#define __PCI_REROUTE_INTERRUPT
|
||||
|
||||
#ifndef MACHINE
|
||||
#define MACHINE "arm"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@
|
|||
#define STACKALIGNBYTES (16 - 1)
|
||||
#define STACKALIGN(p) ((uint64_t)(p) & ~STACKALIGNBYTES)
|
||||
|
||||
#define __PCI_REROUTE_INTERRUPT
|
||||
|
||||
#ifndef MACHINE
|
||||
#define MACHINE "arm64"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4094,7 +4094,6 @@ pci_add_resources(device_t bus, device_t dev, int force, uint32_t prefetchmask)
|
|||
pci_add_map(bus, dev, q->arg1, rl, force, 0);
|
||||
|
||||
if (cfg->intpin > 0 && PCI_INTERRUPT_VALID(cfg->intline)) {
|
||||
#ifdef __PCI_REROUTE_INTERRUPT
|
||||
/*
|
||||
* Try to re-route interrupts. Sometimes the BIOS or
|
||||
* firmware may leave bogus values in these registers.
|
||||
|
|
@ -4102,9 +4101,6 @@ pci_add_resources(device_t bus, device_t dev, int force, uint32_t prefetchmask)
|
|||
* have.
|
||||
*/
|
||||
pci_assign_interrupt(bus, dev, 1);
|
||||
#else
|
||||
pci_assign_interrupt(bus, dev, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (pci_usb_takeover && pci_get_class(dev) == PCIC_SERIALBUS &&
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
|
||||
#define __HAVE_ACPI
|
||||
#define __HAVE_PIR
|
||||
#define __PCI_REROUTE_INTERRUPT
|
||||
|
||||
#ifndef MACHINE
|
||||
#define MACHINE "i386"
|
||||
|
|
|
|||
|
|
@ -46,9 +46,6 @@
|
|||
|
||||
#include <machine/_align.h>
|
||||
|
||||
/* Needed to display interrupts on OFW PCI */
|
||||
#define __PCI_REROUTE_INTERRUPT
|
||||
|
||||
#ifndef MACHINE
|
||||
#define MACHINE "powerpc"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@
|
|||
#define STACKALIGNBYTES (16 - 1)
|
||||
#define STACKALIGN(p) ((uint64_t)(p) & ~STACKALIGNBYTES)
|
||||
|
||||
#define __PCI_REROUTE_INTERRUPT
|
||||
|
||||
#ifndef MACHINE
|
||||
#define MACHINE "riscv"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue