X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrv%2Fpci.c;h=8a86c35c06b4465cdcf067742fd5efbeda1284bd;hb=c2adb8d03edd3bcf25eb2fd9a90ed74200ca78fe;hp=0519a3e68f35fd0ac46d5fe9fed624b651a206ff;hpb=1b67d9b8cf2359a0f5f57d9e59fd080bad6bee41;p=tpg%2Facess2.git diff --git a/Kernel/drv/pci.c b/Kernel/drv/pci.c index 0519a3e6..8a86c35c 100644 --- a/Kernel/drv/pci.c +++ b/Kernel/drv/pci.c @@ -2,8 +2,8 @@ * AcessOS/AcessBasic v0.1 * PCI Bus Driver */ -#define DEBUG 1 -#include +#define DEBUG 0 +#include #include #include #include @@ -468,7 +468,7 @@ int PCI_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, t_pciDevice *info) info->Name[2] = '.'; info->Name[3] = '0' + slot/10; info->Name[4] = '0' + slot%10; - info->Name[5] = '.'; + info->Name[5] = ':'; info->Name[6] = '0' + fcn; info->Name[7] = '\0'; @@ -553,9 +553,10 @@ Uint8 PCI_CfgReadByte(Uint16 bus, Uint16 dev, Uint16 func, Uint16 offset) // === EXPORTS === -/* +//* EXPORT(PCI_CountDevices); EXPORT(PCI_GetDevice); +EXPORT(PCI_GetDeviceByClass); EXPORT(PCI_AssignPort); EXPORT(PCI_GetIRQ); -*/ +//*/