Lines Matching refs:dev
30 __FBSDID("$FreeBSD: releng/11.0/sys/dev/snc/if_snc_pccard.c 292079 2015-12-11 05:27:56Z imp $");
56 #include <dev/snc/dp83932var.h>
57 #include <dev/snc/if_sncvar.h>
58 #include <dev/snc/if_sncreg.h>
60 #include <dev/pccard/pccardvar.h>
61 #include <dev/pccard/pccard_cis.h>
101 snc_pccard_detach(device_t dev)
103 struct snc_softc *sc = device_get_softc(dev);
107 device_printf(dev, "already unloaded\n");
116 bus_teardown_intr(dev, sc->irq, sc->irq_handle);
117 snc_release_resources(dev);
126 snc_pccard_probe(device_t dev)
130 if ((pp = pccard_product_lookup(dev, snc_pccard_products,
134 device_set_desc(dev, pp->pp_name);
139 snc_pccard_attach(device_t dev)
141 struct snc_softc *sc = device_get_softc(dev);
147 if ((error = snc_alloc_port(dev, 0)) != 0)
149 if ((error = snc_alloc_memory(dev, 0)) != 0)
151 if ((error = snc_alloc_irq(dev, 0, 0)) != 0)
153 if ((error = snc_probe(dev, SNEC_TYPE_PNP)) != 0)
157 /* pccard_get_ether(dev, ether_addr); */
158 if ((error = snc_attach(dev)) != 0)
162 snc_release_resources(dev);