|
|
| version 1.13, 2004/01/22 04:23:06 | version 1.16, 2005/02/07 14:46:11 |
|---|---|
| Line 10 | Line 10 |
| #endif | #endif |
| #define NP2SYSP_VER "B" | #define NP2SYSP_VER "C" |
| // #define NP2SYSP_CREDIT "" // 要るなら・・・ | // #define NP2SYSP_CREDIT "" // 要るなら・・・ |
| // NP2依存ポート | // NP2依存ポート |
| Line 92 static void np2sysp_multiple(const void | Line 92 static void np2sysp_multiple(const void |
| (void)arg2; | (void)arg2; |
| } | } |
| static void np2sysp_hwreset(const void *arg1, long arg2) { | |
| hardwarereset = TRUE; | |
| (void)arg1; | |
| (void)arg2; | |
| } | |
| // ---- | // ---- |
| Line 102 static const char str_credit[] = "credit | Line 109 static const char str_credit[] = "credit |
| static const char str_cpu[] = "cpu"; | static const char str_cpu[] = "cpu"; |
| static const char str_clock[] = "clock"; | static const char str_clock[] = "clock"; |
| static const char str_multiple[] = "multiple"; | static const char str_multiple[] = "multiple"; |
| static const char str_hwreset[] = "hardwarereset"; | |
| static const char str_sasibios[] = "sasibios"; | static const char str_sasibios[] = "sasibios"; |
| static const char str_scsibios[] = "scsibios"; | static const char str_scsibios[] = "scsibios"; |
| static const char str_scsidev[] = "scsi_dev"; | static const char str_scsidev[] = "scsi_dev"; |
| Line 137 static const SYSPCMD np2spcmd[] = { | Line 145 static const SYSPCMD np2spcmd[] = { |
| {str_clock, np2sysp_clock, NULL, 0}, | {str_clock, np2sysp_clock, NULL, 0}, |
| {str_multiple, np2sysp_multiple, NULL, 0}, | {str_multiple, np2sysp_multiple, NULL, 0}, |
| // version:C | |
| {str_hwreset, np2sysp_hwreset, NULL, 0}, | |
| // extension | // extension |
| #if defined(SUPPORT_SASI) | #if defined(SUPPORT_IDEIO) || defined(SUPPORT_SASI) |
| {str_sasibios, np2sysp_sasi, NULL, 0}, | {str_sasibios, np2sysp_sasi, NULL, 0}, |
| #endif | #endif |
| #if defined(SUPPORT_SCSI) | #if defined(SUPPORT_SCSI) |
| Line 188 const SYSPCMD *cmdterm; | Line 199 const SYSPCMD *cmdterm; |
| np2sysp.substr[np2sysp.strpos] = (char)dat; | np2sysp.substr[np2sysp.strpos] = (char)dat; |
| cmd = np2spcmd; | cmd = np2spcmd; |
| cmdterm = cmd + (sizeof(np2spcmd) / sizeof(SYSPCMD)); | cmdterm = cmd + NELEMENTS(np2spcmd); |
| while(cmd < cmdterm) { | while(cmd < cmdterm) { |
| if (!np2syspcmp(cmd->key)) { | if (!np2syspcmp(cmd->key)) { |
| cmd->func(cmd->arg1, cmd->arg2); | cmd->func(cmd->arg1, cmd->arg2); |