• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2017 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #ifndef _SDIO_OPS_XP_H_
16 #define _SDIO_OPS_XP_H_
17 
18 #include <drv_conf.h>
19 #include <osdep_service.h>
20 #include <drv_types.h>
21 #include <osdep_intf.h>
22 
23 
24 #ifdef PLATFORM_OS_XP
25 
26 
27 extern u8 sdbus_cmd52r_xp(struct intf_priv *pintfpriv, u32 addr);
28 
29 
30 extern void sdbus_cmd52w_xp(struct intf_priv *pintfpriv, u32 addr, u8 val8);
31 
32 
33 uint sdbus_read_blocks_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
34 
35 extern uint sdbus_read_bytes_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
36 
37 
38 extern uint sdbus_write_blocks_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf, u8 async);
39 
40 extern uint sdbus_write_bytes_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf);
41 extern u8 sdbus_func1cmd52r_xp(struct intf_priv *pintfpriv, u32 addr);
42 extern void sdbus_func1cmd52w_xp(struct intf_priv *pintfpriv, u32 addr, u8 val8);
43 extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata);
44 extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata);
45 extern void sdio_read_int(_adapter *padapter, u32 addr, u8 sz, void *pdata);
46 
47 #endif
48 
49 #endif
50