Diff for /np2/io/np2sysp.c between versions 1.12 and 1.16

version 1.12, 2004/01/22 01:10:04 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 147  static const SYSPCMD np2spcmd[] = { Line 158  static const SYSPCMD np2spcmd[] = {
 #endif  #endif
   
 #if defined(SUPPORT_HOSTDRV)  #if defined(SUPPORT_HOSTDRV)
                         {str_hdrvcheck, np2sysp_outstr,         "supported",    0},                          {str_hdrvcheck, np2sysp_outstr,         "0.74",                 0},
                         {str_hdrvopen,  hostdrv_mount,          NULL,                   0},                          {str_hdrvopen,  hostdrv_mount,          NULL,                   0},
                         {str_hdrvclose, hostdrv_unmount,        NULL,                   0},                          {str_hdrvclose, hostdrv_unmount,        NULL,                   0},
                         {str_hdrvintr,  hostdrv_intr,           NULL,                   0},                          {str_hdrvintr,  hostdrv_intr,           NULL,                   0},
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);

Removed from v.1.12  
changed lines
  Added in v.1.16


RetroPC.NET-CVS <cvs@retropc.net>