grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / usb / pciusbhc / ohci / buffer_protos.h
bloba6a1ea02ae00697a343f7dab76fb17da2def1e92
1 /*
2 Copyright © 2002-2009, Chris Hodges. All rights reserved.
3 Copyright © 2009-2012, The AROS Development Team. All rights reserved.
4 $Id$
5 */
7 #ifndef BUFFER_PROTOS_H
8 #define BUFFER_PROTOS_H
10 #include <exec/types.h>
12 #if (__WORDSIZE == 64)
14 APTR usbGetBuffer(APTR data, ULONG len, UWORD dir);
15 void usbReleaseBuffer(APTR buffer, APTR data, ULONG len, UWORD dir);
17 #else
19 /* On 32-bit systems we don't need mirroring */
21 #define usbGetBuffer(data, len, dir) ({ (void)(len); (void)(dir); (data);})
22 #define usbReleaseBuffer(buffer, data, len, dir) \
23 do { (void)(buffer); (void)(data); (void)(len); (void)(dir); } while (0)
25 #endif
27 #endif /* BUFFER_PROTOS_H */