summaryrefslogtreecommitdiffstats
path: root/sys/alpha/tc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commite87f7a15ad62e1dd25061ddb301662e809692c2c (patch)
tree5f0ba9ebd57fbfd6e13f2b9403d96e9bfae48d8f /sys/alpha/tc
parentf3b4fbe35f6e8e9d09f742c114281d8e9984d135 (diff)
downloadFreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.zip
FreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.tar.gz
Mechanical change to use <sys/queue.h> macro API instead of
fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
Diffstat (limited to 'sys/alpha/tc')
-rw-r--r--sys/alpha/tc/esp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/alpha/tc/esp.c b/sys/alpha/tc/esp.c
index e956811..4b46dab 100644
--- a/sys/alpha/tc/esp.c
+++ b/sys/alpha/tc/esp.c
@@ -367,7 +367,7 @@ esp_init(sc, doreset)
esp_done(ecb);
sc->sc_nexus = NULL;
}
- while ((ecb = sc->nexus_list.tqh_first) != NULL) {
+ while ((ecb = TAILQ_FIRST(&sc->nexus_list)) != NULL) {
ecb->xs->error = XS_TIMEOUT;
esp_done(ecb);
}
@@ -550,7 +550,7 @@ esp_scsi_cmd(xs)
/* Get a esp command block */
s = splbio();
- ecb = sc->free_list.tqh_first;
+ ecb = TAILQ_FIRST(&sc->free_list);
if (ecb) {
TAILQ_REMOVE(&sc->free_list, ecb, chain);
ECB_SETQ(ecb, ECB_QNONE);
@@ -657,7 +657,7 @@ esp_sched(sc)
* Find first ecb in ready queue that is for a target/lunit
* combinations that is not busy.
*/
- for (ecb = sc->ready_list.tqh_first; ecb; ecb = ecb->chain.tqe_next) {
+ TAILQ_FOREACH(ecb, &sc->ready_list, chain) {
sc_link = ecb->xs->sc_link;
t = sc_link->target;
if (!(sc->sc_tinfo[t].lubusy & (1 << sc_link->lun))) {
@@ -1080,8 +1080,8 @@ printf("%s: unimplemented message: %d\n", device_get_nameunit(sc->sc_dev), sc->s
* singly linked list.
*/
lunit = sc->sc_imess[0] & 0x07;
- for (ecb = sc->nexus_list.tqh_first; ecb;
- ecb = ecb->chain.tqe_next) {
+ for (ecb = TAILQ_FIRST(&sc->nexus_list); ecb;
+ ecb = TAILQ_NEXT(ecb, chain)) {
sc_link = ecb->xs->sc_link;
if (sc_link->lun == lunit &&
sc->sc_selid == (1<<sc_link->target)) {
OpenPOWER on IntegriCloud