blob: b47001f09b197c7132cd190af5703ed2a595c09a [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __SDIO_SMEM_H
14#define __SDIO_SMEM_H
15
16#include <linux/platform_device.h>
17#include <linux/types.h>
18
19#define SDIO_SMEM_EVENT_READ_DONE 0
20#define SDIO_SMEM_EVENT_READ_ERR 1
21
22int sdio_smem_register_client(void);
23int sdio_smem_unregister_client(void);
24
25struct sdio_smem_client {
26 void *buf;
27 int size;
28 struct platform_device plat_dev;
29 int (*cb_func)(int event);
30};
31
32#endif /* __SDIO_SMEM_H */