Deleted Added
full compact
if_ep_pccard.c (65794) if_ep_pccard.c (66058)
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/ep/if_ep_pccard.c 65794 2000-09-13 03:57:37Z imp $
30 * $FreeBSD: head/sys/dev/ep/if_ep_pccard.c 66058 2000-09-19 04:39:20Z imp $
31 */
32
33/*
34 * Pccard support for 3C589 by:
35 * HAMADA Naoki
36 * nao@tom-yam.or.jp
37 */
38

--- 14 unchanged lines hidden (view full) ---

53#include <net/if_arp.h>
54#include <net/if_media.h>
55
56#include <machine/clock.h>
57
58#include <dev/ep/if_epreg.h>
59#include <dev/ep/if_epvar.h>
60
31 */
32
33/*
34 * Pccard support for 3C589 by:
35 * HAMADA Naoki
36 * nao@tom-yam.or.jp
37 */
38

--- 14 unchanged lines hidden (view full) ---

53#include <net/if_arp.h>
54#include <net/if_media.h>
55
56#include <machine/clock.h>
57
58#include <dev/ep/if_epreg.h>
59#include <dev/ep/if_epvar.h>
60
61#include "card_if.h"
62#include <dev/pccard/pccardvar.h>
63
61static const char *ep_pccard_identify(u_short id);
62
63/*
64 * Initialize the device - called from Slot manager.
65 */
66static int
67ep_pccard_probe(device_t dev)
68{

--- 164 unchanged lines hidden (view full) ---

233 sc->arpcom.ac_if.if_flags &= ~IFF_RUNNING;
234 ether_ifdetach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED);
235 sc->gone = 1;
236 bus_teardown_intr(dev, sc->irq, sc->ep_intrhand);
237 ep_free(dev);
238 return (0);
239}
240
64static const char *ep_pccard_identify(u_short id);
65
66/*
67 * Initialize the device - called from Slot manager.
68 */
69static int
70ep_pccard_probe(device_t dev)
71{

--- 164 unchanged lines hidden (view full) ---

236 sc->arpcom.ac_if.if_flags &= ~IFF_RUNNING;
237 ether_ifdetach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED);
238 sc->gone = 1;
239 bus_teardown_intr(dev, sc->irq, sc->ep_intrhand);
240 ep_free(dev);
241 return (0);
242}
243
244static int
245ep_pccard_match(device_t dev)
246{
247 return EIO;
248}
249
241static device_method_t ep_pccard_methods[] = {
242 /* Device interface */
250static device_method_t ep_pccard_methods[] = {
251 /* Device interface */
243 DEVMETHOD(device_probe, ep_pccard_probe),
244 DEVMETHOD(device_attach, ep_pccard_attach),
252 DEVMETHOD(device_probe, pccard_compat_probe),
253 DEVMETHOD(device_attach, pccard_compat_attach),
245 DEVMETHOD(device_detach, ep_pccard_detach),
246
254 DEVMETHOD(device_detach, ep_pccard_detach),
255
256 /* Card interface */
257 DEVMETHOD(card_compat_match, ep_pccard_match),
258 DEVMETHOD(card_compat_probe, ep_pccard_probe),
259 DEVMETHOD(card_compat_attach, ep_pccard_attach),
260
247 { 0, 0 }
248};
249
250static driver_t ep_pccard_driver = {
251 "ep",
252 ep_pccard_methods,
253 sizeof(struct ep_softc),
254};
255
256extern devclass_t ep_devclass;
257
258DRIVER_MODULE(ep, pccard, ep_pccard_driver, ep_devclass, 0, 0);
261 { 0, 0 }
262};
263
264static driver_t ep_pccard_driver = {
265 "ep",
266 ep_pccard_methods,
267 sizeof(struct ep_softc),
268};
269
270extern devclass_t ep_devclass;
271
272DRIVER_MODULE(ep, pccard, ep_pccard_driver, ep_devclass, 0, 0);