Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
35 lines
880 B
C
35 lines
880 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* 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
|