Remove typedef from struct.
Rename struct.
Rename uses.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
u32 Reserved6;
};//, *ptx_desc_cmd;
-typedef struct _rx_desc_819x_pci{
+struct rx_desc {
u16 Length:14;
u16 CRC32:1;
u16 ICV:1;
u32 BufferAddress;
-}rx_desc, *prx_desc;
+};//, *prx_desc;
typedef struct _rx_fwinfo_819x_pci{
void rtl8192_query_rxphystatus(
struct r8192_priv * priv,
struct rtllib_rx_stats * pstats,
- prx_desc pdesc,
+ struct rx_desc *pdesc,
prx_fwinfo pdrvinfo,
struct rtllib_rx_stats * precord_stats,
bool bpacket_match_bssid,
void rtl8192_TranslateRxSignalStuff(struct net_device *dev,
struct sk_buff *skb,
struct rtllib_rx_stats * pstats,
- prx_desc pdesc,
+ struct rx_desc *pdesc,
prx_fwinfo pdrvinfo)
{
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
}
bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats* stats,
- rx_desc *pdesc, struct sk_buff* skb)
+ struct rx_desc *pdesc, struct sk_buff* skb)
{
struct r8192_priv *priv = rtllib_priv(dev);
void rtl8192_tx_fill_cmd_desc(struct net_device* dev, struct tx_desc_cmd * entry,
cb_desc * cb_desc, struct sk_buff* skb);
bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats *stats,
- rx_desc *pdesc, struct sk_buff* skb);
+ struct rx_desc *pdesc, struct sk_buff* skb);
void rtl8192_halt_adapter(struct net_device *dev, bool reset);
void rtl8192_update_ratr_table(struct net_device* dev);
#endif
short rtl8192_alloc_rx_desc_ring(struct net_device *dev)
{
struct r8192_priv *priv = rtllib_priv(dev);
- rx_desc *entry = NULL;
+ struct rx_desc *entry = NULL;
int i, rx_queue_idx;
for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx ++){
for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx ++){
if (priv->rx_ring[rx_queue_idx]) {
- rx_desc *entry = NULL;
+ struct rx_desc *entry = NULL;
for (i = 0; i < priv->rxringcount; i++) {
entry = &priv->rx_ring[rx_queue_idx][i];
entry->OWN = 1;
stats.nic_type = NIC_8192E;
while (count--) {
- rx_desc *pdesc = &priv->rx_ring[rx_queue_idx][priv->rx_idx[rx_queue_idx]];
+ struct rx_desc *pdesc = &priv->rx_ring[rx_queue_idx][priv->rx_idx[rx_queue_idx]];
struct sk_buff *skb = priv->rx_buf[rx_queue_idx][priv->rx_idx[rx_queue_idx]];
if (pdesc->OWN) {
void (*link_change)(struct net_device* dev);
void (* tx_fill_descriptor)(struct net_device* dev, struct tx_desc *tx_desc, cb_desc * cb_desc, struct sk_buff *skb);
void (* tx_fill_cmd_descriptor)(struct net_device* dev, struct tx_desc_cmd * entry, cb_desc * cb_desc, struct sk_buff *skb);
- bool (* rx_query_status_descriptor)(struct net_device* dev, struct rtllib_rx_stats* stats, rx_desc *pdesc, struct sk_buff* skb);
- bool (* rx_command_packet_handler)(struct net_device *dev, struct sk_buff* skb, rx_desc *pdesc);
+ bool (* rx_query_status_descriptor)(struct net_device* dev, struct rtllib_rx_stats* stats, struct rx_desc *pdesc, struct sk_buff* skb);
+ bool (* rx_command_packet_handler)(struct net_device *dev, struct sk_buff* skb, struct rx_desc *pdesc);
void (* stop_adapter)(struct net_device *dev, bool reset);
void (* update_ratr_table)(struct net_device* dev);
void (* irq_enable)(struct net_device* dev);
void (*rf_close)(struct net_device *dev);
void (*rf_init)(struct net_device *dev);
- rx_desc *rx_ring[MAX_RX_QUEUE];
+ struct rx_desc *rx_ring[MAX_RX_QUEUE];
struct sk_buff *rx_buf[MAX_RX_QUEUE][MAX_RX_COUNT];
dma_addr_t rx_ring_dma[MAX_RX_QUEUE];
unsigned int rx_idx[MAX_RX_QUEUE];