|
void | rt_pci_pme_init (struct rt_pci_device *pdev) |
|
void | rt_pci_pme_active (struct rt_pci_device *pdev, rt_bool_t enable) |
|
rt_err_t | rt_pci_enable_wake (struct rt_pci_device *pci_dev, enum rt_pci_power state, rt_bool_t enable) |
|
rt_inline rt_bool_t | rt_pci_pme_capable (struct rt_pci_device *pdev, enum rt_pci_power state) |
|
void | rt_pci_msi_init (struct rt_pci_device *pdev) |
|
void | rt_pci_msix_init (struct rt_pci_device *pdev) |
|
void | rt_pci_set_master (struct rt_pci_device *pdev) |
|
void | rt_pci_clear_master (struct rt_pci_device *pdev) |
|
struct rt_pci_host_bridge * | rt_pci_host_bridge_alloc (rt_size_t priv_size) |
|
rt_err_t | rt_pci_host_bridge_free (struct rt_pci_host_bridge *) |
|
rt_err_t | rt_pci_host_bridge_init (struct rt_pci_host_bridge *host_bridge) |
|
rt_err_t | rt_pci_host_bridge_probe (struct rt_pci_host_bridge *host_bridge) |
|
struct rt_pci_device * | rt_pci_alloc_device (struct rt_pci_bus *bus) |
|
struct rt_pci_device * | rt_pci_scan_single_device (struct rt_pci_bus *bus, rt_uint32_t devfn) |
|
rt_err_t | rt_pci_setup_device (struct rt_pci_device *pdev) |
|
rt_size_t | rt_pci_scan_slot (struct rt_pci_bus *bus, rt_uint32_t devfn) |
|
rt_uint32_t | rt_pci_scan_child_buses (struct rt_pci_bus *bus, rt_size_t buses) |
|
rt_uint32_t | rt_pci_scan_child_bus (struct rt_pci_bus *bus) |
|
rt_err_t | rt_pci_host_bridge_register (struct rt_pci_host_bridge *host_bridge) |
|
rt_err_t | rt_pci_scan_root_bus_bridge (struct rt_pci_host_bridge *host_bridge) |
|
rt_err_t | rt_pci_host_bridge_remove (struct rt_pci_host_bridge *host_bridge) |
|
rt_err_t | rt_pci_bus_remove (struct rt_pci_bus *bus) |
|
rt_err_t | rt_pci_device_remove (struct rt_pci_device *pdev) |
|
rt_uint32_t | rt_pci_domain (struct rt_pci_device *pdev) |
|
rt_uint8_t | rt_pci_bus_find_capability (struct rt_pci_bus *bus, rt_uint32_t devfn, int cap) |
|
rt_uint8_t | rt_pci_find_capability (struct rt_pci_device *pdev, int cap) |
|
rt_uint8_t | rt_pci_find_next_capability (struct rt_pci_device *pdev, rt_uint8_t pos, int cap) |
|
rt_uint16_t | rt_pci_find_ext_capability (struct rt_pci_device *pdev, int cap) |
|
rt_uint16_t | rt_pci_find_ext_next_capability (struct rt_pci_device *pdev, rt_uint16_t pos, int cap) |
|
struct rt_pci_bus * | rt_pci_find_root_bus (struct rt_pci_bus *bus) |
|
struct rt_pci_host_bridge * | rt_pci_find_host_bridge (struct rt_pci_bus *bus) |
|
rt_inline rt_uint16_t | rt_pci_dev_id (struct rt_pci_device *pdev) |
|
rt_inline rt_bool_t | rt_pci_is_root_bus (struct rt_pci_bus *bus) |
|
rt_inline rt_bool_t | rt_pci_is_bridge (struct rt_pci_device *pdev) |
|
rt_inline rt_bool_t | rt_pci_is_pcie (struct rt_pci_device *pdev) |
|
rt_err_t | rt_pci_bus_read_config_u8 (struct rt_pci_bus *bus, rt_uint32_t devfn, int pos, rt_uint8_t *value) |
|
rt_err_t | rt_pci_bus_read_config_u16 (struct rt_pci_bus *bus, rt_uint32_t devfn, int pos, rt_uint16_t *value) |
|
rt_err_t | rt_pci_bus_read_config_u32 (struct rt_pci_bus *bus, rt_uint32_t devfn, int pos, rt_uint32_t *value) |
|
rt_err_t | rt_pci_bus_write_config_u8 (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, rt_uint8_t value) |
|
rt_err_t | rt_pci_bus_write_config_u16 (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, rt_uint16_t value) |
|
rt_err_t | rt_pci_bus_write_config_u32 (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, rt_uint32_t value) |
|
rt_err_t | rt_pci_bus_read_config_uxx (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, int width, rt_uint32_t *value) |
|
rt_err_t | rt_pci_bus_write_config_uxx (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, int width, rt_uint32_t value) |
|
rt_err_t | rt_pci_bus_read_config_generic_u32 (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, int width, rt_uint32_t *value) |
|
rt_err_t | rt_pci_bus_write_config_generic_u32 (struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, int width, rt_uint32_t value) |
|
rt_inline rt_err_t | rt_pci_read_config_u8 (const struct rt_pci_device *pdev, int reg, rt_uint8_t *value) |
|
rt_inline rt_err_t | rt_pci_read_config_u16 (const struct rt_pci_device *pdev, int reg, rt_uint16_t *value) |
|
rt_inline rt_err_t | rt_pci_read_config_u32 (const struct rt_pci_device *pdev, int reg, rt_uint32_t *value) |
|
rt_inline rt_err_t | rt_pci_write_config_u8 (const struct rt_pci_device *pdev, int reg, rt_uint8_t value) |
|
rt_inline rt_err_t | rt_pci_write_config_u16 (const struct rt_pci_device *pdev, int reg, rt_uint16_t value) |
|
rt_inline rt_err_t | rt_pci_write_config_u32 (const struct rt_pci_device *pdev, int reg, rt_uint32_t value) |
|
rt_inline rt_err_t | rt_pci_ofw_host_bridge_init (struct rt_ofw_node *dev_np, struct rt_pci_host_bridge *host_bridge) |
|
rt_inline rt_err_t | rt_pci_ofw_bus_init (struct rt_pci_bus *bus) |
|
rt_inline rt_err_t | rt_pci_ofw_bus_free (struct rt_pci_bus *bus) |
|
rt_inline rt_err_t | rt_pci_ofw_device_init (struct rt_pci_device *pdev) |
|
rt_inline rt_err_t | rt_pci_ofw_device_free (struct rt_pci_device *pdev) |
|
rt_inline int | rt_pci_ofw_irq_parse_and_map (struct rt_pci_device *pdev, rt_uint8_t slot, rt_uint8_t pin) |
|
rt_inline rt_err_t | rt_pci_ofw_parse_ranges (struct rt_ofw_node *dev_np, struct rt_pci_host_bridge *host_bridge) |
|
rt_inline void * | rt_pci_iomap (struct rt_pci_device *pdev, int bar_idx) |
|
rt_uint8_t | rt_pci_irq_intx (struct rt_pci_device *pdev, rt_uint8_t pin) |
|
rt_uint8_t | rt_pci_irq_slot (struct rt_pci_device *pdev, rt_uint8_t *pinp) |
|
void | rt_pci_assign_irq (struct rt_pci_device *pdev) |
|
void | rt_pci_intx (struct rt_pci_device *pdev, rt_bool_t enable) |
|
rt_bool_t | rt_pci_check_and_mask_intx (struct rt_pci_device *pdev) |
|
rt_bool_t | rt_pci_check_and_unmask_intx (struct rt_pci_device *pdev) |
|
void | rt_pci_irq_mask (struct rt_pci_device *pdev) |
|
void | rt_pci_irq_unmask (struct rt_pci_device *pdev) |
|
rt_inline rt_ssize_t | rt_pci_alloc_vector (struct rt_pci_device *pdev, int min, int max, rt_uint32_t flags, RT_IRQ_AFFINITY_DECLARE((*affinities))) |
|
rt_inline void | rt_pci_free_vector (struct rt_pci_device *pdev) |
|
rt_inline rt_ssize_t | rt_pci_msi_vector_count (struct rt_pci_device *pdev) |
|
rt_inline rt_err_t | rt_pci_msi_disable (struct rt_pci_device *pdev) |
|
rt_inline rt_ssize_t | rt_pci_msi_enable_range_affinity (struct rt_pci_device *pdev, int min, int max, RT_IRQ_AFFINITY_DECLARE((*affinities))) |
|
rt_inline rt_ssize_t | rt_pci_msix_vector_count (struct rt_pci_device *pdev) |
|
rt_inline rt_err_t | rt_pci_msix_disable (struct rt_pci_device *pdev) |
|
rt_inline rt_ssize_t | rt_pci_msix_enable_range_affinity (struct rt_pci_device *pdev, struct rt_pci_msix_entry *entries, int min, int max, RT_IRQ_AFFINITY_DECLARE((*affinities))) |
|
rt_inline void | rt_pci_msix_entry_index_linear (struct rt_pci_msix_entry *entries, rt_size_t nvectors) |
|
rt_inline rt_ssize_t | rt_pci_msi_enable_range (struct rt_pci_device *pdev, int min, int max) |
|
rt_inline rt_err_t | rt_pci_msi_enable (struct rt_pci_device *pdev) |
|
rt_inline rt_ssize_t | rt_pci_msix_enable_range (struct rt_pci_device *pdev, struct rt_pci_msix_entry *entries, int min, int max) |
|
rt_inline rt_ssize_t | rt_pci_msix_enable (struct rt_pci_device *pdev, struct rt_pci_msix_entry *entries, int count) |
|
rt_err_t | rt_pci_region_setup (struct rt_pci_host_bridge *host_bridge) |
|
struct rt_pci_bus_region * | rt_pci_region_alloc (struct rt_pci_host_bridge *host_bridge, void **out_addr, rt_size_t size, rt_ubase_t flags, rt_bool_t mem64) |
|
rt_err_t | rt_pci_device_alloc_resource (struct rt_pci_host_bridge *host_bridge, struct rt_pci_device *pdev) |
|
void | rt_pci_enum_device (struct rt_pci_bus *bus, rt_bool_t(callback(struct rt_pci_device *, void *)), void *data) |
|
const struct rt_pci_device_id * | rt_pci_match_id (struct rt_pci_device *pdev, const struct rt_pci_device_id *id) |
|
const struct rt_pci_device_id * | rt_pci_match_ids (struct rt_pci_device *pdev, const struct rt_pci_device_id *ids) |
|
rt_err_t | rt_pci_driver_register (struct rt_pci_driver *pdrv) |
|
rt_err_t | rt_pci_device_register (struct rt_pci_device *pdev) |
|
struct rt_pci_bus_resource * | rt_pci_find_bar (struct rt_pci_device *pdev, rt_ubase_t flags, int index) |
|