Deleted Added
full compact
if_sisreg.h (139691) if_sisreg.h (139809)
1/*
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ee.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@ee.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_sisreg.h 139691 2005-01-04 22:39:35Z phk $
32 * $FreeBSD: head/sys/pci/if_sisreg.h 139809 2005-01-07 00:01:43Z phk $
33 */
34
35/*
36 * Register definitions for the SiS 900 and SiS 7016 chipsets. The
37 * 7016 is actually an older chip and some of its registers differ
38 * from the 900, however the core operational registers are the same:
39 * the differences lie in the OnNow/Wake on LAN stuff which we don't
40 * use anyway. The 7016 needs an external MII compliant PHY while the

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

247 (SIS_TXDMA_64BYTES|SIS_TXCFG_AUTOPAD|\
248 SIS_TXCFG_FILL(64)|SIS_TXCFG_DRAIN(1536))
249
250#define SIS_TXCFG_10 \
251 (SIS_TXDMA_32BYTES|SIS_TXCFG_AUTOPAD|\
252 SIS_TXCFG_FILL(64)|SIS_TXCFG_DRAIN(1536))
253
254#define SIS_RXCFG_DRAIN_THRESH 0x0000003E /* 8-byte units */
33 */
34
35/*
36 * Register definitions for the SiS 900 and SiS 7016 chipsets. The
37 * 7016 is actually an older chip and some of its registers differ
38 * from the 900, however the core operational registers are the same:
39 * the differences lie in the OnNow/Wake on LAN stuff which we don't
40 * use anyway. The 7016 needs an external MII compliant PHY while the

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

247 (SIS_TXDMA_64BYTES|SIS_TXCFG_AUTOPAD|\
248 SIS_TXCFG_FILL(64)|SIS_TXCFG_DRAIN(1536))
249
250#define SIS_TXCFG_10 \
251 (SIS_TXDMA_32BYTES|SIS_TXCFG_AUTOPAD|\
252 SIS_TXCFG_FILL(64)|SIS_TXCFG_DRAIN(1536))
253
254#define SIS_RXCFG_DRAIN_THRESH 0x0000003E /* 8-byte units */
255#define SIS_TXCFG_MPII03D 0x00040000 /* "Must be 1" */
255#define SIS_RXCFG_DMABURST 0x00700000
256#define SIS_RXCFG_RX_JABBER 0x08000000
257#define SIS_RXCFG_RX_TXPKTS 0x10000000
258#define SIS_RXCFG_RX_RUNTS 0x40000000
259#define SIS_RXCFG_RX_GIANTS 0x80000000
260
261#define SIS_RXCFG_DRAIN(x) ((((x) >> 3) << 1) & SIS_RXCFG_DRAIN_THRESH)
262

--- 263 unchanged lines hidden ---
256#define SIS_RXCFG_DMABURST 0x00700000
257#define SIS_RXCFG_RX_JABBER 0x08000000
258#define SIS_RXCFG_RX_TXPKTS 0x10000000
259#define SIS_RXCFG_RX_RUNTS 0x40000000
260#define SIS_RXCFG_RX_GIANTS 0x80000000
261
262#define SIS_RXCFG_DRAIN(x) ((((x) >> 3) << 1) & SIS_RXCFG_DRAIN_THRESH)
263

--- 263 unchanged lines hidden ---