summaryrefslogtreecommitdiff
path: root/network/wlan/WDI/PLATFORM/NDIS6/SDIO/N6Sdio_PlatformSdioWdf.h
blob: 25bfcbc7d1f92ec9edcf22c6e24c65ad98e1b9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef __INC_N6PLATFORMSDIOWDF_H
#define __INC_N6PLATFORMSDIOWDF_H

/*++
Copyright (c) Realtek Semiconductor Corp. All rights reserved.

Module Name:
	N6Sdio_PlatformSdioWdf.h
	
Abstract:
	Prototype of WdfSdio_XXX() implemented via WDF SDIO.
	These function shall be only use under Platform\.	
	    
Major Change History:
	When       Who               What
	---------- ---------------   -------------------------------
	2012-01-16 Roger            Create.
	
--*/

#if USE_WDF_SDIO

VOID
WdfSdio_CancelAsyncSDReq(
	IN	PADAPTER		pAdapter
	);


NTSTATUS
WdfSdio_Initialize(
	IN  PADAPTER		Adapter
	);

VOID
WdfSdio_Halt(
	IN  PADAPTER		Adapter
	);

VOID
WdfSdio_Disable(
	IN  PADAPTER		pAdapter
	);

VOID
WdfSdioTx_Enable(
	IN  PADAPTER		pAdapter
	);

NTSTATUS
WdfSdio_InitAsyncSDRequest(
	IN	PADAPTER		pAdapter
	);


VOID
WdfSdio_DeInitAsyncSDRequest(
	IN	PADAPTER		pAdapter
	);

BOOLEAN
WdfSdio_AsyncVendorRequestWrite(
	IN	PADAPTER				pAdapter,
	IN	u1Byte					bReq,				// 1 byte bReq field of setup token.
	IN	u2Byte					wValue, 			// 2 byte wValue field of setup token.
	IN	u2Byte					wIndex,				// 2 byte wIndex field of setup token. 
	IN	pu1Byte					pBuffer,			// Pointer to buffer to transfer in data-phase.
	IN	u4Byte					BufferLength		// # of bytes to OUT or maximal # of bytes to IN.
	);

VOID
WdfSdio_EnableAllTxQueues(
	IN	PADAPTER				pAdapter
	);

VOID
WdfSdio_DisableAllTxQueues(
	IN	PADAPTER				pAdapter
	);

#endif // end of USE_WDF_SDIO

#endif