Deleted Added
full compact
if_sisreg.h (219102) if_sisreg.h (226995)
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/dev/sis/if_sisreg.h 219102 2011-02-28 20:37:48Z yongari $
32 * $FreeBSD: head/sys/dev/sis/if_sisreg.h 226995 2011-11-01 16:13:59Z marius $
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

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

428/*
429 * DP83815 device ID
430 */
431#define NS_DEVICEID_DP83815 0x0020
432
433struct sis_type {
434 uint16_t sis_vid;
435 uint16_t sis_did;
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

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

428/*
429 * DP83815 device ID
430 */
431#define NS_DEVICEID_DP83815 0x0020
432
433struct sis_type {
434 uint16_t sis_vid;
435 uint16_t sis_did;
436 char *sis_name;
436 const char *sis_name;
437};
438
437};
438
439struct sis_mii_frame {
440 uint8_t mii_stdelim;
441 uint8_t mii_opcode;
442 uint8_t mii_phyaddr;
443 uint8_t mii_regaddr;
444 uint8_t mii_turnaround;
445 uint16_t mii_data;
446};
447
448/*
449 * MII constants
450 */
451#define SIS_MII_STARTDELIM 0x01
452#define SIS_MII_READOP 0x02
453#define SIS_MII_WRITEOP 0x01
454#define SIS_MII_TURNAROUND 0x02
455
456#define SIS_TYPE_900 1
457#define SIS_TYPE_7016 2
458#define SIS_TYPE_83815 3
459#define SIS_TYPE_83816 4
460
461struct sis_txdesc {
462 struct mbuf *tx_m;
463 bus_dmamap_t tx_dmamap;

--- 90 unchanged lines hidden ---
439#define SIS_TYPE_900 1
440#define SIS_TYPE_7016 2
441#define SIS_TYPE_83815 3
442#define SIS_TYPE_83816 4
443
444struct sis_txdesc {
445 struct mbuf *tx_m;
446 bus_dmamap_t tx_dmamap;

--- 90 unchanged lines hidden ---