[BACK]Return to ncr53c9x.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/ic/ncr53c9x.c between version 1.135 and 1.135.4.2

version 1.135, 2008/04/13 12:59:10 version 1.135.4.2, 2009/05/04 08:12:43
Line 15 
Line 15 
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
  * 3. All advertising materials mentioning features or use of this software  
  *    must display the following acknowledgement:  
  *        This product includes software developed by the NetBSD  
  *        Foundation, Inc. and its contributors.  
  * 4. Neither the name of The NetBSD Foundation nor the names of its  
  *    contributors may be used to endorse or promote products derived  
  *    from this software without specific prior written permission.  
  *   *
  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS   * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED   * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
Line 476  ncr53c9x_clear(struct ncr53c9x_softc *sc
Line 469  ncr53c9x_clear(struct ncr53c9x_softc *sc
                                 ecb->xs->error = result;                                  ecb->xs->error = result;
                                 ncr53c9x_done(sc, ecb);                                  ncr53c9x_done(sc, ecb);
                         }                          }
                         for (i = 0; i < 256; i++)                          for (i = 0; i < 256; i++) {
                                 ecb = li->queued[i];                                  ecb = li->queued[i];
                                 if (ecb != NULL) {                                  if (ecb != NULL) {
                                         li->queued[i] = NULL;                                          li->queued[i] = NULL;
                                         ecb->xs->error = result;                                          ecb->xs->error = result;
                                         ncr53c9x_done(sc, ecb);                                          ncr53c9x_done(sc, ecb);
                                 }                                  }
                           }
                         li->used = 0;                          li->used = 0;
                 }                  }
         }          }
Line 2857  shortcut:
Line 2851  shortcut:
                         if (NCRDMA_ISINTR(sc))                          if (NCRDMA_ISINTR(sc))
                                 goto again;                                  goto again;
                         microtime(&cur);                          microtime(&cur);
                 } while (cur.tv_sec <= wait.tv_sec &&                  } while (timercmp(&cur, &wait, <=));
                          cur.tv_usec <= wait.tv_usec);  
         }          }
         goto out;          goto out;
 }  }

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.135.4.2

CVSweb <webmaster@jp.NetBSD.org>