linux/drivers/xen/xen-pciback/conf_space_header.c

// SPDX-License-Identifier: GPL-2.0
/*
 * PCI Backend - Handles the virtual fields in the configuration space headers.
 *
 * Author: Ryan Wilson <[email protected]>
 */

#define pr_fmt(fmt)
#define dev_fmt

#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"

struct pci_cmd_info {};

struct pci_bar_info {};

#define is_enable_cmd(value)
#define is_master_cmd(value)

/* Bits guests are allowed to control in permissive mode. */
#define PCI_COMMAND_GUEST

static void *command_init(struct pci_dev *dev, int offset)
{}

static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data)
{}

static int command_write(struct pci_dev *dev, int offset, u16 value, void *data)
{}

static int rom_write(struct pci_dev *dev, int offset, u32 value, void *data)
{}

/* For the BARs, only allow writes which write ~0 or
 * the correct resource information
 * (Needed for when the driver probes the resource usage)
 */
static int bar_write(struct pci_dev *dev, int offset, u32 value, void *data)
{}

static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data)
{}

static void *bar_init(struct pci_dev *dev, int offset)
{}

static void bar_reset(struct pci_dev *dev, int offset, void *data)
{}

static void bar_release(struct pci_dev *dev, int offset, void *data)
{}

static int xen_pcibk_read_vendor(struct pci_dev *dev, int offset,
			       u16 *value, void *data)
{}

static int xen_pcibk_read_device(struct pci_dev *dev, int offset,
			       u16 *value, void *data)
{}

static int interrupt_read(struct pci_dev *dev, int offset, u8 * value,
			  void *data)
{}

static int bist_write(struct pci_dev *dev, int offset, u8 value, void *data)
{}

static const struct config_field header_common[] =;

#define CFG_FIELD_BAR(reg_offset)

#define CFG_FIELD_ROM(reg_offset)

static const struct config_field header_0[] =;

static const struct config_field header_1[] =;

int xen_pcibk_config_header_add_fields(struct pci_dev *dev)
{}