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