io_ops->_write_mem(adapter, addr, cnt, pmem);
}
-void _rtw_read_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+int _rtw_read_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
struct recv_buf *rbuf)
{
struct _io_ops *io_ops = &adapter->io_ops;
("rtw_read_port:bDriverStopped(%d) OR "
"bSurpriseRemoved(%d)", adapter->bDriverStopped,
adapter->bSurpriseRemoved));
- return;
+ return _FAIL;
}
- io_ops->_read_port(adapter, addr, cnt, rbuf);
+ return io_ops->_read_port(adapter, addr, cnt, rbuf);
}
void _rtw_read_port23a_cancel(struct rtw_adapter *adapter)
_read_port_cancel(adapter);
}
-u32 _rtw_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+int _rtw_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
struct xmit_buf *xbuf)
{
struct _io_ops *io_ops = &adapter->io_ops;
- u32 ret = _SUCCESS;
+ int ret = _SUCCESS;
ret = io_ops->_write_port(adapter, addr, cnt, xbuf);
int status;
struct _io_ops *io_ops = &Adapter->io_ops;
struct recv_priv *precvpriv = &Adapter->recvpriv;
- u32 (*_read_port)(struct rtw_adapter *padapter, u32 addr, u32 cnt,
+ int (*_read_port)(struct rtw_adapter *padapter, u32 addr, u32 cnt,
struct recv_buf *rbuf);
- u32 (*_read_interrupt)(struct rtw_adapter *padapter, u32 addr);
- struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
+ int (*_read_interrupt)(struct rtw_adapter *padapter, u32 addr);
+ struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
_read_port = io_ops->_read_port;
precvbuf = (struct recv_buf *)precvpriv->precv_buf;
for (i = 0; i < NR_RECVBUFF; i++) {
if (_read_port(Adapter, precvpriv->ff_hwaddr, 0, precvbuf) ==
- false) {
+ _FAIL) {
RT_TRACE(_module_hci_hal_init_c_, _drv_err_,
("usb_rx_init: usb_read_port error\n"));
status = _FAIL;
precvbuf++;
}
_read_interrupt = io_ops->_read_interrupt;
- if (_read_interrupt(Adapter, RECV_INT_IN_ADDR) == false) {
+ if (_read_interrupt(Adapter, RECV_INT_IN_ADDR) == _FAIL) {
RT_TRACE(_module_hci_hal_init_c_, _drv_err_,
("usb_rx_init: usb_read_interrupt error\n"));
status = _FAIL;
}
}
-static u32 usb_read_interrupt(struct rtw_adapter *adapter, u32 addr)
+static int usb_read_interrupt(struct rtw_adapter *adapter, u32 addr)
{
int err;
unsigned int pipe;
- u32 ret = _SUCCESS;
+ int ret = _SUCCESS;
struct dvobj_priv *pdvobj = adapter_to_dvobj(adapter);
struct recv_priv *precvpriv = &adapter->recvpriv;
struct usb_device *pusbd = pdvobj->pusbdev;
}
}
-static u32 usb_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+static int usb_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
struct recv_buf *precvbuf)
{
int err;
unsigned int pipe;
unsigned long tmpaddr = 0;
unsigned long alignment = 0;
- u32 ret = _SUCCESS;
+ int ret = _SUCCESS;
struct urb *purb = NULL;
struct dvobj_priv *pdvobj = adapter_to_dvobj(adapter);
struct recv_priv *precvpriv = &adapter->recvpriv;
int (*_write8)(struct rtw_adapter *adapter, u32 addr, u8 val);
int (*_write16)(struct rtw_adapter *adapter, u32 addr, u16 val);
int (*_write32)(struct rtw_adapter *adapter, u32 addr, u32 val);
- int (*_writeN)(struct rtw_adapter *adapter, u32 addr, u32 length, u8 *pdata);
+ int (*_writeN)(struct rtw_adapter *adapter, u32 addr, u32 length,
+ u8 *pdata);
- void (*_read_mem)(struct rtw_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
- void (*_write_mem)(struct rtw_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
+ void (*_read_mem)(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+ u8 *pmem);
+ void (*_write_mem)(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+ u8 *pmem);
- u32 (*_read_interrupt)(struct rtw_adapter *adapter, u32 addr);
+ int (*_read_interrupt)(struct rtw_adapter *adapter, u32 addr);
- u32 (*_read_port)(struct rtw_adapter *adapter, u32 addr, u32 cnt, struct recv_buf *rbuf);
- u32 (*_write_port)(struct rtw_adapter *adapter, u32 addr, u32 cnt, struct xmit_buf *pmem);
+ int (*_read_port)(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+ struct recv_buf *rbuf);
+ int (*_write_port)(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+ struct xmit_buf *pmem);
void (*_read_port_cancel)(struct rtw_adapter *adapter);
void (*_write_port_cancel)(struct rtw_adapter *adapter);
u16 _rtw_read1623a(struct rtw_adapter *adapter, u32 addr);
u32 _rtw_read3223a(struct rtw_adapter *adapter, u32 addr);
void _rtw_read_mem23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-void _rtw_read_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, struct recv_buf *rbuf);
+int _rtw_read_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, struct recv_buf *rbuf);
void _rtw_read_port23a_cancel(struct rtw_adapter *adapter);
int _rtw_write823a(struct rtw_adapter *adapter, u32 addr, u8 val);
int _rtw_writeN23a(struct rtw_adapter *adapter, u32 addr, u32 length, u8 *pdata);
void _rtw_write_mem23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-u32 _rtw_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, struct xmit_buf *pmem);
+int _rtw_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt, struct xmit_buf *pmem);
void _rtw_write_port23a_cancel(struct rtw_adapter *adapter);
#ifdef DBG_IO
void usb_read_port_cancel23a(struct rtw_adapter *adapter);
-u32 usb_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
+int usb_write_port23a(struct rtw_adapter *adapter, u32 addr, u32 cnt,
struct xmit_buf *wmem);
void usb_write_port23a_cancel(struct rtw_adapter *adapter);
tasklet_hi_schedule(&pxmitpriv->xmit_tasklet);
}
-u32 usb_write_port23a(struct rtw_adapter *padapter, u32 addr, u32 cnt,
+int usb_write_port23a(struct rtw_adapter *padapter, u32 addr, u32 cnt,
struct xmit_buf *pxmitbuf)
{
struct urb *purb = NULL;
unsigned long irqL;
unsigned int pipe;
int status;
- u32 ret = _FAIL;
+ int ret = _FAIL;
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("+usb_write_port23a\n"));