grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / usb / pciusbhc / ohci / cmd_protos.h
blob6ecdf1f99143ed89d9a14baf99c60fc2960ffe40
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 CMD_PROTOS_H
8 #define CMD_PROTOS_H
10 #include "dev.h"
12 struct Unit *Open_Unit(struct IOUsbHWReq *ioreq, LONG unitnr,
13 struct PCIDevice *base);
14 void Close_Unit(struct PCIDevice *base, struct PCIUnit *unit,
15 struct IOUsbHWReq *ioreq);
17 void DelayMS(ULONG milli, struct PCIUnit *unit);
18 void CheckSpecialCtrlTransfers(struct PCIController *hc,
19 struct IOUsbHWReq *ioreq);
21 WORD cmdReset(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
22 struct PCIDevice *base);
23 WORD cmdUsbReset(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
24 struct PCIDevice *base);
25 WORD cmdUsbResume(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
26 struct PCIDevice *base);
27 WORD cmdUsbSuspend(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
28 struct PCIDevice *base);
29 WORD cmdUsbOper(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
30 struct PCIDevice *base);
32 WORD cmdQueryDevice(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
33 struct PCIDevice *base);
35 WORD cmdXFer(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
36 struct PCIDevice *base);
38 WORD cmdFlush(struct IOUsbHWReq *ioreq, struct PCIUnit *unit,
39 struct PCIDevice *base);
41 WORD cmdNSDeviceQuery(struct IOStdReq *ioreq, struct PCIUnit *unit,
42 struct PCIDevice *base);
44 BOOL cmdAbortIO(struct IOUsbHWReq *ioreq, struct PCIDevice *base);
46 void TermIO(struct IOUsbHWReq *ioreq, struct PCIDevice *base);
48 AROS_INTP(NakTimeoutInt);
50 #endif /* CMD_PROTOS_H */