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