47 ~((1 << 8) | (1 << 10) | (1 << 12) | (1 << 14)), 0);
76 if (!
CONFIG(USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM))
114 static const struct pci_driver pch_smbus
__pci_driver = {
enum fch_io_device device
struct bus * get_pbus_smbus(struct device *dev)
struct resource * new_resource(struct device *dev, unsigned int index)
See if a resource structure already exists for a given index and if not allocate one.
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
struct resource * find_resource(const struct device *dev, unsigned int index)
Return an existing resource structure for a given index.
static __always_inline void pci_update_config32(const struct device *dev, u16 reg, u32 mask, u32 or)
#define PCI_BASE_ADDRESS_4
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
#define PCI_DID_INTEL_CMP_SMBUS
#define PCI_DID_INTEL_APL_SMBUS
#define PCI_DID_INTEL_CNP_H_SMBUS
#define PCI_DID_INTEL_DNV_SMBUS_LEGACY
#define PCI_DID_INTEL_MCC_SMBUS
#define PCI_DID_INTEL_MTL_SMBUS
#define PCI_DID_INTEL_ADP_M_N_SMBUS
#define PCI_DID_INTEL_LWB_SMBUS_SUPER
#define PCI_DID_INTEL_CNL_SMBUS
#define PCI_DID_INTEL_SPT_LP_SMBUS
#define PCI_DID_INTEL_TGP_H_SMBUS
#define PCI_DID_INTEL_ICP_LP_SMBUS
#define PCI_DID_INTEL_LWB_SMBUS
#define PCI_DID_INTEL_SPT_H_SMBUS
#define PCI_DID_INTEL_TGP_LP_SMBUS
#define PCI_DID_INTEL_JSP_SMBUS
#define PCI_DID_INTEL_ADP_S_SMBUS
#define PCI_DID_INTEL_CMP_H_SMBUS
#define PCI_DID_INTEL_ADP_P_SMBUS
#define IORESOURCE_RESERVE
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
void scan_smbus(struct device *bus)
int do_smbus_read_byte(uintptr_t mmio, u8 device, u8 address)
int do_smbus_write_byte(uintptr_t mmio, u8 device, u8 address, u8 val)
static int lsmbus_write_byte(struct device *dev, u8 address, u8 data)
static const struct pci_driver pch_smbus __pci_driver
static struct smbus_bus_operations lops_smbus_bus
static const unsigned short pci_device_ids[]
static void pch_smbus_init(struct device *dev)
static struct device_operations smbus_ops
static void smbus_read_resources(struct device *dev)
static void finalize_smbus(struct device *dev)
static int lsmbus_read_byte(struct device *dev, u8 address)
void smbus_set_slave_addr(uintptr_t base, u8 slave_address)
DEVTREE_CONST struct device * dev
void(* read_resources)(struct device *dev)
int(* read_byte)(struct device *dev, u8 addr)