Пример #1
0
int _rtw_writeN(_adapter *adapter, u32 addr ,u32 length , u8 *pdata)
{
	//struct	io_queue  	*pio_queue = (struct io_queue *)adapter->pio_queue;
	struct io_priv *pio_priv = &adapter->iopriv;
        struct	intf_hdl	*pintfhdl = (struct intf_hdl*)(&(pio_priv->intf));
	int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr,u32 length, u8 *pdata);
	int ret;
	_func_enter_;
	_writeN = pintfhdl->io_ops._writeN;

	ret = _writeN(pintfhdl, addr,length,pdata);
	_func_exit_;

	return RTW_STATUS_CODE(ret);
}
Пример #2
0
int _rtw_write8(_adapter *adapter, u32 addr, u8 val)
{
	//struct	io_queue  	*pio_queue = (struct io_queue *)adapter->pio_queue;
	struct io_priv *pio_priv = &adapter->iopriv;
	struct	intf_hdl		*pintfhdl = &(pio_priv->intf);
	int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val);
	int ret;
	_func_enter_;
	_write8 = pintfhdl->io_ops._write8;

	ret = _write8(pintfhdl, addr, val);
	_func_exit_;
	
	return RTW_STATUS_CODE(ret);
}
Пример #3
0
int _rtw_write32_async(_adapter *adapter, u32 addr, u32 val)
{
    //struct	io_queue  	*pio_queue = (struct io_queue *)adapter->pio_queue;
    struct io_priv *pio_priv = &adapter->iopriv;
    struct	intf_hdl		*pintfhdl = &(pio_priv->intf);
    int (*_write32_async)(struct intf_hdl *pintfhdl, u32 addr, u32 val);
    int ret;
    _func_enter_;
    _write32_async = pintfhdl->io_ops._write32_async;
    val = rtw_cpu_to_le32(val);
    ret = _write32_async(pintfhdl, addr, val);
    _func_exit_;

    return RTW_STATUS_CODE(ret);
}