aboutsummaryrefslogtreecommitdiff
path: root/include/pci-quirk.h
blob: fe766db504e37e20ade27c7744e4a3b932110742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 */