pccard.c (141959) | pccard.c (143785) |
---|---|
1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */ 2 3/*- 4 * Copyright (c) 1997 Marc Horowitz. 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: --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/* $NetBSD: pcmcia.c,v 1.23 2000/07/28 19:17:02 drochner Exp $ */ 2 3/*- 4 * Copyright (c) 1997 Marc Horowitz. 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: --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/pccard/pccard.c 141959 2005-02-16 01:03:30Z imp $"); | 33__FBSDID("$FreeBSD: head/sys/dev/pccard/pccard.c 143785 2005-03-18 05:19:50Z imp $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/malloc.h> 38#include <sys/module.h> 39#include <sys/kernel.h> 40#include <sys/queue.h> 41#include <sys/sysctl.h> --- 487 unchanged lines hidden (view full) --- 529 struct pccard_ivar *devi = PCCARD_IVAR(pf->dev); 530 struct resource_list_entry *rle; 531 532 if (pf->pf_flags & PFF_ENABLED) { 533 printf("pccard_function_init: function is enabled"); 534 return; 535 } 536 | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/malloc.h> 38#include <sys/module.h> 39#include <sys/kernel.h> 40#include <sys/queue.h> 41#include <sys/sysctl.h> --- 487 unchanged lines hidden (view full) --- 529 struct pccard_ivar *devi = PCCARD_IVAR(pf->dev); 530 struct resource_list_entry *rle; 531 532 if (pf->pf_flags & PFF_ENABLED) { 533 printf("pccard_function_init: function is enabled"); 534 return; 535 } 536 |
537 SLIST_FOREACH(rle, &devi->resources, link) { | 537 STAILQ_FOREACH(rle, &devi->resources, link) { |
538 if (rle->res) { 539 if (rman_get_device(rle->res) != pf->sc->dev) 540 device_printf(pf->sc->dev, 541 "function_free: Resource still owned by " 542 "child, oops. " 543 "(type=%d, rid=%d, addr=%lx)\n", 544 rle->type, rle->rid, 545 rman_get_start(rle->res)); --- 834 unchanged lines hidden --- | 538 if (rle->res) { 539 if (rman_get_device(rle->res) != pf->sc->dev) 540 device_printf(pf->sc->dev, 541 "function_free: Resource still owned by " 542 "child, oops. " 543 "(type=%d, rid=%d, addr=%lx)\n", 544 rle->type, rle->rid, 545 rman_get_start(rle->res)); --- 834 unchanged lines hidden --- |