blob: 75262d3ec25d4d5a32767a4c04bfd541965d5ac9 [file] [log] [blame]
swissChili0d248832021-04-08 18:16:02 -07001#pragma once
2
3#include <kint.h>
swissChilica268482021-05-28 18:31:46 -07004#include <dri/pci/vendors.h>
swissChili0d248832021-04-08 18:16:02 -07005
swissChili7a6f5eb2021-04-13 16:46:02 -07006enum
7{
8 PCI_CONFIG_ADDRESS = 0xCF8,
9 PCI_CONFIG_DATA = 0xCFC,
10};
11
swissChili93214982021-05-28 21:32:26 -070012uint pci_config_readd(uchar bus, uchar slot, uchar func, uchar offset);
13struct pci_vendor *pci_check_vendor(uchar bus, uchar slot, uchar func, uint *v);