summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/r8192E.h
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-02-06 22:53:26 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-09 11:50:17 -0800
commit3f9ab1ee8a44240e280f511a219ed101b9095697 (patch)
tree8f5aa7af278f93e243f0831703f7aaf0eadd4920 /drivers/staging/rtl8192e/r8192E.h
parent427bf120b67a098f0ab4ebb84ee238afcfc0c689 (diff)
downloadop-kernel-dev-3f9ab1ee8a44240e280f511a219ed101b9095697.zip
op-kernel-dev-3f9ab1ee8a44240e280f511a219ed101b9095697.tar.gz
staging: rtl8192e: Use private structure in IO functions
The current ieee80211 library does not pass net_device structures around. Switch code to use private data structure to get I/O addresses. Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e/r8192E.h')
-rw-r--r--drivers/staging/rtl8192e/r8192E.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/rtl8192e/r8192E.h b/drivers/staging/rtl8192e/r8192E.h
index 515f492..b2c44a7 100644
--- a/drivers/staging/rtl8192e/r8192E.h
+++ b/drivers/staging/rtl8192e/r8192E.h
@@ -1052,16 +1052,16 @@ typedef struct r8192_priv
bool init_firmware(struct net_device *dev);
short rtl8192_tx(struct net_device *dev, struct sk_buff* skb);
-u32 read_cam(struct net_device *dev, u8 addr);
-void write_cam(struct net_device *dev, u8 addr, u32 data);
-u8 read_nic_byte(struct net_device *dev, int x);
+u32 read_cam(struct r8192_priv *priv, u8 addr);
+void write_cam(struct r8192_priv *priv, u8 addr, u32 data);
+u8 read_nic_byte(struct r8192_priv *priv, int x);
u8 read_nic_byte_E(struct net_device *dev, int x);
-u32 read_nic_dword(struct net_device *dev, int x);
-u16 read_nic_word(struct net_device *dev, int x) ;
-void write_nic_byte(struct net_device *dev, int x,u8 y);
-void write_nic_byte_E(struct net_device *dev, int x,u8 y);
-void write_nic_word(struct net_device *dev, int x,u16 y);
-void write_nic_dword(struct net_device *dev, int x,u32 y);
+u32 read_nic_dword(struct r8192_priv *priv, int x);
+u16 read_nic_word(struct r8192_priv *priv, int x) ;
+void write_nic_byte(struct r8192_priv *priv, int x,u8 y);
+void write_nic_byte_E(struct net_device *priv, int x,u8 y);
+void write_nic_word(struct r8192_priv *priv, int x,u16 y);
+void write_nic_dword(struct r8192_priv *priv, int x,u32 y);
void rtl8192_halt_adapter(struct net_device *dev, bool reset);
void rtl8192_rx_enable(struct net_device *);
OpenPOWER on IntegriCloud