PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
usbmload.h
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
14typedef 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
34typedef USBDEV_t *(*sceUsbmlPopDevinfo)(void);
35
36typedef void (*sceUsbmlLoadFunc)(sceUsbmlPopDevinfo pop_devinfo);
37
38extern int sceUsbmlDisable(void);
39extern int sceUsbmlEnable(void);
40extern int sceUsbmlActivateCategory(const char *category);
41extern int sceUsbmlInactivateCategory(const char *category);
42extern int sceUsbmlRegisterLoadFunc(sceUsbmlLoadFunc loadfunc);
43extern void sceUsbmlUnregisterLoadFunc(void);
44extern int sceUsbmlLoadConffile(const char *conffile);
45extern int sceUsbmlRegisterDevice(USBDEV_t *device);
46extern 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