swissChili | 0d24883 | 2021-04-08 18:16:02 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <kint.h> |
swissChili | ca26848 | 2021-05-28 18:31:46 -0700 | [diff] [blame] | 4 | #include <dri/pci/vendors.h> |
swissChili | 0d24883 | 2021-04-08 18:16:02 -0700 | [diff] [blame] | 5 | |
swissChili | 7a6f5eb | 2021-04-13 16:46:02 -0700 | [diff] [blame] | 6 | enum |
| 7 | { |
| 8 | PCI_CONFIG_ADDRESS = 0xCF8, |
| 9 | PCI_CONFIG_DATA = 0xCFC, |
| 10 | }; |
| 11 | |
swissChili | 9321498 | 2021-05-28 21:32:26 -0700 | [diff] [blame] | 12 | uint pci_config_readd(uchar bus, uchar slot, uchar func, uchar offset); |
| 13 | struct pci_vendor *pci_check_vendor(uchar bus, uchar slot, uchar func, uint *v); |