Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/driver/pci/
Dpci.c510 uint32_t cap_offset; in pci_enumerate_capability_list() local
515cap_offset = ((struct pci_device_structure_general_device_t *)pci_dev)->Capabilities_Pointer; in pci_enumerate_capability_list()
519cap_offset = ((struct pci_device_structure_pci_to_pci_bridge_t *)pci_dev)->Capability_Pointer; in pci_enumerate_capability_list()
528 tmp = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, cap_offset); in pci_enumerate_capability_list()
533 cap_offset = (tmp & 0xff00)>>8; in pci_enumerate_capability_list()
540 return cap_offset; in pci_enumerate_capability_list()