Commit 3f8597f4 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6655: device.h use change __device_info to vnt_private

Coverting all functions to struct vnt_private in device.h and device_main.c
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 965d017f
...@@ -337,9 +337,10 @@ typedef struct __device_opt { ...@@ -337,9 +337,10 @@ typedef struct __device_opt {
u32 flags; u32 flags;
} OPTIONS, *POPTIONS; } OPTIONS, *POPTIONS;
typedef struct __device_info { /* TODO Convert all functions to struct vnt_private and remove typedef */
struct __device_info *next; typedef struct vnt_private {
struct __device_info *prev; struct vnt_private *next;
struct vnt_private *prev;
struct pci_dev *pcid; struct pci_dev *pcid;
...@@ -744,7 +745,8 @@ typedef struct __device_info { ...@@ -744,7 +745,8 @@ typedef struct __device_info {
bool bCommit; bool bCommit;
} DEVICE_INFO, *PSDevice; } DEVICE_INFO, *PSDevice;
static inline bool device_get_ip(PSDevice pInfo) { static inline bool device_get_ip(struct vnt_private *pInfo)
{
struct in_device *in_dev = (struct in_device *)pInfo->dev->ip_ptr; struct in_device *in_dev = (struct in_device *)pInfo->dev->ip_ptr;
struct in_ifaddr *ifa; struct in_ifaddr *ifa;
...@@ -770,7 +772,10 @@ static inline PDEVICE_TD_INFO alloc_td_info(void) ...@@ -770,7 +772,10 @@ static inline PDEVICE_TD_INFO alloc_td_info(void)
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
bool device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, unsigned int uNodeIndex); bool device_dma0_xmit(struct vnt_private *pDevice,
bool device_alloc_frag_buf(PSDevice pDevice, PSDeFragControlBlock pDeF); struct sk_buff *skb, unsigned int uNodeIndex);
int Config_FileOperation(PSDevice pDevice, bool fwrite, unsigned char *Parameter); bool device_alloc_frag_buf(struct vnt_private *pDevice,
PSDeFragControlBlock pDeF);
int Config_FileOperation(struct vnt_private *pDevice,
bool fwrite, unsigned char *Parameter);
#endif #endif
This diff is collapsed.
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