diff options
Diffstat (limited to 'roms/skiboot/include/pci-quirk.h')
-rw-r--r-- | roms/skiboot/include/pci-quirk.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roms/skiboot/include/pci-quirk.h b/roms/skiboot/include/pci-quirk.h new file mode 100644 index 000000000..fe766db50 --- /dev/null +++ b/roms/skiboot/include/pci-quirk.h @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later +/* Copyright 2016-2017 IBM Corp. */ + +#ifndef __PCI_QUIRK_H +#define __PCI_QUIRK_H + +#include <pci.h> + +#define PCI_ANY_ID 0xFFFF + +struct pci_quirk { + uint16_t vendor_id; + uint16_t device_id; + void (*fixup)(struct phb *, struct pci_device *); +}; + +void pci_handle_quirk(struct phb *phb, struct pci_device *pd); + +#endif /* __PCI_QUIRK_H */ |