if_gemreg.h (139749) | if_gemreg.h (170273) |
---|---|
1/*- 2 * Copyright (C) 2001 Eduardo Horvath. 3 * All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * from: NetBSD: gemreg.h,v 1.15 2002/05/11 00:36:02 matt Exp 28 * | 1/*- 2 * Copyright (C) 2001 Eduardo Horvath. 3 * All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * from: NetBSD: gemreg.h,v 1.15 2002/05/11 00:36:02 matt Exp 28 * |
29 * $FreeBSD: head/sys/dev/gem/if_gemreg.h 139749 2005-01-06 01:43:34Z imp $ | 29 * $FreeBSD: head/sys/dev/gem/if_gemreg.h 170273 2007-06-04 06:01:04Z yongari $ |
30 */ 31 32#ifndef _IF_GEMREG_H 33#define _IF_GEMREG_H 34 35/* Register definitions for Sun GEM gigabit ethernet */ 36 37#define GEM_SEB_STATE 0x0000 /* SEB state reg, R/O */ --- 467 unchanged lines hidden (view full) --- 505struct gem_desc { 506 uint64_t gd_flags; 507 uint64_t gd_addr; 508}; 509 510/* Transmit flags */ 511#define GEM_TD_BUFSIZE 0x0000000000007fffLL 512#define GEM_TD_CXSUM_START 0x00000000001f8000LL /* Cxsum start offset */ | 30 */ 31 32#ifndef _IF_GEMREG_H 33#define _IF_GEMREG_H 34 35/* Register definitions for Sun GEM gigabit ethernet */ 36 37#define GEM_SEB_STATE 0x0000 /* SEB state reg, R/O */ --- 467 unchanged lines hidden (view full) --- 505struct gem_desc { 506 uint64_t gd_flags; 507 uint64_t gd_addr; 508}; 509 510/* Transmit flags */ 511#define GEM_TD_BUFSIZE 0x0000000000007fffLL 512#define GEM_TD_CXSUM_START 0x00000000001f8000LL /* Cxsum start offset */ |
513#define GEM_TD_CXSUM_STARTSHFT 15 |
|
513#define GEM_TD_CXSUM_STUFF 0x000000001fe00000LL /* Cxsum stuff offset */ | 514#define GEM_TD_CXSUM_STUFF 0x000000001fe00000LL /* Cxsum stuff offset */ |
515#define GEM_TD_CXSUM_STUFFSHFT 21 |
|
514#define GEM_TD_CXSUM_ENABLE 0x0000000020000000LL /* Cxsum generation enable */ 515#define GEM_TD_END_OF_PACKET 0x0000000040000000LL 516#define GEM_TD_START_OF_PACKET 0x0000000080000000LL 517#define GEM_TD_INTERRUPT_ME 0x0000000100000000LL /* Interrupt me now */ 518#define GEM_TD_NO_CRC 0x0000000200000000LL /* do not insert crc */ 519/* 520 * Only need to set GEM_TD_CXSUM_ENABLE, GEM_TD_CXSUM_STUFF, 521 * GEM_TD_CXSUM_START, and GEM_TD_INTERRUPT_ME in 1st descriptor of a group. --- 18 unchanged lines hidden --- | 516#define GEM_TD_CXSUM_ENABLE 0x0000000020000000LL /* Cxsum generation enable */ 517#define GEM_TD_END_OF_PACKET 0x0000000040000000LL 518#define GEM_TD_START_OF_PACKET 0x0000000080000000LL 519#define GEM_TD_INTERRUPT_ME 0x0000000100000000LL /* Interrupt me now */ 520#define GEM_TD_NO_CRC 0x0000000200000000LL /* do not insert crc */ 521/* 522 * Only need to set GEM_TD_CXSUM_ENABLE, GEM_TD_CXSUM_STUFF, 523 * GEM_TD_CXSUM_START, and GEM_TD_INTERRUPT_ME in 1st descriptor of a group. --- 18 unchanged lines hidden --- |