Git - code.swisschili.sh
code.swisschili.sh
/
bluejay
/
3ec55cf1f48190cfe8287c6437191c0b84a7f3cf
/
.
/
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
,
};
}