Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes
[pandora-kernel.git] / drivers / staging / csr / sdio_stubs.c
1 /*
2  * Stubs for some of the bottom edge functions.
3  *
4  * These stubs are optional functions in the bottom edge (SDIO driver
5  * interface) API that not all platforms or SDIO drivers may support.
6  *
7  * They're declared as weak symbols so they can be overridden by
8  * simply providing a non-weak declaration.
9  *
10  * Copyright (C) 2007-2008 by Cambridge Silicon Radio Ltd.
11  *
12  * Refer to LICENSE.txt included with this source code for details on
13  * the license terms.
14  *
15  */
16 #include "csr_wifi_hip_unifi.h"
17
18 void __attribute__((weak)) CsrSdioFunctionIdle(CsrSdioFunction *function)
19 {
20 }
21
22 void __attribute__((weak)) CsrSdioFunctionActive(CsrSdioFunction *function)
23 {
24 }
25
26 CsrResult __attribute__((weak)) CsrSdioPowerOn(CsrSdioFunction *function)
27 {
28     return CSR_RESULT_SUCCESS;
29 }
30
31 void __attribute__((weak)) CsrSdioPowerOff(CsrSdioFunction *function)
32 {
33 }
34
35 CsrResult __attribute__((weak)) CsrSdioHardReset(CsrSdioFunction *function)
36 {
37     return CSR_SDIO_RESULT_NOT_RESET;
38 }
39
40 CsrResult __attribute__((weak)) CsrSdioBlockSizeSet(CsrSdioFunction *function,
41                                                    u16 blockSize)
42 {
43     return CSR_RESULT_SUCCESS;
44 }
45
46 CsrResult __attribute__((weak)) CsrSdioSuspend(CsrSdioFunction *function)
47 {
48     return CSR_RESULT_SUCCESS;
49 }
50
51 CsrResult __attribute__((weak)) CsrSdioResume(CsrSdioFunction *function)
52 {
53     return CSR_RESULT_SUCCESS;
54 }
55
56 int __attribute__((weak)) csr_sdio_linux_install_irq(CsrSdioFunction *function)
57 {
58     return 0;
59 }
60
61 int __attribute__((weak)) csr_sdio_linux_remove_irq(CsrSdioFunction *function)
62 {
63     return 0;
64 }
65
66 void __attribute__((weak)) CsrSdioInsertedAcknowledge(CsrSdioFunction *function, CsrResult result)
67 {
68 }
69
70 void __attribute__((weak)) CsrSdioRemovedAcknowledge(CsrSdioFunction *function)
71 {
72 }
73
74 void __attribute__((weak)) CsrSdioSuspendAcknowledge(CsrSdioFunction *function, CsrResult result)
75 {
76 }
77
78 void __attribute__((weak)) CsrSdioResumeAcknowledge(CsrSdioFunction *function, CsrResult result)
79 {
80 }
81
82