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

Go to the source code of this file.

Macros

#define ssbusc_IMPORTS_start   DECLARE_IMPORT_TABLE(ssbusc, 1, 1)
 
#define ssbusc_IMPORTS_end   END_IMPORT_TABLE
 
#define I_SetDelay   DECLARE_IMPORT(4, SetDelay)
 
#define I_GetDelay   DECLARE_IMPORT(5, GetDelay)
 
#define I_SetBaseAddress   DECLARE_IMPORT(6, SetBaseAddress)
 
#define I_GetBaseAddress   DECLARE_IMPORT(7, GetBaseAddress)
 
#define I_SetRecoveryTime   DECLARE_IMPORT(8, SetRecoveryTime)
 
#define I_GetRecoveryTime   DECLARE_IMPORT(9, GetRecoveryTime)
 
#define I_SetHoldTime   DECLARE_IMPORT(10, SetHoldTime)
 
#define I_GetHoldTime   DECLARE_IMPORT(11, GetHoldTime)
 
#define I_SetFloatTime   DECLARE_IMPORT(12, SetFloatTime)
 
#define I_GetFloatTime   DECLARE_IMPORT(13, GetFloatTime)
 
#define I_SetStrobeTime   DECLARE_IMPORT(14, SetStrobeTime)
 
#define I_GetStrobeTime   DECLARE_IMPORT(15, GetStrobeTime)
 
#define I_SetCommonDelay   DECLARE_IMPORT(16, SetCommonDelay)
 
#define I_GetCommonDelay   DECLARE_IMPORT(17, GetCommonDelay)
 

Enumerations

enum  SSBUSC_DEV {
  SSBUSC_DEV0 = 0 , SSBUSC_DEV_DVDROM , SSBUSC_DEV_BOOTROM , SSBUSC_DEV3 ,
  SSBUSC_DEV_SPU , SSBUSC_DEV_CDVD , SSBUSC_DEV6 , SSBUSC_DEV7 ,
  SSBUSC_DEV8 , SSBUSC_DEV_SPU2 , SSBUSC_DEV_DEV9I , SSBUSC_DEV_DEV9M ,
  SSBUSC_DEV_DEV9C
}
 

Functions

int SetDelay (int device, unsigned int value)
 
int GetDelay (int device)
 
int SetBaseAddress (int device, unsigned int value)
 
int GetBaseAddress (int device)
 
int SetRecoveryTime (unsigned int value)
 
int GetRecoveryTime (void)
 
int SetHoldTime (unsigned int value)
 
int GetHoldTime (void)
 
int SetFloatTime (unsigned int value)
 
int GetFloatTime (void)
 
int SetStrobeTime (unsigned int value)
 
int GetStrobeTime (void)
 
int SetCommonDelay (unsigned int value)
 
int GetCommonDelay (void)
 

Detailed Description

SSBUSC service control function definitions.

Definition in file ssbusc.h.

Macro Definition Documentation

◆ ssbusc_IMPORTS_start

#define ssbusc_IMPORTS_start   DECLARE_IMPORT_TABLE(ssbusc, 1, 1)

Definition at line 207 of file ssbusc.h.

◆ ssbusc_IMPORTS_end

#define ssbusc_IMPORTS_end   END_IMPORT_TABLE

Definition at line 208 of file ssbusc.h.

◆ I_SetDelay

#define I_SetDelay   DECLARE_IMPORT(4, SetDelay)

Definition at line 210 of file ssbusc.h.

◆ I_GetDelay

#define I_GetDelay   DECLARE_IMPORT(5, GetDelay)

Definition at line 211 of file ssbusc.h.

◆ I_SetBaseAddress

#define I_SetBaseAddress   DECLARE_IMPORT(6, SetBaseAddress)

Definition at line 212 of file ssbusc.h.

◆ I_GetBaseAddress

#define I_GetBaseAddress   DECLARE_IMPORT(7, GetBaseAddress)

Definition at line 213 of file ssbusc.h.

◆ I_SetRecoveryTime

#define I_SetRecoveryTime   DECLARE_IMPORT(8, SetRecoveryTime)

Definition at line 214 of file ssbusc.h.

◆ I_GetRecoveryTime

#define I_GetRecoveryTime   DECLARE_IMPORT(9, GetRecoveryTime)

Definition at line 215 of file ssbusc.h.

◆ I_SetHoldTime

#define I_SetHoldTime   DECLARE_IMPORT(10, SetHoldTime)

Definition at line 216 of file ssbusc.h.

◆ I_GetHoldTime

#define I_GetHoldTime   DECLARE_IMPORT(11, GetHoldTime)

Definition at line 217 of file ssbusc.h.

◆ I_SetFloatTime

#define I_SetFloatTime   DECLARE_IMPORT(12, SetFloatTime)

Definition at line 218 of file ssbusc.h.

◆ I_GetFloatTime

#define I_GetFloatTime   DECLARE_IMPORT(13, GetFloatTime)

Definition at line 219 of file ssbusc.h.

◆ I_SetStrobeTime

#define I_SetStrobeTime   DECLARE_IMPORT(14, SetStrobeTime)

Definition at line 220 of file ssbusc.h.

◆ I_GetStrobeTime

#define I_GetStrobeTime   DECLARE_IMPORT(15, GetStrobeTime)

Definition at line 221 of file ssbusc.h.

◆ I_SetCommonDelay

#define I_SetCommonDelay   DECLARE_IMPORT(16, SetCommonDelay)

Definition at line 222 of file ssbusc.h.

◆ I_GetCommonDelay

#define I_GetCommonDelay   DECLARE_IMPORT(17, GetCommonDelay)

Definition at line 223 of file ssbusc.h.

Enumeration Type Documentation

◆ SSBUSC_DEV

enum SSBUSC_DEV

This enum lists all devices controlled by the SSBUSC. Note that the PS2 has some physical device assignments, which are not directly related to the SSBUSC's devices. Usually, these devices are related to the assignments of interrupt, chip-select and DMA control line sets. For example, DEV9 is known as such because it is assigned INT9, CS9, DACK9 and DREQ9. However, DEV9 is controlled as SSBUSC devices 10-12.

There can be coincidences, like how DEV5 (CD/DVD DSP) also has a SSBUSC device ID of 5.

Enumerator
SSBUSC_DEV0 

Seems to affect the memory map entirely.

SSBUSC_DEV_DVDROM 

DVD ROM chip (contains rom1 and erom), DEV1

SSBUSC_DEV_BOOTROM 

BOOT ROM chip (contains rom0), DEV2

SSBUSC_DEV_SPU 

SPU, DEV4

SSBUSC_DEV_CDVD 

CD/DVD hardware, DEV5

SSBUSC_DEV_SPU2 

SPU2

Definition at line 144 of file ssbusc.h.

Function Documentation

◆ SetDelay()

int SetDelay ( int  device,
unsigned int  value 
)

Definition at line 46 of file ssbusc.c.

◆ GetDelay()

int GetDelay ( int  device)

Definition at line 61 of file ssbusc.c.

◆ SetBaseAddress()

int SetBaseAddress ( int  device,
unsigned int  value 
)

Definition at line 92 of file ssbusc.c.

◆ GetBaseAddress()

int GetBaseAddress ( int  device)

Definition at line 107 of file ssbusc.c.

◆ SetRecoveryTime()

int SetRecoveryTime ( unsigned int  value)

Definition at line 121 of file ssbusc.c.

◆ GetRecoveryTime()

int GetRecoveryTime ( void  )

Definition at line 130 of file ssbusc.c.

◆ SetHoldTime()

int SetHoldTime ( unsigned int  value)

Definition at line 135 of file ssbusc.c.

◆ GetHoldTime()

int GetHoldTime ( void  )

Definition at line 144 of file ssbusc.c.

◆ SetFloatTime()

int SetFloatTime ( unsigned int  value)

Definition at line 149 of file ssbusc.c.

◆ GetFloatTime()

int GetFloatTime ( void  )

Definition at line 158 of file ssbusc.c.

◆ SetStrobeTime()

int SetStrobeTime ( unsigned int  value)

Definition at line 163 of file ssbusc.c.

◆ GetStrobeTime()

int GetStrobeTime ( void  )

Definition at line 172 of file ssbusc.c.

◆ SetCommonDelay()

int SetCommonDelay ( unsigned int  value)

Definition at line 177 of file ssbusc.c.

◆ GetCommonDelay()

int GetCommonDelay ( void  )

Definition at line 186 of file ssbusc.c.