aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/csr/sdioemb/csr_sdio_lib.h
blob: 15c70f6e716c5833b56f5050ce850c028b3e77a0 (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
/*
 * Synergy compatible API -- SDIO utility library.
 *
 * Copyright (C) 2010 Cambridge Silicon Radio Ltd.
 *
 * Refer to LICENSE.txt included with this source code for details on
 * the license terms.
 */
#ifndef CSR_SDIO_LIB_H__
#define CSR_SDIO_LIB_H__

#include <csr_sdio.h>

#ifdef __cplusplus
extern "C" {
#endif

CsrResult CsrSdioFunctionReenable(CsrSdioFunction *function);

typedef int CsrStatus; /* platform specific */
#define CSR_STATUS_FAILURE(status) ((status) < 0) /* platform specific */

CsrResult CsrSdioStatusToResult(CsrStatus status);
CsrStatus CsrSdioResultToStatus(CsrResult result);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* #ifndef CSR_SDIO_LIB_H__ */