PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
modem.h File Reference
#include <types.h>
#include <irx.h>
+ Include dependency graph for modem.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sceModemOps
 

Macros

#define modem_IMPORTS_start   DECLARE_IMPORT_TABLE(modem, 1, 1)
 
#define modem_IMPORTS_end   END_IMPORT_TABLE
 
#define I_sceModemRegisterDevice   DECLARE_IMPORT(4, sceModemRegisterDevice)
 
#define I_sceModemUnregisterDevice   DECLARE_IMPORT(5, sceModemUnregisterDevice)
 

Typedefs

typedef struct sceModemOps sceModemOps_t
 

Functions

int sceModemRegisterDevice (sceModemOps_t *ops)
 
int sceModemUnregisterDevice (sceModemOps_t *ops)
 

Detailed Description

Modem interface. Intended for network stacks (PPP) to implement.

Definition in file modem.h.


Data Structure Documentation

◆ sceModemOps

struct sceModemOps

Definition at line 23 of file modem.h.

+ Collaboration diagram for sceModemOps:
Data Fields
struct sceModemOps * forw
struct sceModemOps * back
char * module_name
char * vendor_name
char * device_name
u8 bus_type
u8 bus_loc[31]
u16 prot_ver
u16 impl_ver
void * priv
int evfid
int rcv_len
int snd_len
int(*)(void *priv, int flags) start
int(*)(void *priv, int flags) stop
int(*)(void *priv, void *ptr, int len) recv
int(*)(void *priv, void *ptr, int len) send
int(*)(void *priv, int code, void *ptr, int len) control
void * reserved[4]

Macro Definition Documentation

◆ modem_IMPORTS_start

#define modem_IMPORTS_start   DECLARE_IMPORT_TABLE(modem, 1, 1)

Definition at line 49 of file modem.h.

◆ modem_IMPORTS_end

#define modem_IMPORTS_end   END_IMPORT_TABLE

Definition at line 50 of file modem.h.

◆ I_sceModemRegisterDevice

#define I_sceModemRegisterDevice   DECLARE_IMPORT(4, sceModemRegisterDevice)

Definition at line 52 of file modem.h.

◆ I_sceModemUnregisterDevice

#define I_sceModemUnregisterDevice   DECLARE_IMPORT(5, sceModemUnregisterDevice)

Definition at line 53 of file modem.h.