Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / drivers / staging / csr / sdio_stubs.c
blob839fae01d96c2d065066ee7447f124502917d9b5
1 /*
2 * Stubs for some of the bottom edge functions.
4 * These stubs are optional functions in the bottom edge (SDIO driver
5 * interface) API that not all platforms or SDIO drivers may support.
7 * They're declared as weak symbols so they can be overridden by
8 * simply providing a non-weak declaration.
10 * Copyright (C) 2007-2008 by Cambridge Silicon Radio Ltd.
12 * Refer to LICENSE.txt included with this source code for details on
13 * the license terms.
16 #include "csr_wifi_hip_unifi.h"
18 void __attribute__((weak)) CsrSdioFunctionIdle(CsrSdioFunction *function)
22 void __attribute__((weak)) CsrSdioFunctionActive(CsrSdioFunction *function)
26 CsrResult __attribute__((weak)) CsrSdioPowerOn(CsrSdioFunction *function)
28 return CSR_RESULT_SUCCESS;
31 void __attribute__((weak)) CsrSdioPowerOff(CsrSdioFunction *function)
35 CsrResult __attribute__((weak)) CsrSdioHardReset(CsrSdioFunction *function)
37 return CSR_SDIO_RESULT_NOT_RESET;
40 CsrResult __attribute__((weak)) CsrSdioBlockSizeSet(CsrSdioFunction *function,
41 u16 blockSize)
43 return CSR_RESULT_SUCCESS;
46 CsrResult __attribute__((weak)) CsrSdioSuspend(CsrSdioFunction *function)
48 return CSR_RESULT_SUCCESS;
51 CsrResult __attribute__((weak)) CsrSdioResume(CsrSdioFunction *function)
53 return CSR_RESULT_SUCCESS;
56 int __attribute__((weak)) csr_sdio_linux_install_irq(CsrSdioFunction *function)
58 return 0;
61 int __attribute__((weak)) csr_sdio_linux_remove_irq(CsrSdioFunction *function)
63 return 0;
66 void __attribute__((weak)) CsrSdioInsertedAcknowledge(CsrSdioFunction *function, CsrResult result)
70 void __attribute__((weak)) CsrSdioRemovedAcknowledge(CsrSdioFunction *function)
74 void __attribute__((weak)) CsrSdioSuspendAcknowledge(CsrSdioFunction *function, CsrResult result)
78 void __attribute__((weak)) CsrSdioResumeAcknowledge(CsrSdioFunction *function, CsrResult result)