|
|
| version 1.14, 2004/01/23 08:44:30 | version 1.16, 2005/02/07 14:46:11 |
|---|---|
| Line 149 static const SYSPCMD np2spcmd[] = { | Line 149 static const SYSPCMD np2spcmd[] = { |
| {str_hwreset, np2sysp_hwreset, NULL, 0}, | {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 199 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); |