|
| void | ricompactdisclib_libinit (void) |
| void | ricompactdisclib_libfinit (void) |
| void | opencd (void) |
| void | opencd2 (void) |
| void | opencd3 (void) |
| void | closecd (void) |
| void | eject (void) |
| void | playtrack (void) |
| void | gettoc (void) |
| void | cdstatus (void) |
| void | stoptrack (void) |
| void | cdvolume (void) |
| void | cdnumtracks (void) |
| void | cdfirsttrack (void) |
| void | cdlasttrack (void) |
| void | cdtracklength (void) |
| void | cdtracktime (void) |
| void | cdflush (void) |
| void | cdpause (void) |
| void | cdrewind (void) |
| void | cdfastforward (void) |
| void | cdnormalspeed (void) |
| void | cdchangespeed (void) |
| void | cdtrackmins2 (void) |
| void | cdtrackmins (void) |
| void | cdtracksecs2 (void) |
| void | cdtracksecs (void) |
| void | cdtrackplaying (void) |
| void | cdmotor (void) |
| void | _cdtracklengthchk (void) |
| void | _offsetchk (void) |
| void | _opencdchk (void) |
| static ULONG | globalloc (ULONG size, ULONG flags) |
| static ULONG | cdio (int how, UWORD cmd, APTR data, ULONG offset, ULONG length) |
| static void | putlong (UBYTE *p, ULONG v) |
| static ULONG | doscsi (UBYTE *command, UWORD cmdlen, APTR buf, ULONG len, UBYTE flags) |
| static struct MsgPort * | newport (void) |
| static void | freeport (struct MsgPort *mp) |
| static struct IOStdReq * | newreq (void) |
| static void | freereq (struct IOStdReq *req) |
| static void | c_libinit (void) |
| static void | stopplay (void) |
| ULONG | c_stoptrack (void) |
| ULONG | c_closecd (void) |
| static void | c_libfinit (void) |
| static ULONG | doopen (void) |
| static int | namefits (const char *name) |
| ULONG | c_opencd (void) |
| static ULONG | openname (const char *name, ULONG unit, ULONG flag) |
| ULONG | c_opencd2 (const char *name, ULONG unit) |
| ULONG | c_opencd3 (const char *name, ULONG unit, ULONG flag) |
| ULONG | c_cdstatus (void) |
| ULONG | c_eject (ULONG on) |
| static const UBYTE * | scsidesc (ULONG t) |
| static ULONG | getlong (const UBYTE *p) |
| ULONG | c_playtrack (ULONG track, ULONG num) |
| ULONG | c_gettoc (void) |
| ULONG | c_cdvolume (ULONG vol, ULONG fade) |
| ULONG | c_cdnumtracks (void) |
| ULONG | c_cdfirsttrack (void) |
| ULONG | c_cdlasttrack (void) |
| ULONG | c_cdtracklength (ULONG track) |
| ULONG | c_cdtracktime (void) |
| static ULONG | qbyte (ULONG offset, int n) |
| ULONG | c_cdtrackmins (ULONG offset) |
| ULONG | c_cdtrackmins2 (void) |
| ULONG | c_cdtracksecs (ULONG offset) |
| ULONG | c_cdtracksecs2 (void) |
| ULONG | c_cdtrackplaying (void) |
| ULONG | c_cdflush (void) |
| ULONG | c_cdpause (ULONG on) |
| ULONG | c_cdmotor (ULONG on) |
| ULONG | c_cdchangespeed (ULONG mode) |
| ULONG | c_cdrewind (void) |
| ULONG | c_cdfastforward (void) |
| ULONG | c_cdnormalspeed (void) |
| static void | cdtracklengthchk_c (ULONG track) |
| | The error check of CDTrackLength (debugger only).
|
| static void | offsetchk_c (ULONG offset) |
| | The error check of CDTrackMins offset and CDTrackSecs offset (debugger only).
|
| static void | opencdchk_c (void) |
| | The error check of OpenCD, all three forms (debugger only).
|
| void cdtracklengthchk_c |
( |
ULONG | track | ) |
|
|
static |
The error check of CDTrackLength (debugger only).
Fixed (#583), not in the original (ricompactdisclib had no error check area): the manual says "The track# should be checked to make sure that
it exists on the compact disc"; the release code reads the TOC entries of a track that does not exist (track 0: 65539 bytes behind the TOC). With an open device and a TOC (the SCSI TOC with scsiflag) a track outside first to last track is refused; without a TOC the release code returns 0 (#582) and the check lets it. Release code unchanged (an invalid argument, D-005).
Errors: "Track number out of range".
- Parameters
-
| void offsetchk_c |
( |
ULONG | offset | ) |
|
|
static |
The error check of CDTrackMins offset and CDTrackSecs offset (debugger only).
Fixed (#586), not in the original: the manual says "The optional
parameter offset can take the value of 0 or 1"; the release code shifts the low byte of the offset by 2 (ASL.b), indexes the Q-code data with the whole word and keeps the high bytes of d0 in the result, so another offset reads 4 bytes per step behind (or before) the 12 bytes of the Q-code. Release code unchanged (D-005).
Errors: "Offset must be 0 or 1".
- Parameters
-
| void opencdchk_c |
( |
void | | ) |
|
|
static |
The error check of OpenCD, all three forms (debugger only).
Fixed (#578), not in the original: the manual says "you must call
CloseCD between calls to OpenCD (e.g. when changing devices)"; the release code makes a new request and opens the device again, and the open request is lost (it stays open). Release code unchanged (a call the programmer controls, D-005).
Errors: "CD device already open: CloseCD first".