diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:36:19 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:36:19 +0000 |
commit | f8eb256c65fe796edfbbb90ae32c5502ca585795 (patch) | |
tree | 90bfb3141076a93dd45b97c7da2903fd4ebd8507 /sys/dev/pcmcia/pcmcia_cis.c | |
parent | c9e49ad98cb86122f4be405756296ca6ce04c29e (diff) |
Use queue.h macros instead of using the structure names directly.
Diffstat (limited to 'sys/dev/pcmcia/pcmcia_cis.c')
-rw-r--r-- | sys/dev/pcmcia/pcmcia_cis.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/dev/pcmcia/pcmcia_cis.c b/sys/dev/pcmcia/pcmcia_cis.c index 94aa293a953..fc32488cac8 100644 --- a/sys/dev/pcmcia/pcmcia_cis.c +++ b/sys/dev/pcmcia/pcmcia_cis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcmcia_cis.c,v 1.8 2002/06/19 19:03:25 fgsch Exp $ */ +/* $OpenBSD: pcmcia_cis.c,v 1.9 2002/11/19 18:36:18 jason Exp $ */ /* $NetBSD: pcmcia_cis.c,v 1.9 1998/08/22 23:41:48 msaitoh Exp $ */ /* @@ -471,8 +471,7 @@ pcmcia_print_cis(sc) printf("%s: Manufacturer code 0x%x, product 0x%x\n", sc->dev.dv_xname, card->manufacturer, card->product); - for (pf = card->pf_head.sqh_first; pf != NULL; - pf = pf->pf_list.sqe_next) { + SIMPLEQ_FOREACH(pf, &card->pf_head, pf_list) { printf("%s: function %d: ", sc->dev.dv_xname, pf->number); switch (pf->function) { @@ -522,8 +521,7 @@ pcmcia_print_cis(sc) printf(", ccr addr %lx mask %lx\n", pf->ccr_base, pf->ccr_mask); - for (cfe = pf->cfe_head.sqh_first; cfe != NULL; - cfe = cfe->cfe_list.sqe_next) { + SIMPLEQ_FOREACH(cfe, &pf->cfe_head, cfe_list) { printf("%s: function %d, config table entry %d: ", sc->dev.dv_xname, pf->number, cfe->number); @@ -632,9 +630,9 @@ pcmcia_parse_cis_tuple(tuple, arg) if (state->gotmfc == 1) { struct pcmcia_function *pf, *pfnext; - for (pf = state->card->pf_head.sqh_first; pf != NULL; - pf = pfnext) { - pfnext = pf->pf_list.sqe_next; + for (pf = SIMPLEQ_FIRST(&state->card->pf_head); + pf != NULL; pf = pfnext) { + pfnext = SIMPLEQ_NEXT(pf, pf_list); free(pf, M_DEVBUF); } |