#include <linux/usb/ch9.h>
struct intf_priv;
-struct intf_hdl;
-
-struct intf_hdl {
- struct adapter *padapter;
- struct dvobj_priv *pintf_dev;
-};
int __must_check rtw_read8(struct adapter *adapter, u32 addr, u8 *data);
int __must_check rtw_read16(struct adapter *adapter, u32 addr, u16 *data);
{
struct adapter *padapter = NULL;
struct net_device *pnetdev = NULL;
- struct intf_hdl *pintf;
int ret;
padapter = vzalloc(sizeof(*padapter));
padapter->intf_start = &usb_intf_start;
padapter->intf_stop = &usb_intf_stop;
- /* step init_io_priv */
- pintf = &padapter->intf;
- pintf->padapter = padapter;
- pintf->pintf_dev = adapter_to_dvobj(padapter);
-
/* step read_chip_version */
rtl8188e_read_chip_version(padapter);