diff options
| author | Greg Hackmann <ghackmann@google.com> | 2013-10-29 12:43:07 -0700 |
|---|---|---|
| committer | Greg Hackmann <ghackmann@google.com> | 2013-10-29 12:43:07 -0700 |
| commit | cacc36f18cda9e2894704ace9dbfb15e6045b134 (patch) | |
| tree | c21e1eea5f6c4a905bffe54efd127bd1e5cf53d7 /drivers/video/adf/adf_fops.h | |
| parent | a402f70ff3c94edb73b9f5670b5a55a27b1f1f00 (diff) | |
| parent | ac4ddb027996b6bd023b1659c96961c708f73c02 (diff) | |
| download | olio-linux-3.10-cacc36f18cda9e2894704ace9dbfb15e6045b134.tar.xz olio-linux-3.10-cacc36f18cda9e2894704ace9dbfb15e6045b134.zip | |
Merge branch 'android-3.10-adf' into android-3.10
Diffstat (limited to 'drivers/video/adf/adf_fops.h')
| -rw-r--r-- | drivers/video/adf/adf_fops.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/video/adf/adf_fops.h b/drivers/video/adf/adf_fops.h new file mode 100644 index 00000000000..90a3a74796d --- /dev/null +++ b/drivers/video/adf/adf_fops.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2013 Google, Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __VIDEO_ADF_ADF_FOPS_H +#define __VIDEO_ADF_ADF_FOPS_H + +#include <linux/bitmap.h> +#include <linux/fs.h> + +extern const struct file_operations adf_fops; + +struct adf_file { + struct list_head head; + struct adf_obj *obj; + + DECLARE_BITMAP(event_subscriptions, ADF_EVENT_TYPE_MAX); + u8 event_buf[4096]; + int event_head; + int event_tail; + wait_queue_head_t event_wait; +}; + +void adf_file_queue_event(struct adf_file *file, struct adf_event *event); +long adf_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg); + +#endif /* __VIDEO_ADF_ADF_FOPS_H */ |