diff options
author | Russell King <rmk@arm.linux.org.uk> | 2012-10-20 16:16:08 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2012-10-23 11:14:47 +0100 |
commit | 3550ca2f59ae1e5f1d5f33fdfa0b56aa06f9930e (patch) | |
tree | 74dc637f9c5e5b25b127ad3c65f3b1def7789bf4 /vmeta_lib.h | |
parent | 17b3a94e32c4b63099f7564cb9ce9d8a91174efa (diff) |
Add support for /dev/vmeta miscdevice
The kernel folk don't like the uio ioctl idea, so we can't use uio for
this driver. Instead, switch it to be a self-contained miscdevice.
This adds support to this library for the miscdevice interface.
Diffstat (limited to 'vmeta_lib.h')
-rw-r--r-- | vmeta_lib.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vmeta_lib.h b/vmeta_lib.h index 058d9c9..6226542 100644 --- a/vmeta_lib.h +++ b/vmeta_lib.h @@ -173,7 +173,13 @@ typedef sem_t lock_t; //--------------------------------------------------------------------------- typedef struct vdec_os_driver_cb_s { - int uiofd; // the uio file descriptor + int fd; // kernel file descriptor + int uio; // using uio driver + struct { + UNSG32 phys; + UNSG32 size; + } map[3]; + UNSG32 io_mem_phy_addr; // the physical addr of io register base void *io_mem_virt_addr; // the reg base addr that maped from kernel UNSG32 io_mem_size; // the size of io mem area |