Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
[linux-2.6.git] / drivers / staging / rts5139 / rts51x_fop.h
blobeb45acf50d1a7e74911e03486b184fce783698e4
1 /* Driver for Realtek RTS51xx USB card reader
3 * Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2, or (at your option) any
8 * later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, see <http://www.gnu.org/licenses/>.
18 * Author:
19 * wwang (wei_wang@realsil.com.cn)
20 * No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China
21 * Maintainer:
22 * Edwin Rong (edwin_rong@realsil.com.cn)
23 * No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China
26 #ifndef __RTS51X_FOP_H
27 #define __RTS51X_FOP_H
29 #include "rts51x.h"
31 #ifdef SUPPORT_FILE_OP
33 #include <linux/fs.h>
34 #include <linux/types.h>
36 struct sd_direct_cmnd {
37 u8 cmnd[12];
38 void *buf;
39 int buf_len;
42 struct sd_rsp {
43 void *rsp;
44 int rsp_len;
47 int rts51x_open(struct inode *inode, struct file *filp);
48 int rts51x_release(struct inode *inode, struct file *filp);
49 ssize_t rts51x_read(struct file *filp, char __user *buf, size_t count,
50 loff_t *f_pos);
51 ssize_t rts51x_write(struct file *filp, const char __user *buf, size_t count,
52 loff_t *f_pos);
53 long rts51x_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
55 #endif
57 #endif /* __RTS51X_FOP_H */