/* Called when pci_enable_device() is called. Returns true to
* allow assignment/enabling of the device. */ bool (*enable_device_hook)(struct pci_dev *pdev);
/* Some machines have a special region to forward the ISA * "memory" cycles such as VGA memory regions. Left to 0 * if unsupported
*/
resource_size_t isa_mem_phys;
resource_size_t isa_mem_size;
/* * Used for variants of PCI indirect handling and possible quirks: * SET_CFG_TYPE - used on 4xx or any PHB that does explicit type0/1 * EXT_REG - provides access to PCI-e extended registers * SURPRESS_PRIMARY_BUS - we suppress the setting of PCI_PRIMARY_BUS * on Freescale PCI-e controllers since they used the PCI_PRIMARY_BUS * to determine which bus number to match on when generating type0 * config cycles * NO_PCIE_LINK - the Freescale PCI-e controllers have issues with * hanging if we don't have link and try to do config cycles to * anything but the PHB. Only allow talking to the PHB if this is * set. * BIG_ENDIAN - cfg_addr is a big endian register * BROKEN_MRM - the 440EPx/GRx chips have an errata that causes hangs on * the PLB4. Effectively disable MRM commands by setting this. * FSL_CFG_REG_LINK - Freescale controller version in which the PCIe * link status is in a RC PCIe cfg register (vs being a SoC register)
*/ #define PPC_INDIRECT_TYPE_SET_CFG_TYPE 0x00000001 #define PPC_INDIRECT_TYPE_EXT_REG 0x00000002 #define PPC_INDIRECT_TYPE_SURPRESS_PRIMARY_BUS 0x00000004 #define PPC_INDIRECT_TYPE_NO_PCIE_LINK 0x00000008 #define PPC_INDIRECT_TYPE_BIG_ENDIAN 0x00000010 #define PPC_INDIRECT_TYPE_BROKEN_MRM 0x00000020 #define PPC_INDIRECT_TYPE_FSL_CFG_REG_LINK 0x00000040
u32 indirect_type; /* Currently, we limit ourselves to 1 IO range and 3 mem * ranges since the common pci_bus structure can't handle more
*/ struct resource io_resource; struct resource mem_resources[3];
resource_size_t mem_offset[3]; int global_number; /* PCI domain number */
/* iommu_ops support */ struct iommu_device iommu;
};
/* These are used for config access before all the PCI probing
has been done. */ externint early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn, int where, u8 *val); externint early_read_config_word(struct pci_controller *hose, int bus, int dev_fn, int where, u16 *val); externint early_read_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 *val); externint early_write_config_byte(struct pci_controller *hose, int bus, int dev_fn, int where, u8 val); externint early_write_config_word(struct pci_controller *hose, int bus, int dev_fn, int where, u16 val); externint early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 val);
externint early_find_capability(struct pci_controller *hose, int bus, int dev_fn, int cap);
/* * PCI stuff, for nodes representing PCI devices, pointed to * by device_node->data.
*/ struct iommu_table;
struct pci_dn { int flags; #define PCI_DN_FLAG_IOV_VF 0x01 #define PCI_DN_FLAG_DEAD 0x02 /* Device has been hot-removed */
int busno; /* pci bus number */ int devfn; /* pci device and function number */ int vendor_id; /* Vendor ID */ int device_id; /* Device ID */ int class_code; /* Device class code */
struct pci_dn *parent; struct pci_controller *phb; /* for pci devices */ struct iommu_table_group *table_group; /* for phb's or bridges */
int pci_ext_config_space; /* for pci devices */ #ifdef CONFIG_EEH struct eeh_dev *edev; /* eeh device */ #endif #define IODA_INVALID_PE 0xFFFFFFFF unsignedint pe_number; #ifdef CONFIG_PCI_IOV
u16 vfs_expanded; /* number of VFs IOV BAR expanded */
u16 num_vfs; /* number of VFs enabled*/ unsignedint *pe_num_map; /* PE# for the first VF PE or array */ bool m64_single_mode; /* Use M64 BAR in Single Mode */ #define IODA_INVALID_M64 (-1) int (*m64_map)[PCI_SRIOV_NUM_BARS]; /* Only used on powernv */ int last_allow_rc; /* Only used on pseries */ #endif/* CONFIG_PCI_IOV */ int mps; /* Maximum Payload Size */ struct list_head child_list; struct list_head list; struct resource holes[PCI_SRIOV_NUM_BARS];
};
/* Get the pointer to a device_node's pci_dn */ #define PCI_DN(dn) ((struct pci_dn *) (dn)->data)
/* Fill up host controller resources from the OF node */ externvoid pci_process_bridge_OF_ranges(struct pci_controller *hose, struct device_node *dev, int primary);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.