Home
last modified time | relevance | path

Searched refs:hdr_type (Results 1 – 4 of 4) sorted by relevance

/components/drivers/pci/
A Dpci.c92 rt_uint32_t devfn, rt_uint8_t hdr_type) in pci_bus_find_cap_start() argument
101 switch (hdr_type) in pci_bus_find_cap_start()
119 rt_uint8_t hdr_type, ret = RT_UINT8_MAX; in rt_pci_bus_find_capability() local
123 rt_pci_bus_read_config_u8(bus, devfn, PCIR_HDRTYPE, &hdr_type); in rt_pci_bus_find_capability()
125 ret = pci_bus_find_cap_start(bus, devfn, hdr_type & PCIM_HDRTYPE); in rt_pci_bus_find_capability()
142 res = pci_bus_find_cap_start(pdev->bus, pdev->devfn, pdev->hdr_type); in rt_pci_find_capability()
536 rt_uint8_t hdr_type; in rt_pci_device_alloc_resource() local
551 rt_pci_read_config_u8(pdev, PCIR_HDRTYPE, &hdr_type); in rt_pci_device_alloc_resource()
553 if (pdev->hdr_type != hdr_type) in rt_pci_device_alloc_resource()
558 switch (hdr_type) in rt_pci_device_alloc_resource()
[all …]
A Dprobe.c326 rt_pci_read_config_u8(pdev, PCIR_HDRTYPE, &pdev->hdr_type); in rt_pci_setup_device()
331 if (pdev->hdr_type & 0x80) in rt_pci_setup_device()
335 pdev->hdr_type &= PCIM_HDRTYPE; in rt_pci_setup_device()
345 switch (pdev->hdr_type) in rt_pci_setup_device()
381 LOG_E("Ignoring device unknown header type %02x", pdev->hdr_type); in rt_pci_setup_device()
385 LOG_E("Ignoring class %08x (doesn't match header type %02x)", pdev->class, pdev->hdr_type); in rt_pci_setup_device()
519 if (pdev->hdr_type == PCIM_HDRTYPE_CARDBUS) in pci_scan_bridge_extend()
/components/drivers/pci/host/dw/
A Dpcie-dw_ep.c695 rt_uint8_t hdr_type; in dw_pcie_ep_init_complete() local
698 hdr_type = dw_pcie_readb_dbi(pci, PCIR_HDRTYPE) & PCIM_HDRTYPE; in dw_pcie_ep_init_complete()
699 if (hdr_type != PCIM_HDRTYPE_NORMAL) in dw_pcie_ep_init_complete()
701 LOG_E("PCIe controller is not set to EP mode hdr_type = %x", hdr_type); in dw_pcie_ep_init_complete()
/components/drivers/include/drivers/
A Dpci.h146 rt_uint8_t hdr_type; member
342 return pdev->hdr_type == PCIM_HDRTYPE_BRIDGE || in rt_pci_is_bridge()
343 pdev->hdr_type == PCIM_HDRTYPE_CARDBUS; in rt_pci_is_bridge()

Completed in 10 milliseconds