]> xenbits.xensource.com Git - xen.git/commit
usbif.h: replace PAGE_SIZE with USBIF_RING_SIZE
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 19 Oct 2016 19:22:34 +0000 (12:22 -0700)
committerWei Liu <wei.liu2@citrix.com>
Fri, 21 Oct 2016 08:57:55 +0000 (09:57 +0100)
commit04535bee06858fd949c743cfecc4d7b96333a16c
tree0abce4deea9bccdab7a43212e7486602e51af6fd
parent31ba5a9b92ac00c135e46f54052336945b77f159
usbif.h: replace PAGE_SIZE with USBIF_RING_SIZE

Do not reference PAGE_SIZE directly: it could be undefined, or it could
have different values in the frontend or in the backend.

Define USBIF_RING_SIZE as 4096, assuming all users of usbif.h have 4K
page granularity. Replace PAGE_SIZE with USBIF_RING_SIZE.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/include/public/io/usbif.h