3 #define __SIMPLE_DEVICE__
11 #include <soc/pci_devs.h>
27 if (pci_vid == 0xffff)
31 printk(
BIOS_ERR,
"P2SB PCI_VENDOR_ID is invalid, unknown if hidden\n");
54 "Unable to unhide the P2SB device!\n");
63 "Unable to hide the P2SB device!\n");
74 .fast_byte_enable = 0xF,
85 if (status || response)
int pcr_execute_sideband_msg(pci_devfn_t dev, struct pcr_sbi_msg *msg, uint32_t *data, uint8_t *response)
#define printk(level,...)
#define die_with_post_code(value, fmt,...)
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
bool p2sb_dev_is_hidden(pci_devfn_t dev)
uint32_t p2sb_dev_sbi_read(pci_devfn_t dev, uint8_t pid, uint16_t reg)
void p2sb_dev_unhide(pci_devfn_t dev)
void p2sb_dev_enable_bar(pci_devfn_t dev, uint64_t bar)
static void p2sb_execute_sideband_access(pci_devfn_t dev, uint8_t cmd, uint8_t pid, uint16_t reg, uint32_t *data)
static void p2sb_dev_set_hide_bit(pci_devfn_t dev, int hide)
void p2sb_dev_sbi_write(pci_devfn_t dev, uint8_t pid, uint16_t reg, uint32_t val)
void p2sb_dev_hide(pci_devfn_t dev)
#define PCI_COMMAND_MASTER
#define PCI_COMMAND_MEMORY
#define PCI_BASE_ADDRESS_0
#define PCI_BASE_ADDRESS_1
#define POST_HW_INIT_FAILURE
Hardware initialization failure.
unsigned long long uint64_t