mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:20:53 +07:00
a92336a117
- Remove the slot and controller controller backend as they are not used. - Document the find pciback_[read|write]_config_[byte|word|dword] to make it easier to find. - Collapse the code from conf_space_capability_msi into pciback_ops.c - Collapse conf_space_capability_[pm|vpd].c in conf_space_capability.c [and remove the conf_space_capability.h file] - Rename all visible functions from pciback to xen_pcibk. - Rename all the printk/pr_info, etc that use the "pciback" to say "xen-pciback". - Convert functions that are not referenced outside the code to be static to save on name space. - Do the same thing for structures that are internal to the driver. - Run checkpatch.pl after the renames and fixup its warnings and fix any compile errors caused by the variable rename - Cleanup any structs that checkpath.pl commented about or just look odd. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
34 lines
841 B
C
34 lines
841 B
C
/*
|
|
* PCI Backend - Data structures for special overlays for broken devices.
|
|
*
|
|
* Ryan Wilson <hap9@epoch.ncsc.mil>
|
|
* Chris Bookholt <hap10@epoch.ncsc.mil>
|
|
*/
|
|
|
|
#ifndef __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__
|
|
#define __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__
|
|
|
|
#include <linux/pci.h>
|
|
#include <linux/list.h>
|
|
|
|
struct xen_pcibk_config_quirk {
|
|
struct list_head quirks_list;
|
|
struct pci_device_id devid;
|
|
struct pci_dev *pdev;
|
|
};
|
|
|
|
int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field
|
|
*field);
|
|
|
|
int xen_pcibk_config_quirks_remove_field(struct pci_dev *dev, int reg);
|
|
|
|
int xen_pcibk_config_quirks_init(struct pci_dev *dev);
|
|
|
|
void xen_pcibk_config_field_free(struct config_field *field);
|
|
|
|
int xen_pcibk_config_quirk_release(struct pci_dev *dev);
|
|
|
|
int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg);
|
|
|
|
#endif
|