mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-27 09:31:32 +00:00
s3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
c08fb3ea36
commit
478d5ec9ae
1 changed files with 8 additions and 8 deletions
|
@ -30,8 +30,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define __packed __attribute__ ((packed))
|
||||
|
||||
#define ETH_MAC_ADDR_SIZE (6) /* dst,src addr is 6bytes each */
|
||||
#define ETH_MaxTxFrames (16) /* Max number of Tx Frames */
|
||||
|
||||
|
@ -283,12 +281,14 @@ typedef struct __RX_FrameDescriptor {
|
|||
} RX_FrameDescriptor;
|
||||
|
||||
/* MAC Frame Structure */
|
||||
typedef struct __MACFrame {
|
||||
u8 m_dstAddr[6] __packed;
|
||||
u8 m_srcAddr[6] __packed;
|
||||
u16 m_lengthOrType __packed;
|
||||
u8 m_payload[1506] __packed;
|
||||
} MACFrame;
|
||||
struct __MACFrame {
|
||||
u8 m_dstAddr[6];
|
||||
u8 m_srcAddr[6];
|
||||
u16 m_lengthOrType;
|
||||
u8 m_payload[1506];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
typedef struct __MACFrame MACFrame;
|
||||
|
||||
/* Ethernet Control block */
|
||||
typedef struct __ETH {
|
||||
|
|
Loading…
Add table
Reference in a new issue