X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrv%2Fpci.c;h=8745080b0a3f1f2b808af629b7da6b8d8f1411cb;hb=61cfad415a64c52ca253460231046f47fcb7fb15;hp=72342964439125bf1a1f3a0f149b72ba009a6b1f;hpb=9e5fa402ca899be7d2b49980d6a45340c9bece55;p=tpg%2Facess2.git diff --git a/Kernel/drv/pci.c b/Kernel/drv/pci.c index 72342964..8745080b 100644 --- a/Kernel/drv/pci.c +++ b/Kernel/drv/pci.c @@ -44,6 +44,15 @@ MODULE_DEFINE(0, 0x0100, PCI, PCI_Install, NULL, NULL); int giPCI_InodeHandle = -1; int giPCI_DeviceCount = 0; tPCIDevice *gPCI_Devices = NULL; +tVFS_NodeType gPCI_RootNodeType = { + .TypeName = "PCI Root Node", + .ReadDir = PCI_int_ReadDirRoot, + .FindDir = PCI_int_FindDirRoot +}; +tVFS_NodeType gPCI_DevNodeType = { + .TypeName = "PCI Dev Node", + .Read = PCI_int_ReadDevice +}; tDevFS_Driver gPCI_DriverStruct = { NULL, "pci", { @@ -51,8 +60,7 @@ tDevFS_Driver gPCI_DriverStruct = { .Size = -1, .NumACLs = 1, .ACLs = &gVFS_ACL_EveryoneRX, - .ReadDir = PCI_int_ReadDirRoot, - .FindDir = PCI_int_FindDirRoot + .Type = &gPCI_RootNodeType } }; Uint32 *gaPCI_PortBitmap = NULL; @@ -473,7 +481,7 @@ int PCI_int_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, tPCIDevice *info) info->Node.NumACLs = 1; info->Node.ACLs = &gVFS_ACL_EveryoneRO; - info->Node.Read = PCI_int_ReadDevice; + info->Node.Type = &gPCI_RootNodeType; return 1; }