]> xenbits.xensource.com Git - xen.git/commit
pvusb: don't rely on linux kernel macros for the interface
authorJuergen Gross <jgross@suse.com>
Thu, 18 Jun 2015 12:52:32 +0000 (14:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Jun 2015 12:52:32 +0000 (14:52 +0200)
commite320f14c6ad5e423c5fae088e69a72c42c9ad678
tree71c3d34b3db6ebd818c874cd95f96f59291bedcf
parentd962aa44e4128ea677ce8407fc2483d94f007d91
pvusb: don't rely on linux kernel macros for the interface

The interface description of pvUSB lacks some access macros as using
linux kernel macros is assumed to work well. This solution is rather
unfriendly for pvusb implementations being outside the linux kernel.
Additionally things will break quite unpleasent in case the linux
kernel implementation is changed.

To avoid these problems define own macros for accessing bitfields of
the interface and for values of several structure members.

While working on the file add some more comments, especially for the
xenstore interface.

Signed-off-by: Juergen Gross <jgross@suse.com>
xen/include/public/io/usbif.h