Git - code.swisschili.sh
code.swisschili.sh
/
bluejay
/
ca107a092297fbb6a58d0eb7944f6bf8c75897c5
/
.
/
src
/
kernel
/
dri
/
pci
/
pci.c
blob: 87e5d2e9497f7f229fc768675097825601599bd9 [
file
] [
log
] [
blame
]
#include
<dri/pci/pci.h>
ushort pci_config_readw
(
uchar bus
,
uchar slot
,
uchar func
,
uchar offset
)
{
struct
pci_config_address address
=
{
.
enable
=
1
,
.
bus
=
bus
,
.
device
=
slot
,
.
function
=
func
,
.
offset
=
offset
^
0b11
,
};
}