]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/xen/xen-pciback/conf_space_quirks.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / drivers / xen / xen-pciback / conf_space_quirks.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
30edc14b
KRW
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
a92336a1 15struct xen_pcibk_config_quirk {
30edc14b
KRW
16 struct list_head quirks_list;
17 struct pci_device_id devid;
18 struct pci_dev *pdev;
19};
20
a92336a1 21int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field
30edc14b
KRW
22 *field);
23
a92336a1 24int xen_pcibk_config_quirks_remove_field(struct pci_dev *dev, int reg);
30edc14b 25
a92336a1 26int xen_pcibk_config_quirks_init(struct pci_dev *dev);
30edc14b 27
a92336a1 28void xen_pcibk_config_field_free(struct config_field *field);
30edc14b 29
a92336a1 30int xen_pcibk_config_quirk_release(struct pci_dev *dev);
30edc14b 31
a92336a1 32int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg);
30edc14b
KRW
33
34#endif