Kernel - Misc cleanup in PCI
authorJohn Hodge <[email protected]>
Thu, 28 Jul 2011 13:12:21 +0000 (21:12 +0800)
committerJohn Hodge <[email protected]>
Thu, 28 Jul 2011 13:12:21 +0000 (21:12 +0800)
- Oops, forgot the modules header

Kernel/drv/pci.c
Kernel/include/modules.h

index 1a555d7..2e107a7 100644 (file)
@@ -150,8 +150,9 @@ int PCI_ScanBus(int BusID, int bFill)
                        if(devInfo.oc == PCI_OC_PCIBRIDGE)\r
                        {\r
                                #if LIST_DEVICES\r
-                               Log_Log("PCI", "Bridge @ %i,%i:%i (0x%x:0x%x)",\r
-                                       BusID, dev, fcn, devInfo.vendor, devInfo.device);\r
+                               if( !bFill )\r
+                                       Log_Log("PCI", "Bridge @ %i,%i:%i (0x%x:0x%x)",\r
+                                               BusID, dev, fcn, devInfo.vendor, devInfo.device);\r
                                #endif\r
                                //TODO: Handle PCI-PCI Bridges\r
                                //PCI_ScanBus(devInfo.???, bFill);\r
@@ -160,8 +161,9 @@ int PCI_ScanBus(int BusID, int bFill)
                        else\r
                        {\r
                                #if LIST_DEVICES\r
-                               Log_Log("PCI", "Device %i,%i:%i %04x => 0x%04x:0x%04x",\r
-                                       BusID, dev, fcn, devInfo.oc, devInfo.vendor, devInfo.device);\r
+                               if( !bFill )\r
+                                       Log_Log("PCI", "Device %i,%i:%i %04x => 0x%04x:0x%04x",\r
+                                               BusID, dev, fcn, devInfo.oc, devInfo.vendor, devInfo.device);\r
                                #endif\r
                        }\r
                        \r
index 0c57675..d728133 100644 (file)
@@ -114,10 +114,10 @@ typedef struct sModuleLoader
 extern int     Module_RegisterLoader(tModuleLoader *Loader);
 
 /**
- * \brief Initialise a named builtin module
+ * \brief Initialises (if needed) a named module
  * \param Name Module name to initialise
  * \return -1 on not existing, 0 if the module initialised (or if it was already initialised)
  */
-extern int     Modules_InitialiseBuiltin(const char *Name);
+extern int     Module_EnsureLoaded(const char *Name);
 
 #endif

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