📄 usrconfig.c
字号:
rt11FsInit (NUM_RT11FS_FILES); /* init rt11Fs filesystem */
#endif /* INCLUDE_RT11FS */
#ifdef INCLUDE_RAMDRV
ramDrv (); /* initialize ram disk driver */
#endif /* INCLUDE_RAMDRV */
/* initialize USB components */
#ifdef INCLUDE_USB_INIT
usbInit (); /* USB Host Stack Initialization */
#endif
#ifdef INCLUDE_UHCI_INIT
usrUsbHcdUhciAttach (); /* UHCI Initialization */
#endif
#ifdef INCLUDE_OHCI_INIT
usrUsbHcdOhciAttach (); /* OHCI Initialization */
#endif
#ifdef INCLUDE_USB_MOUSE_INIT
usrUsbMseInit (); /* Mouse Driver Initialization */
#endif
#ifdef INCLUDE_USB_KEYBOARD_INIT
usrUsbKbdInit (); /* Keyboard Driver Initialization */
#endif
#ifdef INCLUDE_USB_PRINTER_INIT
usrUsbPrnInit (); /* Printer Driver Initialization */
#endif
#ifdef INCLUDE_USB_SPEAKER_INIT
usrUsbSpkrInit (); /* Speaker Driver Initialization */
#endif
#ifdef INCDLUE_USB_AUDIO_DEMO
usrUsbAudioDemo (); /* USB Audio Demo */
#endif
#ifdef INCLUDE_USB_MS_BULKONLY_INIT
usrUsbBulkDevInit(); /* Bulk Driver Initialization */
#endif
#ifdef INCLUDE_USB_MS_CBI_INIT
usrUsbCbiUfiDevInit (); /* CBI Driver Initialization */
#endif
#ifdef INCLUDE_USB_PEGASUS_END_INIT
usrUsbPegasusEndInit (); /* Pegasus Driver Initialization */
#endif
#ifdef INCLUDE_SCSI
/*
* initialize either the SCSI1 or SCSI2 interface; initialize SCSI2 when
* the SCSI2 interface is available.
*/
#ifndef INCLUDE_SCSI2
scsi1IfInit ();
#else
scsi2IfInit ();
#endif
/* initialize SCSI controller */
if (sysScsiInit () == OK)
{
usrScsiConfig (); /* configure SCSI peripherals */
}
else
{
#ifdef INCLUDE_STDIO
printf ("sysScsiInit() Failed, SCSI system not initialized\n");
#endif /* INCLUDE_STDIO */
}
#endif /* INCLUDE_SCSI */
#ifdef INCLUDE_FD /* initialize floppy disk driver */
if ((fdDrv (FD_INT_VEC, FD_INT_LVL)) == ERROR)
{
#ifdef INCLUDE_STDIO
printf ("fdDrv returned ERROR from usrRoot.\n");
#endif /* INCLUDE_STDIO */
}
#endif /* INCLUDE_FD */
#ifdef INCLUDE_IDE
/* init IDE disk driver */
if ((ideDrv (IDE_INT_VEC, IDE_INT_LVL, IDE_CONFIG)) == ERROR)
{
#ifdef INCLUDE_STDIO
printf ("ideDrv returned ERROR from usrRoot.\n");
#endif /* INCLUDE_STDIO */
}
#endif /* INCLUDE_IDE */
#ifdef INCLUDE_ATA
{ /* initialize hard disk driver */
IMPORT ATA_RESOURCE ataResources[];
ATA_RESOURCE *pAtaResource;
for (ix = 0; ix < ATA_MAX_CTRLS; ix++)
{
pAtaResource = &ataResources[ix];
if (pAtaResource->ctrlType == IDE_LOCAL)
if ((ataDrv (ix, pAtaResource->drives, pAtaResource->intVector,
pAtaResource->intLevel, pAtaResource->configType,
pAtaResource->semTimeout, pAtaResource->wdgTimeout))
== ERROR)
{
#ifdef INCLUDE_STDIO
printf ("ataDrv returned ERROR from usrRoot.\n");
#endif /* INCLUDE_STDIO */
}
}
}
#ifdef INCLUDE_SHOW_ROUTINES
ataShowInit (); /* install ATA/IDE show routine */
#endif /* INCLUDE_SHOW_ROUTINES */
#endif /* INCLUDE_ATA */
#ifdef INCLUDE_LPT
{
IMPORT LPT_RESOURCE lptResources[];
lptDrv (LPT_CHANNELS, &lptResources[0]); /* init LPT parallel driver */
}
#endif /* INCLUDE_LPT */
#ifdef INCLUDE_PCMCIA
#ifdef INCLUDE_SHOW_ROUTINES
pcmciaShowInit (); /* install PCMCIA show routines */
#endif /* INCLUDE_SHOW_ROUTINES */
pcmciaInit (); /* init PCMCIA Lib */
#endif /* INCLUDE_PCMCIA */
#ifdef INCLUDE_TFFS
tffsDrv (); /* it should be after pcmciaInit() */
#endif /* INCLUDE_TFFS */
#ifdef INCLUDE_FORMATTED_IO
fioLibInit (); /* initialize formatted I/O */
#endif /* INCLUDE_FORMATTED_IO */
/* initialize floating point facilities */
#ifdef INCLUDE_FLOATING_POINT
floatInit (); /* initialize floating point I/O */
#endif /* INCLUDE_FLOATING_POINT */
/* install software floating point emulation (if applicable) */
#ifdef INCLUDE_SW_FP
mathSoftInit (); /* use software emulation for fp math */
#endif /* INCLUDE_SW_FP */
/* install hardware floating point support (if applicable) */
#ifdef INCLUDE_HW_FP
mathHardInit (); /* do fppInit() & install hw fp math */
#ifdef INCLUDE_SHOW_ROUTINES
fppShowInit (); /* install hardware fp show routine */
#endif /* INCLUDE_SHOW_ROUTINES */
#endif /* INCLUDE_HW_FP */
/* install dsp support (if applicable) */
#ifdef INCLUDE_DSP
usrDspInit (); /* do dspInit() */
#endif /* INCLUDE_DSP */
/* initialize AltiVec library (if applicable) */
#ifdef INCLUDE_ALTIVEC
usrAltivecInit ();
#endif /* INCLUDE_ALTIVEC */
/* initialize performance monitoring tools */
#ifdef INCLUDE_SPY
spyLibInit (); /* install task cpu utilization tool */
#endif /* INCLUDE_SPY */
#ifdef INCLUDE_TIMEX
timexInit (); /* install function timing tool */
#endif /* INCLUDE_TIMEX */
#ifdef INCLUDE_ENV_VARS
envLibInit (ENV_VAR_USE_HOOKS); /* initialize environment variable */
#endif /* INCLUDE_ENV_VARS */
#ifdef INCLUDE_NTPASSFS
{
IMPORT int ntPassFsInit();
IMPORT void * ntPassFsDevInit();
IMPORT char fullExePath[];
char passName [MAX_FILENAME_LENGTH];
char * defPathEnd;
if (ntPassFsInit(1) == OK)
{
if (ntPassFsDevInit("host:") == NULL)
{
#ifdef INCLUDE_STDIO
printf ("ntPassFsDevInit failed for host: \n");
#endif /* INCLUDE_STDIO */
}
else
{
sprintf (passName, "host:%s", fullExePath);
/* Remove bootFile name at the end of the string */
defPathEnd = strrchr (passName, '\\');
if (defPathEnd != NULL)
*defPathEnd = '\0';
ioDefPathSet (passName);
}
}
else
{
#ifdef INCLUDE_STDIO
printf ("ntPassFsInit failed\n");
#endif /* INCLUDE_STDIO */
}
}
#endif /* INCLUDE_NTPASSFS */
/* initialize object module loader */
#ifdef INCLUDE_LOADER
moduleLibInit (); /* initialize module manager */
#if defined(INCLUDE_AOUT)
loadAoutInit (); /* use a.out format */
#else /* coff or ecoff */
#if defined(INCLUDE_ECOFF)
loadEcoffInit (); /* use ecoff format */
#else /* ecoff */
#if defined(INCLUDE_COFF)
loadCoffInit (); /* use coff format */
#else /* coff */
#if defined(INCLUDE_ELF)
loadElfInit (); /* use elf format */
#else
#if defined(INCLUDE_SOM_COFF)
loadSomCoffInit ();
#else
#if defined(INCLUDE_PECOFF)
{
extern int loadPecoffInit();
loadPecoffInit ();
}
#endif
#endif
#endif
#endif
#endif
#endif
#endif /* INCLUDE_LOADER */
/* initialize wtx client to synchronize host and target symbol tables */
#ifdef INCLUDE_SYM_TBL_SYNC
symSyncLibInit ();
#endif /* INCLUDE_SYM_TBL_SYNC */
/* initialize network */
#ifdef INCLUDE_NET_INIT
usrBootLineInit (sysStartType); /* crack the bootline */
# if defined(INCLUDE_LOGGING) && defined(INCLUDE_LOG_STARTUP)
logMsg ("before usrNetInit()\n", 1,2,3,4,5,6);
taskDelay (2); /* allow time for message to be displayed */
# endif /* INCLUDE_LOGGING && INCLUDE_LOG_STARTUP */
DEBUG_PRINTSTR("calling usrNetInit...\n");
usrNetInit (BOOT_LINE_ADRS); /* initialize network support */
# if defined(INCLUDE_LOGGING) && defined(INCLUDE_LOG_STARTUP)
logMsg ("after usrNetInit()\n", 1,2,3,4,5,6);
taskDelay (2); /* allow time for message to be displayed */
# endif /* INCLUDE_LOGGING && INCLUDE_LOG_STARTUP */
#endif /* INCLUDE_NET_INIT */
#ifdef INCLUDE_PASSFS
{
extern STATUS passFsInit ();
extern void *passFsDevInit ();
char passName [256];
if (passFsInit (1) == OK)
{
extern char vxsim_hostname[];
extern char vxsim_cwd[];
sprintf (passName, "%s:", vxsim_hostname);
if (passFsDevInit (passName) == NULL)
{
#ifdef INCLUDE_STDIO
printf ("passFsDevInit failed for <%s>\n", passName);
#endif /* INCLUDE_STDIO */
}
else
{
sprintf (passName, "%s:%s", vxsim_hostname, vxsim_cwd);
ioDefPathSet (passName);
}
}
else
#ifdef INCLUDE_STDIO
printf ("passFsInit failed\n");
#endif /* INCLUDE_STDIO */
}
#endif /* INCLUDE_PASSFS */
#ifdef INCLUDE_DOS_DISK
{
char unixName [80];
extern void unixDrv ();
extern void unixDiskInit ();
extern char *u_progname; /* home of executable */
char *pLastSlash;
unixDrv ();
pLastSlash = strrchr (u_progname, '/');
pLastSlash = (pLastSlash == NULL) ? u_progname : (pLastSlash + 1);
sprintf (unixName, "/tmp/%s%d.dos", pLastSlash, sysProcNumGet());
unixDiskInit (unixName, "A:", 0);
}
#endif /* INCLUDE_DOS_DISK */
/* initialize shared memory objects */
#ifdef INCLUDE_SM_OBJ /* unbundled shared memory objects */
usrSmObjInit (BOOT_LINE_ADRS);
#endif /* INCLUDE_SM_OBJ */
/* initialize WindMP */
#ifdef INCLUDE_VXFUSION /* unbundled VxFusion (distributed objects) */
usrVxFusionInit (BOOT_LINE_ADRS);
#ifdef INCLUDE_SHOW_ROUTINES
{
extern void msgQDistShowInit();
extern void distNameShowInit ();
extern void distIfShowInit ();
extern void msgQDistGrpShowInit ();
msgQDistShowInit();
distNameShowInit ();
distIfShowInit ();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -