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 CsrSdioFunctionIdle(CsrSdioFunction * function)18void __attribute__((weak)) CsrSdioFunctionIdle(CsrSdioFunction *function) 19 { 20 } 21 CsrSdioFunctionActive(CsrSdioFunction * function)22void __attribute__((weak)) CsrSdioFunctionActive(CsrSdioFunction *function) 23 { 24 } 25 CsrSdioPowerOn(CsrSdioFunction * function)26CsrResult __attribute__((weak)) CsrSdioPowerOn(CsrSdioFunction *function) 27 { 28 return CSR_RESULT_SUCCESS; 29 } 30 CsrSdioPowerOff(CsrSdioFunction * function)31void __attribute__((weak)) CsrSdioPowerOff(CsrSdioFunction *function) 32 { 33 } 34 CsrSdioHardReset(CsrSdioFunction * function)35CsrResult __attribute__((weak)) CsrSdioHardReset(CsrSdioFunction *function) 36 { 37 return CSR_SDIO_RESULT_NOT_RESET; 38 } 39 CsrSdioBlockSizeSet(CsrSdioFunction * function,u16 blockSize)40CsrResult __attribute__((weak)) CsrSdioBlockSizeSet(CsrSdioFunction *function, 41 u16 blockSize) 42 { 43 return CSR_RESULT_SUCCESS; 44 } 45 CsrSdioSuspend(CsrSdioFunction * function)46CsrResult __attribute__((weak)) CsrSdioSuspend(CsrSdioFunction *function) 47 { 48 return CSR_RESULT_SUCCESS; 49 } 50 CsrSdioResume(CsrSdioFunction * function)51CsrResult __attribute__((weak)) CsrSdioResume(CsrSdioFunction *function) 52 { 53 return CSR_RESULT_SUCCESS; 54 } 55 csr_sdio_linux_install_irq(CsrSdioFunction * function)56int __attribute__((weak)) csr_sdio_linux_install_irq(CsrSdioFunction *function) 57 { 58 return 0; 59 } 60 csr_sdio_linux_remove_irq(CsrSdioFunction * function)61int __attribute__((weak)) csr_sdio_linux_remove_irq(CsrSdioFunction *function) 62 { 63 return 0; 64 } 65 CsrSdioInsertedAcknowledge(CsrSdioFunction * function,CsrResult result)66void __attribute__((weak)) CsrSdioInsertedAcknowledge(CsrSdioFunction *function, CsrResult result) 67 { 68 } 69 CsrSdioRemovedAcknowledge(CsrSdioFunction * function)70void __attribute__((weak)) CsrSdioRemovedAcknowledge(CsrSdioFunction *function) 71 { 72 } 73 CsrSdioSuspendAcknowledge(CsrSdioFunction * function,CsrResult result)74void __attribute__((weak)) CsrSdioSuspendAcknowledge(CsrSdioFunction *function, CsrResult result) 75 { 76 } 77 CsrSdioResumeAcknowledge(CsrSdioFunction * function,CsrResult result)78void __attribute__((weak)) CsrSdioResumeAcknowledge(CsrSdioFunction *function, CsrResult result) 79 { 80 } 81 82 83