diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-12-10 14:00:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:16 -0500 |
commit | a7df90a51944a963d9a4fbe12790630aa4da7aee (patch) | |
tree | 45d8b1c4d4c00f400939dc3d1b8cb68a4c6dfb55 /drivers/net/ixgb/ixgb_hw.h | |
parent | 8327d000e092f737f7d6602258e5c7575686cc37 (diff) |
ixgb endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb/ixgb_hw.h')
-rw-r--r-- | drivers/net/ixgb/ixgb_hw.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/ixgb/ixgb_hw.h b/drivers/net/ixgb/ixgb_hw.h index af5643324ee3..7a7684d094dc 100644 --- a/drivers/net/ixgb/ixgb_hw.h +++ b/drivers/net/ixgb/ixgb_hw.h | |||
@@ -534,12 +534,12 @@ typedef enum { | |||
534 | * in which case the structure must be packed in some compiler-specific | 534 | * in which case the structure must be packed in some compiler-specific |
535 | * manner. */ | 535 | * manner. */ |
536 | struct ixgb_rx_desc { | 536 | struct ixgb_rx_desc { |
537 | uint64_t buff_addr; | 537 | __le64 buff_addr; |
538 | uint16_t length; | 538 | __le16 length; |
539 | uint16_t reserved; | 539 | __le16 reserved; |
540 | uint8_t status; | 540 | uint8_t status; |
541 | uint8_t errors; | 541 | uint8_t errors; |
542 | uint16_t special; | 542 | __le16 special; |
543 | }; | 543 | }; |
544 | 544 | ||
545 | #define IXGB_RX_DESC_STATUS_DD 0x01 | 545 | #define IXGB_RX_DESC_STATUS_DD 0x01 |
@@ -567,11 +567,11 @@ struct ixgb_rx_desc { | |||
567 | * in which case the structure must be packed in some compiler-specific | 567 | * in which case the structure must be packed in some compiler-specific |
568 | * manner. */ | 568 | * manner. */ |
569 | struct ixgb_tx_desc { | 569 | struct ixgb_tx_desc { |
570 | uint64_t buff_addr; | 570 | __le64 buff_addr; |
571 | uint32_t cmd_type_len; | 571 | __le32 cmd_type_len; |
572 | uint8_t status; | 572 | uint8_t status; |
573 | uint8_t popts; | 573 | uint8_t popts; |
574 | uint16_t vlan; | 574 | __le16 vlan; |
575 | }; | 575 | }; |
576 | 576 | ||
577 | #define IXGB_TX_DESC_LENGTH_MASK 0x000FFFFF | 577 | #define IXGB_TX_DESC_LENGTH_MASK 0x000FFFFF |
@@ -596,14 +596,14 @@ struct ixgb_tx_desc { | |||
596 | struct ixgb_context_desc { | 596 | struct ixgb_context_desc { |
597 | uint8_t ipcss; | 597 | uint8_t ipcss; |
598 | uint8_t ipcso; | 598 | uint8_t ipcso; |
599 | uint16_t ipcse; | 599 | __le16 ipcse; |
600 | uint8_t tucss; | 600 | uint8_t tucss; |
601 | uint8_t tucso; | 601 | uint8_t tucso; |
602 | uint16_t tucse; | 602 | __le16 tucse; |
603 | uint32_t cmd_type_len; | 603 | __le32 cmd_type_len; |
604 | uint8_t status; | 604 | uint8_t status; |
605 | uint8_t hdr_len; | 605 | uint8_t hdr_len; |
606 | uint16_t mss; | 606 | __le16 mss; |
607 | }; | 607 | }; |
608 | 608 | ||
609 | #define IXGB_CONTEXT_DESC_CMD_TCP 0x01000000 | 609 | #define IXGB_CONTEXT_DESC_CMD_TCP 0x01000000 |