mcdreg.h (1197) | mcdreg.h (2477) |
---|---|
1/* 2 * Copyright 1993 by Holger Veit (data part) 3 * Copyright 1993 by Brian Moore (audio part) 4 * Changes Copyright 1993 by Gary Clark II 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 27 unchanged lines hidden (view full) --- 36 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 * 38 * This file contains definitions for some cdrom control commands 39 * and status codes. This info was "inherited" from the DOS MTMCDE.SYS 40 * driver, and is thus not complete (and may even be wrong). Some day 41 * the manufacturer or anyone else might provide better documentation, 42 * so this file (and the driver) will then have a better quality. 43 * | 1/* 2 * Copyright 1993 by Holger Veit (data part) 3 * Copyright 1993 by Brian Moore (audio part) 4 * Changes Copyright 1993 by Gary Clark II 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 27 unchanged lines hidden (view full) --- 36 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 * 38 * This file contains definitions for some cdrom control commands 39 * and status codes. This info was "inherited" from the DOS MTMCDE.SYS 40 * driver, and is thus not complete (and may even be wrong). Some day 41 * the manufacturer or anyone else might provide better documentation, 42 * so this file (and the driver) will then have a better quality. 43 * |
44 * $Id: mcdreg.h,v 1.2 1994/01/16 23:34:17 jkh Exp $ | 44 * $Id: mcdreg.h,v 1.3 1994/02/22 08:44:31 rgrimes Exp $ |
45 */ 46 47#ifndef MCD_H 48#define MCD_H 49 50#ifdef __GNUC__ 51#if __GNUC__ >= 2 52#pragma pack(1) --- 49 unchanged lines hidden (view full) --- 102#define MCD_ST_BUSY 0x04 103#define MCD_ST_AUDIOBSY 0x02 104 105/* commands known by the controller */ 106#define MCD_CMDRESET 0x00 107#define MCD_CMDGETVOLINFO 0x10 /* gets mcd_volinfo */ 108#define MCD_CMDGETQCHN 0x20 /* gets mcd_qchninfo */ 109#define MCD_CMDGETSTAT 0x40 /* gets a byte of status */ | 45 */ 46 47#ifndef MCD_H 48#define MCD_H 49 50#ifdef __GNUC__ 51#if __GNUC__ >= 2 52#pragma pack(1) --- 49 unchanged lines hidden (view full) --- 102#define MCD_ST_BUSY 0x04 103#define MCD_ST_AUDIOBSY 0x02 104 105/* commands known by the controller */ 106#define MCD_CMDRESET 0x00 107#define MCD_CMDGETVOLINFO 0x10 /* gets mcd_volinfo */ 108#define MCD_CMDGETQCHN 0x20 /* gets mcd_qchninfo */ 109#define MCD_CMDGETSTAT 0x40 /* gets a byte of status */ |
110 |
|
110#define MCD_CMDSETMODE 0x50 /* set transmission mode, needs byte */ 111#define MCD_MD_RAW 0x60 | 111#define MCD_CMDSETMODE 0x50 /* set transmission mode, needs byte */ 112#define MCD_MD_RAW 0x60 |
113#define MCD_MD_BIN_RAW 0x61 |
|
112#define MCD_MD_COOKED 0x01 | 114#define MCD_MD_COOKED 0x01 |
115#define MCD_MD_BIN_COOKED 0x81 |
|
113#define MCD_MD_TOC 0x05 | 116#define MCD_MD_TOC 0x05 |
117 |
|
114#define MCD_CMDSTOPAUDIO 0x70 115#define MCD_CMDGETVOLUME 0x8E /* gets mcd_volume */ 116#define MCD_CMDSETVOLUME 0xAE /* sets mcd_volume */ 117#define MCD_CMDREAD1 0xB0 /* read n sectors */ 118#define MCD_CMDREAD2 0xC0 /* read from-to */ 119#define MCD_CMDCONTINFO 0xDC /* Get controller info */ 120#define MCD_CMDEJECTDISK 0xF6 121#define MCD_CMDCLOSETRAY 0xF8 | 118#define MCD_CMDSTOPAUDIO 0x70 119#define MCD_CMDGETVOLUME 0x8E /* gets mcd_volume */ 120#define MCD_CMDSETVOLUME 0xAE /* sets mcd_volume */ 121#define MCD_CMDREAD1 0xB0 /* read n sectors */ 122#define MCD_CMDREAD2 0xC0 /* read from-to */ 123#define MCD_CMDCONTINFO 0xDC /* Get controller info */ 124#define MCD_CMDEJECTDISK 0xF6 125#define MCD_CMDCLOSETRAY 0xF8 |
126 |
|
122#define MCD_CMDLOCKDRV 0xFE /* needs byte */ 123#define MCD_LK_UNLOCK 0x00 124#define MCD_LK_LOCK 0x01 125#define MCD_LK_TEST 0x02 126 127struct mcd_volinfo { 128 bcd_t trk_low; 129 bcd_t trk_high; --- 30 unchanged lines hidden --- | 127#define MCD_CMDLOCKDRV 0xFE /* needs byte */ 128#define MCD_LK_UNLOCK 0x00 129#define MCD_LK_LOCK 0x01 130#define MCD_LK_TEST 0x02 131 132struct mcd_volinfo { 133 bcd_t trk_low; 134 bcd_t trk_high; --- 30 unchanged lines hidden --- |