Deleted Added
full compact
if_rl.c (113609) if_rl.c (113812)
1/*
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

125 * can hang the bus. I'm inclined to blame this on crummy design/construction
126 * on the part of RealTek. Memory mapped mode does appear to work on
127 * uniprocessor systems though.
128 */
129#define RL_USEIOSPACE
130
131#include <pci/if_rlreg.h>
132
1/*
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

125 * can hang the bus. I'm inclined to blame this on crummy design/construction
126 * on the part of RealTek. Memory mapped mode does appear to work on
127 * uniprocessor systems though.
128 */
129#define RL_USEIOSPACE
130
131#include <pci/if_rlreg.h>
132
133__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 113609 2003-04-17 20:32:06Z njl $");
133__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 113812 2003-04-21 18:34:04Z imp $");
134
135/*
136 * Various supported device vendors/types and their names.
137 */
138static struct rl_type rl_devs[] = {
139 { RT_VENDORID, RT_DEVICEID_8129,
140 "RealTek 8129 10/100BaseTX" },
141 { RT_VENDORID, RT_DEVICEID_8139,

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

1096 struct ifnet *ifp;
1097
1098 sc = device_get_softc(dev);
1099 KASSERT(mtx_initialized(&sc->rl_mtx), ("rl mutex not initialized"));
1100 RL_LOCK(sc);
1101 ifp = &sc->arpcom.ac_if;
1102
1103 /* These should only be active if attach succeeded */
134
135/*
136 * Various supported device vendors/types and their names.
137 */
138static struct rl_type rl_devs[] = {
139 { RT_VENDORID, RT_DEVICEID_8129,
140 "RealTek 8129 10/100BaseTX" },
141 { RT_VENDORID, RT_DEVICEID_8139,

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

1096 struct ifnet *ifp;
1097
1098 sc = device_get_softc(dev);
1099 KASSERT(mtx_initialized(&sc->rl_mtx), ("rl mutex not initialized"));
1100 RL_LOCK(sc);
1101 ifp = &sc->arpcom.ac_if;
1102
1103 /* These should only be active if attach succeeded */
1104 if (device_is_alive(dev)) {
1104 if (device_is_attached(dev)) {
1105 rl_stop(sc);
1106 ether_ifdetach(ifp);
1107 }
1108 if (sc->rl_miibus)
1109 device_delete_child(dev, sc->rl_miibus);
1110 bus_generic_detach(dev);
1111
1112 if (sc->rl_intrhand)

--- 811 unchanged lines hidden ---
1105 rl_stop(sc);
1106 ether_ifdetach(ifp);
1107 }
1108 if (sc->rl_miibus)
1109 device_delete_child(dev, sc->rl_miibus);
1110 bus_generic_detach(dev);
1111
1112 if (sc->rl_intrhand)

--- 811 unchanged lines hidden ---