mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Host controller is byte oriented. Fix wrong assumption on big-endian
systems. Pointed out by: hselasky
This commit is contained in:
parent
852710e6db
commit
ac14c068f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304458
@ -154,21 +154,15 @@ enum {
|
||||
#define AXGE_N_FRAMES 16
|
||||
|
||||
struct axge_frame_txhdr {
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
uint32_t len;
|
||||
uint32_t mss;
|
||||
#else
|
||||
uint32_t mss;
|
||||
uint32_t len;
|
||||
#endif
|
||||
} __packed;
|
||||
|
||||
#define AXGE_TXLEN_MASK 0x0001FFFF
|
||||
#define AXGE_VLAN_INSERT 0x20000000
|
||||
#define AXGE_CSUM_DISABLE 0x80000000
|
||||
uint32_t mss;
|
||||
#define AXGE_MSS_MASK 0x00003FFF
|
||||
#define AXGE_PADDING 0x80008000
|
||||
#define AXGE_VLAN_TAG_MASK 0xFFFF0000
|
||||
} __packed;
|
||||
|
||||
#define AXGE_TXBYTES(x) ((x) & AXGE_TXLEN_MASK)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user