diff options
author | David S. Miller <davem@davemloft.net> | 2009-01-08 14:05:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-08 14:05:59 -0500 |
commit | 7f46b1343f723f98634a5dcee47856b2000079ed (patch) | |
tree | ed22b6298c8dd2f687890a0d79abcd1d273b5f81 /drivers/ieee1394/eth1394.h | |
parent | b8c31da64165b8566fc6e1c9c826f76e7b98ff02 (diff) | |
parent | 9e42d0cf5020aaf217433cad1a224745241d212a (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/ieee1394/eth1394.h')
-rw-r--r-- | drivers/ieee1394/eth1394.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/ieee1394/eth1394.h b/drivers/ieee1394/eth1394.h index c5bd29ab6056..d53bac47b86f 100644 --- a/drivers/ieee1394/eth1394.h +++ b/drivers/ieee1394/eth1394.h | |||
@@ -81,7 +81,7 @@ struct eth1394_priv { | |||
81 | 81 | ||
82 | struct eth1394hdr { | 82 | struct eth1394hdr { |
83 | unsigned char h_dest[ETH1394_ALEN]; /* destination eth1394 addr */ | 83 | unsigned char h_dest[ETH1394_ALEN]; /* destination eth1394 addr */ |
84 | unsigned short h_proto; /* packet type ID field */ | 84 | __be16 h_proto; /* packet type ID field */ |
85 | } __attribute__((packed)); | 85 | } __attribute__((packed)); |
86 | 86 | ||
87 | static inline struct eth1394hdr *eth1394_hdr(const struct sk_buff *skb) | 87 | static inline struct eth1394hdr *eth1394_hdr(const struct sk_buff *skb) |
@@ -98,13 +98,13 @@ typedef enum {ETH1394_GASP, ETH1394_WRREQ} eth1394_tx_type; | |||
98 | struct eth1394_uf_hdr { | 98 | struct eth1394_uf_hdr { |
99 | u16 lf:2; | 99 | u16 lf:2; |
100 | u16 res:14; | 100 | u16 res:14; |
101 | u16 ether_type; /* Ethernet packet type */ | 101 | __be16 ether_type; /* Ethernet packet type */ |
102 | } __attribute__((packed)); | 102 | } __attribute__((packed)); |
103 | #elif defined __LITTLE_ENDIAN_BITFIELD | 103 | #elif defined __LITTLE_ENDIAN_BITFIELD |
104 | struct eth1394_uf_hdr { | 104 | struct eth1394_uf_hdr { |
105 | u16 res:14; | 105 | u16 res:14; |
106 | u16 lf:2; | 106 | u16 lf:2; |
107 | u16 ether_type; | 107 | __be16 ether_type; |
108 | } __attribute__((packed)); | 108 | } __attribute__((packed)); |
109 | #else | 109 | #else |
110 | #error Unknown bit field type | 110 | #error Unknown bit field type |
@@ -116,7 +116,7 @@ struct eth1394_ff_hdr { | |||
116 | u16 lf:2; | 116 | u16 lf:2; |
117 | u16 res1:2; | 117 | u16 res1:2; |
118 | u16 dg_size:12; /* Datagram size */ | 118 | u16 dg_size:12; /* Datagram size */ |
119 | u16 ether_type; /* Ethernet packet type */ | 119 | __be16 ether_type; /* Ethernet packet type */ |
120 | u16 dgl; /* Datagram label */ | 120 | u16 dgl; /* Datagram label */ |
121 | u16 res2; | 121 | u16 res2; |
122 | } __attribute__((packed)); | 122 | } __attribute__((packed)); |
@@ -125,7 +125,7 @@ struct eth1394_ff_hdr { | |||
125 | u16 dg_size:12; | 125 | u16 dg_size:12; |
126 | u16 res1:2; | 126 | u16 res1:2; |
127 | u16 lf:2; | 127 | u16 lf:2; |
128 | u16 ether_type; | 128 | __be16 ether_type; |
129 | u16 dgl; | 129 | u16 dgl; |
130 | u16 res2; | 130 | u16 res2; |
131 | } __attribute__((packed)); | 131 | } __attribute__((packed)); |
@@ -206,11 +206,11 @@ struct eth1394_arp { | |||
206 | u16 opcode; /* ARP Opcode */ | 206 | u16 opcode; /* ARP Opcode */ |
207 | /* Above is exactly the same format as struct arphdr */ | 207 | /* Above is exactly the same format as struct arphdr */ |
208 | 208 | ||
209 | u64 s_uniq_id; /* Sender's 64bit EUI */ | 209 | __be64 s_uniq_id; /* Sender's 64bit EUI */ |
210 | u8 max_rec; /* Sender's max packet size */ | 210 | u8 max_rec; /* Sender's max packet size */ |
211 | u8 sspd; /* Sender's max speed */ | 211 | u8 sspd; /* Sender's max speed */ |
212 | u16 fifo_hi; /* hi 16bits of sender's FIFO addr */ | 212 | __be16 fifo_hi; /* hi 16bits of sender's FIFO addr */ |
213 | u32 fifo_lo; /* lo 32bits of sender's FIFO addr */ | 213 | __be32 fifo_lo; /* lo 32bits of sender's FIFO addr */ |
214 | u32 sip; /* Sender's IP Address */ | 214 | u32 sip; /* Sender's IP Address */ |
215 | u32 tip; /* IP Address of requested hw addr */ | 215 | u32 tip; /* IP Address of requested hw addr */ |
216 | }; | 216 | }; |