ncr53c9x.c (228526) | ncr53c9x.c (235822) |
---|---|
1/*- 2 * Copyright (c) 2004 Scott Long 3 * Copyright (c) 2005, 2008 Marius Strobl <marius@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 84 unchanged lines hidden (view full) --- 93 * Based on aic6360 by Jarle Greipsland 94 * 95 * Acknowledgements: Many of the algorithms used in this driver are 96 * inspired by the work of Julian Elischer (julian@FreeBSD.org) and 97 * Charles Hannum (mycroft@duality.gnu.ai.mit.edu). Thanks a million! 98 */ 99 100#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Scott Long 3 * Copyright (c) 2005, 2008 Marius Strobl <marius@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 84 unchanged lines hidden (view full) --- 93 * Based on aic6360 by Jarle Greipsland 94 * 95 * Acknowledgements: Many of the algorithms used in this driver are 96 * inspired by the work of Julian Elischer (julian@FreeBSD.org) and 97 * Charles Hannum (mycroft@duality.gnu.ai.mit.edu). Thanks a million! 98 */ 99 100#include <sys/cdefs.h> |
101__FBSDID("$FreeBSD: head/sys/dev/esp/ncr53c9x.c 228526 2011-12-15 06:29:13Z kevlo $"); | 101__FBSDID("$FreeBSD: head/sys/dev/esp/ncr53c9x.c 235822 2012-05-23 06:49:50Z delphij $"); |
102 103#include <sys/param.h> 104#include <sys/systm.h> 105#include <sys/bus.h> 106#include <sys/kernel.h> 107#include <sys/malloc.h> 108#include <sys/lock.h> 109#include <sys/module.h> --- 1389 unchanged lines hidden (view full) --- 1499 1500 NCR_LOCK_ASSERT(sc, MA_OWNED); 1501 1502 ti = &sc->sc_tinfo[ecb->ccb->ccb_h.target_id]; 1503 lun = ecb->ccb->ccb_h.target_lun; 1504 li = TINFO_LUN(ti, lun); 1505#ifdef DIAGNOSTIC 1506 if (li == NULL || li->lun != lun) | 102 103#include <sys/param.h> 104#include <sys/systm.h> 105#include <sys/bus.h> 106#include <sys/kernel.h> 107#include <sys/malloc.h> 108#include <sys/lock.h> 109#include <sys/module.h> --- 1389 unchanged lines hidden (view full) --- 1499 1500 NCR_LOCK_ASSERT(sc, MA_OWNED); 1501 1502 ti = &sc->sc_tinfo[ecb->ccb->ccb_h.target_id]; 1503 lun = ecb->ccb->ccb_h.target_lun; 1504 li = TINFO_LUN(ti, lun); 1505#ifdef DIAGNOSTIC 1506 if (li == NULL || li->lun != lun) |
1507 panic("%s: lun %qx for ecb %p does not exist", __func__, | 1507 panic("%s: lun %llx for ecb %p does not exist", __func__, |
1508 (long long)lun, ecb); 1509#endif 1510 if (li->untagged == ecb) { 1511 li->busy = 0; 1512 li->untagged = NULL; 1513 } 1514 if (ecb->tag[0] && li->queued[ecb->tag[1]] != NULL) { 1515#ifdef DIAGNOSTIC 1516 if (li->queued[ecb->tag[1]] != NULL && 1517 (li->queued[ecb->tag[1]] != ecb)) | 1508 (long long)lun, ecb); 1509#endif 1510 if (li->untagged == ecb) { 1511 li->busy = 0; 1512 li->untagged = NULL; 1513 } 1514 if (ecb->tag[0] && li->queued[ecb->tag[1]] != NULL) { 1515#ifdef DIAGNOSTIC 1516 if (li->queued[ecb->tag[1]] != NULL && 1517 (li->queued[ecb->tag[1]] != ecb)) |
1518 panic("%s: slot %d for lun %qx has %p instead of ecb " | 1518 panic("%s: slot %d for lun %llx has %p instead of ecb " |
1519 "%p", __func__, ecb->tag[1], (long long)lun, 1520 li->queued[ecb->tag[1]], ecb); 1521#endif 1522 li->queued[ecb->tag[1]] = NULL; 1523 li->used--; 1524 } 1525 ecb->tag[0] = ecb->tag[1] = 0; 1526 --- 1712 unchanged lines hidden --- | 1519 "%p", __func__, ecb->tag[1], (long long)lun, 1520 li->queued[ecb->tag[1]], ecb); 1521#endif 1522 li->queued[ecb->tag[1]] = NULL; 1523 li->used--; 1524 } 1525 ecb->tag[0] = ecb->tag[1] = 0; 1526 --- 1712 unchanged lines hidden --- |