summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-04-14 16:20:50 +0200
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 13:47:56 +0300
commit8da61f99e2f32d0cdd079bad8a144883269ba0f9 (patch)
tree35f4aaa2ea01135954c025011595f1506b535c4a /include
parent2148b5f3ec29899660651c7d028fe6da5ce28130 (diff)
downloadqemu-8da61f99e2f32d0cdd079bad8a144883269ba0f9.tar.gz
qemu-8da61f99e2f32d0cdd079bad8a144883269ba0f9.tar.bz2
qemu-8da61f99e2f32d0cdd079bad8a144883269ba0f9.zip
qemu-cvs-alsa_bitfield
Implements TYPE_INTBITFIELD partially. (required for ALSA support) Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Ulrich Hecht <uli@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/exec/user/thunk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h
index 87025c3b0..6c35e6485 100644
--- a/include/exec/user/thunk.h
+++ b/include/exec/user/thunk.h
@@ -38,6 +38,7 @@ typedef enum argtype {
TYPE_ARRAY,
TYPE_STRUCT,
TYPE_OLDDEVT,
+ TYPE_INTBITFIELD,
} argtype;
#define MK_PTR(type) TYPE_PTR, type
@@ -91,6 +92,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
case TYPE_SHORT:
return 2;
case TYPE_INT:
+ case TYPE_INTBITFIELD:
return 4;
case TYPE_LONGLONG:
case TYPE_ULONGLONG:
@@ -153,6 +155,7 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host)
case TYPE_SHORT:
return 2;
case TYPE_INT:
+ case TYPE_INTBITFIELD:
return 4;
case TYPE_LONGLONG:
case TYPE_ULONGLONG: