diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-01-02 12:44:35 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-01-02 12:44:35 +0100 |
| commit | a184d985bf43d3fe6eeba971bc6b32f79ea38b37 (patch) | |
| tree | 6f6e56e090777cc149bc1ab39e5987cc2b03e867 /kernel-headers/linux/matv.h | |
initial releasecm-13.0
Diffstat (limited to 'kernel-headers/linux/matv.h')
| -rw-r--r-- | kernel-headers/linux/matv.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/kernel-headers/linux/matv.h b/kernel-headers/linux/matv.h new file mode 100644 index 0000000..dcae5a7 --- /dev/null +++ b/kernel-headers/linux/matv.h @@ -0,0 +1,58 @@ +#ifndef __MATV_H__ +#define __MATV_H__ + +#include <linux/init.h> +#include <linux/module.h> +#include <linux/kernel.h> +#include <linux/types.h> +#include <linux/device.h> +#include <linux/kdev_t.h> +#include <linux/fs.h> +#include <linux/cdev.h> +#include <linux/platform_device.h> +#include <linux/dma-mapping.h> +#include <linux/mm_types.h> +#include <linux/mm.h> +#include <linux/jiffies.h> +#include <linux/sched.h> +#include <asm/uaccess.h> +#include <linux/vmalloc.h> +#include <linux/interrupt.h> +#include <mach/irqs.h> +#include <linux/wait.h> +#include <linux/spinlock.h> +#include <linux/delay.h> +#include <linux/semaphore.h> +#include <linux/platform_device.h> +#include <linux/i2c.h> +#include <linux/slab.h> +#include <linux/xlog.h> + +#include "cust_matv.h" + + + +#define MATV_DEVNAME "MATV" +#define MATV_IOC_MAGIC 'a' + +//below is control message +#define TEST_MATV_PRINT _IO(MATV_IOC_MAGIC, 0x00) +#define MATV_READ _IOW(MATV_IOC_MAGIC, 0x01, unsigned int) +#define MATV_WRITE _IOW(MATV_IOC_MAGIC, 0x02, unsigned int) +#define MATV_SET_PWR _IOW(MATV_IOC_MAGIC, 0x03, unsigned int) +#define MATV_SET_RST _IOW(MATV_IOC_MAGIC, 0x04, unsigned int) +#define MATV_SET_STRAP _IOW(MATV_IOC_MAGIC, 0x05, unsigned int) +#define MATV_SLEEP _IOW(MATV_IOC_MAGIC, 0x06, unsigned int) +#define MATV_SET_TP_MODE _IOW(MATV_IOC_MAGIC, 0x07, unsigned int) + +typedef struct matv_i2s_info +{ + int status; + int mode; + int rate; +} matv_i2s_info_t; + +#define MATV_QUERY_I2S_INFO _IOW(MATV_IOC_MAGIC, 0x08, struct matv_i2s_info*) + + +#endif //__MATV_H__ |
