Searched refs:cap_offset (Results 1 – 1 of 1) sorted by relevance
| /dev/bus/pci/bus_mgr/ |
| A D | device.cpp | 300 const uint16_t cap_offset = msi_cap_->config_offset; in allocate_msi() local 303 pci_read_config_half(loc(), cap_offset + 2, &control); in allocate_msi() 304 pci_write_config_half(loc(), cap_offset + 2, control & ~(0x1)); // disable MSI in allocate_msi() 305 pci_write_config_word(loc(), cap_offset + 4, msi_address & 0xffff'ffff); // lower 32bits in allocate_msi() 308 pci_write_config_word(loc(), cap_offset + 8, msi_address >> 32); // upper 32bits in allocate_msi() 309 pci_write_config_half(loc(), cap_offset + 0xc, msi_data); in allocate_msi() 311 pci_write_config_half(loc(), cap_offset + 8, msi_data); in allocate_msi() 316 pci_write_config_half(loc(), cap_offset + 2, control); in allocate_msi()
|
Completed in 5 milliseconds