Kernel - Added 'Flags' param to VFS Read/Write/FindDir
[tpg/acess2.git] / KernelLand / Kernel / drv / pci.c
index 1df421e..dec81b8 100644 (file)
@@ -39,9 +39,9 @@ typedef struct sPCIDevice
  int   PCI_ScanBus(int ID, int bFill);\r
  \r
  int   PCI_int_ReadDirRoot(tVFS_Node *node, int pos, char Dest[FILENAME_MAX]);\r
-tVFS_Node      *PCI_int_FindDirRoot(tVFS_Node *node, const char *filename);\r
+tVFS_Node      *PCI_int_FindDirRoot(tVFS_Node *node, const char *filename, Uint Flags);\r
 Uint32 PCI_int_GetBusAddr(Uint16 Bus, Uint16 Slot, Uint16 Fcn, Uint8 Offset);\r
-size_t PCI_int_ReadDevice(tVFS_Node *node, off_t Offset, size_t Length, void *buffer);\r
+size_t PCI_int_ReadDevice(tVFS_Node *node, off_t Offset, size_t Length, void *buffer, Uint Flags);\r
  int   PCI_int_EnumDevice(Uint16 bus, Uint16 dev, Uint16 fcn, tPCIDevice *info);\r
 \r
 // === GLOBALS ===\r
@@ -261,12 +261,10 @@ int PCI_int_ReadDirRoot(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
 }\r
 /**\r
  */\r
-tVFS_Node *PCI_int_FindDirRoot(tVFS_Node *node, const char *filename)\r
+tVFS_Node *PCI_int_FindDirRoot(tVFS_Node *node, const char *filename, Uint Flags)\r
 {\r
-        int    i;\r
-       \r
        // Find Match\r
-       for(i=0;i<giPCI_DeviceCount;i++)\r
+       for( int i = 0; i < giPCI_DeviceCount; i ++ )\r
        {\r
                int cmp = strcmp(gPCI_Devices[i].Name, filename);\r
                if( cmp > 0 )   // Sorted list\r
@@ -282,7 +280,7 @@ tVFS_Node *PCI_int_FindDirRoot(tVFS_Node *node, const char *filename)
 /**\r
  * \brief Read the PCI configuration space of a device\r
  */\r
-size_t PCI_int_ReadDevice(tVFS_Node *node, off_t pos, size_t length, void *buffer)\r
+size_t PCI_int_ReadDevice(tVFS_Node *node, off_t pos, size_t length, void *buffer, Uint Flags)\r
 {      \r
        if( pos + length > 256 )        return 0;\r
        \r

UCC git Repository :: git.ucc.asn.au