brintos

brintos / linux-shallow public Read only

0
0
Text · 807 B · fc1557d Raw
33 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * PCI Backend - Data structures for special overlays for broken devices.4 *5 * Ryan Wilson <hap9@epoch.ncsc.mil>6 * Chris Bookholt <hap10@epoch.ncsc.mil>7 */8 9#ifndef __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__10#define __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__11 12#include <linux/pci.h>13#include <linux/list.h>14 15struct xen_pcibk_config_quirk {16	struct list_head quirks_list;17	struct pci_device_id devid;18	struct pci_dev *pdev;19};20 21int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field22				    *field);23 24int xen_pcibk_config_quirks_init(struct pci_dev *dev);25 26void xen_pcibk_config_field_free(struct config_field *field);27 28int xen_pcibk_config_quirk_release(struct pci_dev *dev);29 30int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg);31 32#endif33