git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - (experimental) Allowing THREAD_EVENT_TIMER to wake a semaphore
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
drv
/
pci.c
diff --git
a/KernelLand/Kernel/drv/pci.c
b/KernelLand/Kernel/drv/pci.c
index
2e1ce15
..
1df421e
100644
(file)
--- a/
KernelLand/Kernel/drv/pci.c
+++ b/
KernelLand/Kernel/drv/pci.c
@@
-150,9
+150,15
@@
int PCI_Install(char **Arguments)
devinfo->revision = gaVPCI_Devices[i].Class & 0xFF;
\r
devinfo->class = gaVPCI_Devices[i].Class >> 8;
\r
snprintf(devinfo->Name, sizeof(devinfo->Name), "%02x.%02x:%x", 0xFF, i, 0);
\r
devinfo->revision = gaVPCI_Devices[i].Class & 0xFF;
\r
devinfo->class = gaVPCI_Devices[i].Class >> 8;
\r
snprintf(devinfo->Name, sizeof(devinfo->Name), "%02x.%02x:%x", 0xFF, i, 0);
\r
+
\r
+ #if LIST_DEVICES
\r
+ Log_Log("PCI", "Device %i,%i:%i %06x => 0x%04x:0x%04x Rev %i",
\r
+ 0xFF, i, 0, devinfo->class,
\r
+ devinfo->vendor, devinfo->device, devinfo->revision);
\r
+ #endif
\r
\r
for(int j = 0; j < 256/4; j ++ )
\r
\r
for(int j = 0; j < 256/4; j ++ )
\r
- devinfo->ConfigCache[
i
] = VPCI_Read(&gaVPCI_Devices[i], j*4, 4);
\r
+ devinfo->ConfigCache[
j
] = VPCI_Read(&gaVPCI_Devices[i], j*4, 4);
\r
\r
memset(&devinfo->Node, 0, sizeof(devinfo->Node));
\r
devinfo->Node.Inode = giPCI_DeviceCount;
\r
\r
memset(&devinfo->Node, 0, sizeof(devinfo->Node));
\r
devinfo->Node.Inode = giPCI_DeviceCount;
\r
UCC
git Repository :: git.ucc.asn.au