1/* $NetBSD: puc.c,v 1.7 2000/07/29 17:43:38 jlam Exp $ */ 2 3/*- 4 * Copyright (c) 2002 JF Hay. All rights reserved. 5 * Copyright (c) 2000 M. Warner Losh. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 44 unchanged lines hidden (view full) --- 53 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 54 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 55 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 56 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 57 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 58 */ 59 60#include <sys/cdefs.h> |
61__FBSDID("$FreeBSD: head/sys/dev/puc/puc.c 104068 2002-09-27 22:01:32Z phk $"); |
62 63/* 64 * PCI "universal" communication card device driver, glues com, lpt, 65 * and similar ports to PCI via bridge chip often much larger than 66 * the devices being glued. 67 * 68 * Author: Christopher G. Demetriou, May 14, 1998 (derived from NetBSD 69 * sys/dev/pci/pciide.c, revision 1.6). --- 207 unchanged lines hidden (view full) --- 277 device_quiet(sc->sc_ports[i].dev); 278#ifdef PUC_DEBUG 279 printf("puc: type %d, bar %x, offset %x\n", 280 sc->sc_desc->ports[i].type, 281 sc->sc_desc->ports[i].bar, 282 sc->sc_desc->ports[i].offset); 283 puc_print_resource_list(&pdev->resources); 284#endif |
285 device_set_flags(sc->sc_ports[i].dev, 286 sc->sc_desc->ports[i].flags); |
287 if (device_probe_and_attach(sc->sc_ports[i].dev) != 0) { 288 if (sc->barmuxed) { 289 bus_space_unmap(rman_get_bustag(rle->res), 290 rman_get_bushandle(rle->res), 291 8); 292 free(rle->res, M_DEVBUF); 293 free(pdev, M_DEVBUF); 294 } --- 222 unchanged lines hidden --- |