PS2SDK
PS2 Homebrew Libraries
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.

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.