|
| 1 | +/* |
| 2 | +# _____ ___ ____ ___ ____ |
| 3 | +# ____| | ____| | | |____| |
| 4 | +# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. |
| 5 | +#----------------------------------------------------------------------- |
| 6 | +# Copyright ps2dev - http://www.ps2dev.org |
| 7 | +# Licenced under Academic Free License version 2.0 |
| 8 | +# Review ps2sdk README & LICENSE files for further details. |
| 9 | +*/ |
| 10 | + |
| 11 | +#ifndef _USBMLOAD_H |
| 12 | +#define _USBMLOAD_H |
| 13 | + |
| 14 | +typedef struct _USBDEV_t |
| 15 | +{ |
| 16 | + struct _USBDEV_t *forw; |
| 17 | + char *dispname; |
| 18 | + int vendor; |
| 19 | + int product; |
| 20 | + int release; |
| 21 | + int class_; |
| 22 | + int subclass; |
| 23 | + int protocol; |
| 24 | + char *category; |
| 25 | + char *path; |
| 26 | + char *argv[8]; |
| 27 | + int argc; |
| 28 | + char activate_flag; |
| 29 | + int modid; |
| 30 | + char modname[56]; |
| 31 | + int load_result; |
| 32 | +} USBDEV_t; |
| 33 | + |
| 34 | +typedef USBDEV_t *(*sceUsbmlPopDevinfo)(void); |
| 35 | + |
| 36 | +typedef void (*sceUsbmlLoadFunc)(sceUsbmlPopDevinfo pop_devinfo); |
| 37 | + |
| 38 | +extern int sceUsbmlDisable(void); |
| 39 | +extern int sceUsbmlEnable(void); |
| 40 | +extern int sceUsbmlActivateCategory(const char *category); |
| 41 | +extern int sceUsbmlInactivateCategory(const char *category); |
| 42 | +extern int sceUsbmlRegisterLoadFunc(sceUsbmlLoadFunc loadfunc); |
| 43 | +extern void sceUsbmlUnregisterLoadFunc(void); |
| 44 | +extern int sceUsbmlLoadConffile(const char *conffile); |
| 45 | +extern int sceUsbmlRegisterDevice(USBDEV_t *device); |
| 46 | +extern int sceUsbmlChangeThreadPriority(int prio1); |
| 47 | + |
| 48 | +#define usbmload_IMPORTS_start DECLARE_IMPORT_TABLE(usbmload, 1, 3) |
| 49 | +#define usbmload_IMPORTS_end END_IMPORT_TABLE |
| 50 | + |
| 51 | +#define I_sceUsbmlDisable DECLARE_IMPORT(4, sceUsbmlDisable) |
| 52 | +#define I_sceUsbmlEnable DECLARE_IMPORT(5, sceUsbmlEnable) |
| 53 | +#define I_sceUsbmlActivateCategory DECLARE_IMPORT(6, sceUsbmlActivateCategory) |
| 54 | +#define I_sceUsbmlInactivateCategory DECLARE_IMPORT(7, sceUsbmlInactivateCategory) |
| 55 | +#define I_sceUsbmlRegisterLoadFunc DECLARE_IMPORT(8, sceUsbmlRegisterLoadFunc) |
| 56 | +#define I_sceUsbmlUnregisterLoadFunc DECLARE_IMPORT(9, sceUsbmlUnregisterLoadFunc) |
| 57 | +#define I_sceUsbmlLoadConffile DECLARE_IMPORT(10, sceUsbmlLoadConffile) |
| 58 | +#define I_sceUsbmlRegisterDevice DECLARE_IMPORT(11, sceUsbmlRegisterDevice) |
| 59 | +#define I_sceUsbmlChangeThreadPriority DECLARE_IMPORT(12, sceUsbmlChangeThreadPriority) |
| 60 | + |
| 61 | +#endif |
0 commit comments