13 #define NUM_ROOT_PORTS 6
115 unsigned int new_devfn;
128 "ICH: PCIe map %02x.%1x -> %02x.%1x\n",
140 bool coalesce =
false;
144 coalesce =
config->pcie_port_coalesce;
155 if (pcie_dev ==
NULL) {
229 static const struct pci_driver i82801gx_pcie
__pci_driver = {
#define printk(level,...)
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
const char * dev_path(const struct device *dev)
void i82801gx_enable(struct device *dev)
#define ICH_PCIE_DEV_SLOT
static __always_inline void pci_or_config32(const struct device *dev, u16 reg, u32 ormask)
static __always_inline void pci_and_config16(const struct device *dev, u16 reg, u16 andmask)
static __always_inline void pci_update_config32(const struct device *dev, u16 reg, u32 mask, u32 or)
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u32 pci_read_config32(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_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_SPEW
BIOS_SPEW - Excessively verbose output.
#define PCI_BRIDGE_CTL_PARITY
#define PCI_DEVFN(slot, func)
#define PCI_BRIDGE_CONTROL
#define PCI_COMMAND_MASTER
#define PCI_CACHE_LINE_SIZE
void pci_bus_enable_resources(struct device *dev)
void pci_bus_read_resources(struct device *dev)
void pci_scan_bridge(struct device *dev)
Scan a PCI bridge and the buses behind the bridge.
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
#define RPFN_FNSET(port, func)
#define RPFN_FNMASK(port)
static struct device_operations device_ops
static struct root_port_config rpc
static void root_port_init_config(struct device *dev)
static void pci_init(struct device *dev)
static void ich_pcie_enable(struct device *dev)
static int root_port_is_first(struct device *dev)
static void root_port_commit_config(struct device *dev)
static int get_num_ports(void)
static void ich_pcie_device_set_func(int index, int pci_func)
static const unsigned short i82801gx_pcie_ids[]
static int root_port_number(struct device *dev)
static const struct pci_driver i82801gx_pcie __pci_driver
static int root_port_is_last(struct device *dev)
void(* read_resources)(struct device *dev)
DEVTREE_CONST void * chip_info
struct device * ports[MAX_NUM_ROOT_PORTS]