Deleted Added
full compact
if_ste.c (51455) if_ste.c (51473)
1/*
2 * Copyright (c) 1997, 1998, 1999
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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 1997, 1998, 1999
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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/pci/if_ste.c 51455 1999-09-20 08:47:11Z wpaul $
32 * $FreeBSD: head/sys/pci/if_ste.c 51473 1999-09-20 19:06:45Z wpaul $
33 */
34
35
36#include "bpf.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/sockio.h>

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

78#include "miibus_if.h"
79
80#define STE_USEIOSPACE
81
82#include <pci/if_stereg.h>
83
84#if !defined(lint)
85static const char rcsid[] =
33 */
34
35
36#include "bpf.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/sockio.h>

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

78#include "miibus_if.h"
79
80#define STE_USEIOSPACE
81
82#include <pci/if_stereg.h>
83
84#if !defined(lint)
85static const char rcsid[] =
86 "$FreeBSD: head/sys/pci/if_ste.c 51455 1999-09-20 08:47:11Z wpaul $";
86 "$FreeBSD: head/sys/pci/if_ste.c 51473 1999-09-20 19:06:45Z wpaul $";
87#endif
88
89/*
90 * Various supported device vendors/types and their names.
91 */
92static struct ste_type ste_devs[] = {
93 { ST_VENDORID, ST_DEVICEID_ST201, "Sundance ST201 10/100BaseTX" },
94 { DL_VENDORID, DL_DEVICEID_550TX, "D-Link DFE-550TX 10/100BaseTX" },

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

167static driver_t ste_driver = {
168 "ste",
169 ste_methods,
170 sizeof(struct ste_softc)
171};
172
173static devclass_t ste_devclass;
174
87#endif
88
89/*
90 * Various supported device vendors/types and their names.
91 */
92static struct ste_type ste_devs[] = {
93 { ST_VENDORID, ST_DEVICEID_ST201, "Sundance ST201 10/100BaseTX" },
94 { DL_VENDORID, DL_DEVICEID_550TX, "D-Link DFE-550TX 10/100BaseTX" },

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

167static driver_t ste_driver = {
168 "ste",
169 ste_methods,
170 sizeof(struct ste_softc)
171};
172
173static devclass_t ste_devclass;
174
175DRIVER_MODULE(if_ste, pci, ste_driver, ste_devclass, 0, 0);
176DRIVER_MODULE(miibus, if_ste, miibus_driver, miibus_devclass, 0, 0);
175DRIVER_MODULE(ste, pci, ste_driver, ste_devclass, 0, 0);
176DRIVER_MODULE(miibus, ste, miibus_driver, miibus_devclass, 0, 0);
177
178#define STE_SETBIT4(sc, reg, x) \
179 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x)
180
181#define STE_CLRBIT4(sc, reg, x) \
182 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x)
183
184#define STE_SETBIT2(sc, reg, x) \

--- 1465 unchanged lines hidden ---
177
178#define STE_SETBIT4(sc, reg, x) \
179 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x)
180
181#define STE_CLRBIT4(sc, reg, x) \
182 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x)
183
184#define STE_SETBIT2(sc, reg, x) \

--- 1465 unchanged lines hidden ---