Commit 0569056e authored by Al Viro's avatar Al Viro Committed by David S. Miller

prism54 trivial annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cecefb8e
...@@ -138,14 +138,14 @@ isl38xx_w32_flush(void __iomem *base, u32 val, unsigned long offset) ...@@ -138,14 +138,14 @@ isl38xx_w32_flush(void __iomem *base, u32 val, unsigned long offset)
#define MAX_FRAGMENT_SIZE_RX 1600 #define MAX_FRAGMENT_SIZE_RX 1600
typedef struct { typedef struct {
u32 address; /* physical address on host */ __le32 address; /* physical address on host */
u16 size; /* packet size */ __le16 size; /* packet size */
u16 flags; /* set of bit-wise flags */ __le16 flags; /* set of bit-wise flags */
} isl38xx_fragment; } isl38xx_fragment;
struct isl38xx_cb { struct isl38xx_cb {
u32 driver_curr_frag[ISL38XX_CB_QCOUNT]; __le32 driver_curr_frag[ISL38XX_CB_QCOUNT];
u32 device_curr_frag[ISL38XX_CB_QCOUNT]; __le32 device_curr_frag[ISL38XX_CB_QCOUNT];
isl38xx_fragment rx_data_low[ISL38XX_CB_RX_QSIZE]; isl38xx_fragment rx_data_low[ISL38XX_CB_RX_QSIZE];
isl38xx_fragment tx_data_low[ISL38XX_CB_TX_QSIZE]; isl38xx_fragment tx_data_low[ISL38XX_CB_TX_QSIZE];
isl38xx_fragment rx_data_high[ISL38XX_CB_RX_QSIZE]; isl38xx_fragment rx_data_high[ISL38XX_CB_RX_QSIZE];
......
...@@ -471,7 +471,7 @@ islpci_eth_receive(islpci_private *priv) ...@@ -471,7 +471,7 @@ islpci_eth_receive(islpci_private *priv)
wmb(); wmb();
/* increment the driver read pointer */ /* increment the driver read pointer */
add_le32p((u32 *) &control_block-> add_le32p(&control_block->
driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1); driver_curr_frag[ISL38XX_CB_RX_DATA_LQ], 1);
} }
......
...@@ -23,15 +23,15 @@ ...@@ -23,15 +23,15 @@
#include "islpci_dev.h" #include "islpci_dev.h"
struct rfmon_header { struct rfmon_header {
u16 unk0; /* = 0x0000 */ __le16 unk0; /* = 0x0000 */
u16 length; /* = 0x1400 */ __le16 length; /* = 0x1400 */
u32 clock; /* 1MHz clock */ __le32 clock; /* 1MHz clock */
u8 flags; u8 flags;
u8 unk1; u8 unk1;
u8 rate; u8 rate;
u8 unk2; u8 unk2;
u16 freq; __le16 freq;
u16 unk3; __le16 unk3;
u8 rssi; u8 rssi;
u8 padding[3]; u8 padding[3];
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -47,20 +47,20 @@ struct rx_annex_header { ...@@ -47,20 +47,20 @@ struct rx_annex_header {
#define P80211CAPTURE_VERSION 0x80211001 #define P80211CAPTURE_VERSION 0x80211001
struct avs_80211_1_header { struct avs_80211_1_header {
uint32_t version; __be32 version;
uint32_t length; __be32 length;
uint64_t mactime; __be64 mactime;
uint64_t hosttime; __be64 hosttime;
uint32_t phytype; __be32 phytype;
uint32_t channel; __be32 channel;
uint32_t datarate; __be32 datarate;
uint32_t antenna; __be32 antenna;
uint32_t priority; __be32 priority;
uint32_t ssi_type; __be32 ssi_type;
int32_t ssi_signal; __be32 ssi_signal;
int32_t ssi_noise; __be32 ssi_noise;
uint32_t preamble; __be32 preamble;
uint32_t encoding; __be32 encoding;
}; };
void islpci_eth_cleanup_transmit(islpci_private *, isl38xx_control_block *); void islpci_eth_cleanup_transmit(islpci_private *, isl38xx_control_block *);
......
...@@ -86,7 +86,7 @@ extern int pc_debug; ...@@ -86,7 +86,7 @@ extern int pc_debug;
#define PIMFOR_FLAG_LITTLE_ENDIAN 0x02 #define PIMFOR_FLAG_LITTLE_ENDIAN 0x02
static inline void static inline void
add_le32p(u32 * le_number, u32 add) add_le32p(__le32 * le_number, u32 add)
{ {
*le_number = cpu_to_le32(le32_to_cpup(le_number) + add); *le_number = cpu_to_le32(le32_to_cpup(le_number) + add);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment