12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef _VM_INCLUDE__
- #define _VM_INCLUDE__
- #include <linux/interrupt.h>
- #include <mach/am_regs.h>
- #include <linux/amports/canvas.h>
- #include <linux/fb.h>
- #include <linux/list.h>
- #include <asm/uaccess.h>
- #include <linux/sysfs.h>
- #include <linux/spinlock.h>
- #include <linux/kthread.h>
- /**************************************************************
- ** **
- ** macro define **
- ** **
- ***************************************************************/
- #define VM_IOC_MAGIC 'P'
- #define VM_IOC_2OSD0 _IOW(VM_IOC_MAGIC, 0x00, unsigned int)
- #define VM_IOC_ENABLE_PP _IOW(VM_IOC_MAGIC,0X01,unsigned int)
- #define VM_IOC_CONFIG_FRAME _IOW(VM_IOC_MAGIC,0X02,unsigned int)
- typedef struct display_frame_s{
- int frame_top;
- int frame_left;
- int frame_width;
- int frame_height;
- int content_top;
- int content_left;
- int content_width;
- int content_height;
- }display_frame_t;
- extern int get_vm_status(void);
- extern void set_vm_status(int flag);
- /* for vm device op. */
- extern int init_vm_device(void);
- extern int uninit_vm_device(void);
- /* for vm device class op. */
- extern struct class* init_vm_cls(void);
- /* for thread of vm. */
- extern int start_vpp_task(void);
- extern void stop_vpp_task(void);
- /* for vm private member. */
- extern void set_vm_buf_info(char* start,unsigned int size);
- extern void get_vm_buf_info(const char** start,unsigned int* size,char** vaddr) ;
- /* vm buffer op. */
- extern int vm_buffer_init(void);
- extern void vm_local_init(void) ;
- static DEFINE_MUTEX(vm_mutex);
- #endif /* _VM_INCLUDE__ */
|