Files
dusklight/libs/revolution/src/usb/__usb.h
T
Luke Street 9649319ec4 Reorganize library code into libs/ (#3119)
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}

* Update configure.py and project.py for new libs structure

* Refactor `#include <dolphin/x.h>` -> `<x.h>`

* Remove `__REVOLUTION_SDK__` forwards from dolphin

* Fix dolphin/ references in revolution

* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`

* Always build TRK against dolphin headers

* Resolve revolution SDK header resolution issues
2026-03-01 14:35:36 -08:00

43 lines
751 B
C

#ifndef _REVOLUTION_USB_PRIVATE_H_
#define _REVOLUTION_USB_PRIVATE_H_
#include <revolution/usb.h>
#ifdef __cplusplus
extern "C" {
#endif
#define ROUNDUP(sz) (((u32)(sz) + 32 - 1) & ~(u32)(32 - 1))
typedef struct {
char *data;
u16 wLength;
} IntBlkCtrlReq;
typedef struct iusb_Ctxt {
USBCallbackFunc cb;
#if SDK_AUG2010
USBIsoCallbackFunc icb;
#endif
void *cbArg;
#if SDK_AUG2010
void *xfer;
#endif
void *spare;
void *clean[8];
u32 nclean;
union {
char path[ROUNDUP(64)];
char des[ROUNDUP(sizeof(USB_DevDescr))];
char reqBuf[ROUNDUP(sizeof(IntBlkCtrlReq))];
} u __attribute__ ((aligned(32)));
} iusb_ctxt;
#ifdef __cplusplus
}
#endif
#endif /* _REVOLUTION_USB_PRIVATE_H_ */