mcdreg.h (978) | mcdreg.h (1197) |
---|---|
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 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgement: 17 * This software was developed by Holger Veit and Brian Moore | 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 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgement: 17 * This software was developed by Holger Veit and Brian Moore |
18 * for use with "386BSD" and similar operating systems. | 18 * for use with "386BSD" and similar operating systems. |
19 * "Similar operating systems" includes mainly non-profit oriented 20 * systems for research and education, including but not restricted to 21 * "NetBSD", "FreeBSD", "Mach" (by CMU). 22 * 4. Neither the name of the developer(s) nor the name "386BSD" 23 * may be used to endorse or promote products derived from this 24 * software without specific prior written permission. 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPER(S) ``AS IS'' AND ANY --- 9 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 * | 19 * "Similar operating systems" includes mainly non-profit oriented 20 * systems for research and education, including but not restricted to 21 * "NetBSD", "FreeBSD", "Mach" (by CMU). 22 * 4. Neither the name of the developer(s) nor the name "386BSD" 23 * may be used to endorse or promote products derived from this 24 * software without specific prior written permission. 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPER(S) ``AS IS'' AND ANY --- 9 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.1 1993/10/12 06:08:31 rgrimes Exp $ | 44 * $Id: mcdreg.h,v 1.2 1994/01/16 23:34:17 jkh Exp $ |
45 */ 46 47#ifndef MCD_H 48#define MCD_H 49 50#ifdef __GNUC__ 51#if __GNUC__ >= 2 52#pragma pack(1) --- 24 unchanged lines hidden (view full) --- 77 /* 011 = int 5 */ 78 /* 100 = int 10 */ 79 /* 101 = int 11 */ 80/* flags */ 81#define STATUS_AVAIL 0xB 82#define DATA_AVAIL 0xF 83 84/* New Flags */ | 45 */ 46 47#ifndef MCD_H 48#define MCD_H 49 50#ifdef __GNUC__ 51#if __GNUC__ >= 2 52#pragma pack(1) --- 24 unchanged lines hidden (view full) --- 77 /* 011 = int 5 */ 78 /* 100 = int 10 */ 79 /* 101 = int 11 */ 80/* flags */ 81#define STATUS_AVAIL 0xB 82#define DATA_AVAIL 0xF 83 84/* New Flags */ |
85#define M_STATUS_AVAIL 0xFB 86#define M_DATA_AVAIL 0xFD | 85#define M_STATUS_AVAIL 0xFB 86#define M_DATA_AVAIL 0xFD |
87 88/* New Commands */ 89#define M_RESET 0x00 | 87 88/* New Commands */ 89#define M_RESET 0x00 |
90#define M_PICKLE 0x04 |
|
90 91/* ports */ 92#define MCD_DATA 0 93#define MCD_FLAGS 1 | 91 92/* ports */ 93#define MCD_DATA 0 94#define MCD_FLAGS 1 |
94#define MCD_DONT_KNOW 2 /* What are these two ports for??? */ 95#define CHANNEL 3 | 95#define MCD_CTRL 2 96#define CHANNEL 3 /* XXX ??? */ |
96 97/* Status bits */ 98#define MCD_ST_DOOROPEN 0x80 99#define MCD_ST_DSKIN 0x40 100#define MCD_ST_DSKCHNG 0x20 101#define MCD_ST_BUSY 0x04 102#define MCD_ST_AUDIOBSY 0x02 103 --- 55 unchanged lines hidden --- | 97 98/* Status bits */ 99#define MCD_ST_DOOROPEN 0x80 100#define MCD_ST_DSKIN 0x40 101#define MCD_ST_DSKCHNG 0x20 102#define MCD_ST_BUSY 0x04 103#define MCD_ST_AUDIOBSY 0x02 104 --- 55 unchanged lines hidden --- |