-BUILD_NUM = 1128
+BUILD_NUM = 1131
if(giDebug_KTerm != -1)
VFS_Close(giDebug_KTerm);
giDebug_KTerm = VFS_Open(File, VFS_OPENFLAG_WRITE);
- Log("Opened '%s' as %i\n", File, giDebug_KTerm);
+ Log("Opened '%s' as 0x%x", File, giDebug_KTerm);
}
void Debug_Enter(char *FuncName, char *ArgTypes, ...)
* Acess2 IDE Harddisk Driver
* drv/ide.c
*/
-#define DEBUG 1
+#define DEBUG 0
#include <common.h>
#include <modules.h>
#include <vfs.h>
ATA_SetupVFS();
if( DevFS_AddDevice( &gATA_DriverInfo ) == 0 )
- return 0;
+ return MODULE_INIT_FAILURE;
- return 1;
+ return MODULE_INIT_SUCCESS;
}
/**
LOG("ent = %i", ent);
gATA_BusMasterBase = PCI_GetBAR4( ent );
if( gATA_BusMasterBase == 0 ) {
- Warning("It seems that there is no Bus Master Controller on this machine, get one");
- LEAVE('i', 0);
- return 0;
+ Warning("It seems that there is no Bus Master Controller on this machine. Get one");
+ LEAVE('i', MODULE_INIT_FAILURE);
+ return MODULE_INIT_FAILURE;
}
if( !(gATA_BusMasterBase & 1) )
{
outb(IDE_PRI_BASE+1, 1);
outb(IDE_SEC_BASE+1, 1);
- LEAVE('i', 1);
- return 1;
+ LEAVE('i', MODULE_INIT_SUCCESS);
+ return MODULE_INIT_SUCCESS;
}
/**
int FIFO_Install(char **Options)
{
DevFS_AddDevice( &gFIFO_DriverInfo );
- return 0;
+ return MODULE_INIT_SUCCESS;
}
/**
int SysFS_Install(char **Options)
{
DevFS_AddDevice( &gSysFS_DriverInfo );
- return 0;
+ return MODULE_INIT_SUCCESS;
}
/**
ent->Node.Size ++;
else
gSysFS_DriverInfo.RootNode.Size ++;
- LOG("Added directory '%s'\n", child->Name);
+ LOG("Added directory '%s'", child->Name);
}
ent = child;
// Set kernel output to VT0
Debug_SetKTerminal("/Devices/VTerm/0");
- return 0;
+ return MODULE_INIT_SUCCESS;
}
/**
{
int i;
//ENTER("pTerm xCh", Term, Ch);
- //LOG("Term = {WritePos:%i, ViewPos:%i}\n", Term->WritePos, Term->ViewPos);
+ //LOG("Term = {WritePos:%i, ViewPos:%i}", Term->WritePos, Term->ViewPos);
switch(Ch)
{
char **Dependencies; // NULL Terminated List
} __attribute__((packed)) tModule;
+#define MODULE_INIT_SUCCESS 1
+#define MODULE_INIT_FAILURE 0
+
#endif
void FAT_CloseFile(tVFS_Node *node);\r
\r
// === SEMI-GLOBALS ===\r
-MODULE_DEFINE(0, 0x51 /*v0.80*/, FAT32, FAT_Install, NULL, NULL);\r
+MODULE_DEFINE(0, 0x51 /*v0.80*/, VFAT, FAT_Install, NULL, NULL);\r
tFAT_VolInfo gFAT_Disks[8];\r
int giFAT_PartCount = 0;\r
#if USE_LFN\r
int FAT_Install(char **Arguments)\r
{\r
VFS_AddDriver( &gFAT_FSInfo );\r
- return 0;\r
+ return MODULE_INIT_SUCCESS;\r
}\r
\r
/**\r
gFDD_Devices[0].track[0] = -1;\r
gFDD_Devices[1].track[1] = -1;\r
\r
- Log("[FDD ] Detected Disk 0: %s and Disk 1: %s\n", cFDD_TYPES[data>>4], cFDD_TYPES[data&0xF]);\r
+ Log("[FDD ] Detected Disk 0: %s and Disk 1: %s", cFDD_TYPES[data>>4], cFDD_TYPES[data&0xF]);\r
\r
// Clear FDD IRQ Flag\r
FDD_SensInt(0x3F0, NULL, NULL);\r