delint
[AROS.git] / rom / usb / pciusb / hccommon.h
blobd2d97eedd4abad044b3b9e3fac808a817690405c
1 #ifndef HCCOMMON_H
2 #define HCCOMMON_H
4 /*
5 *----------------------------------------------------------------------------
6 * Common includes for USB Host Controllers
7 *----------------------------------------------------------------------------
8 * By Chris Hodges <chrisly@platon42.de>
12 /* Macros to swap bit defines, constants & variables */
13 #define SWB(x) ((x+16) & 31)
14 #define SWC(x) ((x>>16)|((x & 0xffff)<<16))
15 #define SWW(x) ((x>>16)|(x<<16))
16 #define L2U(x) (x<<16)
17 #define U2L(x) (x>>16)
19 #define PID_IN 0x69
20 #define PID_OUT 0xe1
21 #define PID_SETUP 0x2d
23 #endif /* HCCOMMON_H */