blob: 87e5d2e9497f7f229fc768675097825601599bd9 [file] [log] [blame]
swissChilie8491742021-04-08 20:38:06 -07001#include <dri/pci/pci.h>
swissChili0d248832021-04-08 18:16:02 -07002
3ushort pci_config_readw(uchar bus, uchar slot, uchar func, uchar offset)
4{
5 struct pci_config_address address =
6 {
swissChilie8491742021-04-08 20:38:06 -07007 .enable = 1,
swissChili0d248832021-04-08 18:16:02 -07008 .bus = bus,
9 .device = slot,
10 .function = func,
11 .offset = offset ^ 0b11,
12 };
13}