diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2016-08-19 10:51:30 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2016-08-19 10:51:30 +0000 |
commit | ac14c068f90898c8769042413f6532298d503684 (patch) | |
tree | 1209be4b2419b79747c54345a2366bdc244f322e /sys/dev | |
parent | 852710e6dbc5507cf0e0ed136f4deef58178401a (diff) | |
download | src-ac14c068f90898c8769042413f6532298d503684.tar.gz src-ac14c068f90898c8769042413f6532298d503684.zip |
Host controller is byte oriented. Fix wrong assumption on big-endian
systems.
Pointed out by: hselasky
Notes
Notes:
svn path=/head/; revision=304458
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/net/if_axgereg.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/usb/net/if_axgereg.h b/sys/dev/usb/net/if_axgereg.h index f0210796dd42..c073610fe0dd 100644 --- a/sys/dev/usb/net/if_axgereg.h +++ b/sys/dev/usb/net/if_axgereg.h @@ -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) |