KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Syscall Command Codes

Command codes for GD-ROM syscalsl More...

Macros

#define CMD_CHECK_LICENSE   2
 Check license.
 
#define CMD_REQ_SPI_CMD   4
 Request to Sega Packet Interface.
 
#define CMD_PIOREAD   16
 Read via PIO.
 
#define CMD_DMAREAD   17
 Read via DMA.
 
#define CMD_GETTOC   18
 Read TOC.
 
#define CMD_GETTOC2   19
 Read TOC.
 
#define CMD_PLAY   20
 Play track.
 
#define CMD_PLAY2   21
 Play sectors.
 
#define CMD_PAUSE   22
 Pause playback.
 
#define CMD_RELEASE   23
 Resume from pause.
 
#define CMD_INIT   24
 Initialize the drive.
 
#define CMD_DMA_ABORT   25
 Abort DMA transfer.
 
#define CMD_OPEN_TRAY   26
 Open CD tray (on DevBox?)
 
#define CMD_SEEK   27
 Seek to a new position.
 
#define CMD_DMAREAD_STREAM   28
 Stream DMA until end/abort.
 
#define CMD_NOP   29
 No operation.
 
#define CMD_REQ_MODE   30
 Request mode.
 
#define CMD_SET_MODE   31
 Setup mode.
 
#define CMD_SCAN_CD   32
 Scan CD.
 
#define CMD_STOP   33
 Stop the disc from spinning.
 
#define CMD_GETSCD   34
 Get subcode data.
 
#define CMD_GETSES   35
 Get session.
 
#define CMD_REQ_STAT   36
 Request stat.
 
#define CMD_PIOREAD_STREAM   37
 Stream PIO until end/abort.
 
#define CMD_DMAREAD_STREAM_EX   38
 Stream DMA transfer.
 
#define CMD_PIOREAD_STREAM_EX   39
 Stream PIO transfer.
 
#define CMD_GET_VERS   40
 Get syscall driver version.
 
#define CMD_MAX   47
 Max of GD syscall commands.
 

Detailed Description

Command codes for GD-ROM syscalsl

These are the syscall command codes used to actually do stuff with the GD-ROM drive. These were originally provided by maiwe.

Macro Definition Documentation

◆ CMD_CHECK_LICENSE

#define CMD_CHECK_LICENSE   2

Check license.

◆ CMD_DMA_ABORT

#define CMD_DMA_ABORT   25

Abort DMA transfer.

◆ CMD_DMAREAD

#define CMD_DMAREAD   17

Read via DMA.

◆ CMD_DMAREAD_STREAM

#define CMD_DMAREAD_STREAM   28

Stream DMA until end/abort.

◆ CMD_DMAREAD_STREAM_EX

#define CMD_DMAREAD_STREAM_EX   38

Stream DMA transfer.

◆ CMD_GET_VERS

#define CMD_GET_VERS   40

Get syscall driver version.

◆ CMD_GETSCD

#define CMD_GETSCD   34

Get subcode data.

◆ CMD_GETSES

#define CMD_GETSES   35

Get session.

◆ CMD_GETTOC

#define CMD_GETTOC   18

Read TOC.

◆ CMD_GETTOC2

#define CMD_GETTOC2   19

Read TOC.

◆ CMD_INIT

#define CMD_INIT   24

Initialize the drive.

◆ CMD_MAX

#define CMD_MAX   47

Max of GD syscall commands.

◆ CMD_NOP

#define CMD_NOP   29

No operation.

◆ CMD_OPEN_TRAY

#define CMD_OPEN_TRAY   26

Open CD tray (on DevBox?)

◆ CMD_PAUSE

#define CMD_PAUSE   22

Pause playback.

◆ CMD_PIOREAD

#define CMD_PIOREAD   16

Read via PIO.

◆ CMD_PIOREAD_STREAM

#define CMD_PIOREAD_STREAM   37

Stream PIO until end/abort.

◆ CMD_PIOREAD_STREAM_EX

#define CMD_PIOREAD_STREAM_EX   39

Stream PIO transfer.

◆ CMD_PLAY

#define CMD_PLAY   20

Play track.

◆ CMD_PLAY2

#define CMD_PLAY2   21

Play sectors.

◆ CMD_RELEASE

#define CMD_RELEASE   23

Resume from pause.

◆ CMD_REQ_MODE

#define CMD_REQ_MODE   30

Request mode.

◆ CMD_REQ_SPI_CMD

#define CMD_REQ_SPI_CMD   4

Request to Sega Packet Interface.

◆ CMD_REQ_STAT

#define CMD_REQ_STAT   36

Request stat.

◆ CMD_SCAN_CD

#define CMD_SCAN_CD   32

Scan CD.

◆ CMD_SEEK

#define CMD_SEEK   27

Seek to a new position.

◆ CMD_SET_MODE

#define CMD_SET_MODE   31

Setup mode.

◆ CMD_STOP

#define CMD_STOP   33

Stop the disc from spinning.