Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * PCI Backend - Data structures for special overlays for broken devices.
0004  *
0005  * Ryan Wilson <hap9@epoch.ncsc.mil>
0006  * Chris Bookholt <hap10@epoch.ncsc.mil>
0007  */
0008 
0009 #ifndef __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__
0010 #define __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__
0011 
0012 #include <linux/pci.h>
0013 #include <linux/list.h>
0014 
0015 struct xen_pcibk_config_quirk {
0016     struct list_head quirks_list;
0017     struct pci_device_id devid;
0018     struct pci_dev *pdev;
0019 };
0020 
0021 int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field
0022                     *field);
0023 
0024 int xen_pcibk_config_quirks_remove_field(struct pci_dev *dev, int reg);
0025 
0026 int xen_pcibk_config_quirks_init(struct pci_dev *dev);
0027 
0028 void xen_pcibk_config_field_free(struct config_field *field);
0029 
0030 int xen_pcibk_config_quirk_release(struct pci_dev *dev);
0031 
0032 int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg);
0033 
0034 #endif