mcdreg.h (4389) | mcdreg.h (5226) |
---|---|
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.4 1994/09/03 16:48:13 ache Exp $ | 44 * $Id: mcdreg.h,v 1.5 1994/11/12 13:26:13 ache Exp $ |
45 */ 46 47#ifndef MCD_H 48#define MCD_H 49 50#ifdef __GNUC__ 51#if __GNUC__ >= 2 52#pragma pack(1) --- 8 unchanged lines hidden (view full) --- 61/* io lines used */ 62#define MCD_IO_BASE 0x300 63 64#define mcd_command 0 65#define mcd_status 0 66#define mcd_rdata 0 67 68#define mcd_reset 1 | 45 */ 46 47#ifndef MCD_H 48#define MCD_H 49 50#ifdef __GNUC__ 51#if __GNUC__ >= 2 52#pragma pack(1) --- 8 unchanged lines hidden (view full) --- 61/* io lines used */ 62#define MCD_IO_BASE 0x300 63 64#define mcd_command 0 65#define mcd_status 0 66#define mcd_rdata 0 67 68#define mcd_reset 1 |
69#define mcd_xfer 1 | |
70#define mcd_ctl2 2 /* XXX Is this right? */ 71#define mcd_config 3 72 73#define MCD_MASK_DMA 0x07 /* bits 2-0 = DMA channel */ 74#define MCD_MASK_IRQ 0x70 /* bits 6-4 = INT number */ 75 /* 001 = int 2,9 */ 76 /* 010 = int 3 */ 77 /* 011 = int 5 */ 78 /* 100 = int 10 */ 79 /* 101 = int 11 */ 80/* flags */ | 69#define mcd_ctl2 2 /* XXX Is this right? */ 70#define mcd_config 3 71 72#define MCD_MASK_DMA 0x07 /* bits 2-0 = DMA channel */ 73#define MCD_MASK_IRQ 0x70 /* bits 6-4 = INT number */ 74 /* 001 = int 2,9 */ 75 /* 010 = int 3 */ 76 /* 011 = int 5 */ 77 /* 100 = int 10 */ 78 /* 101 = int 11 */ 79/* flags */ |
81#define STATUS_AVAIL 0xB 82#define DATA_AVAIL 0xF | 80#define MFL_DATA_NOT_AVAIL 0x02 81#define MFL_STATUS_NOT_AVAIL 0x04 |
83 | 82 |
84/* New Flags */ 85#define M_STATUS_AVAIL 0xFB 86#define M_DATA_AVAIL 0xFD 87 | |
88/* New Commands */ 89#define M_RESET 0x00 90#define M_PICKLE 0x04 91 92/* ports */ 93#define MCD_DATA 0 94#define MCD_FLAGS 1 95#define MCD_CTRL 2 --- 130 unchanged lines hidden --- | 83/* New Commands */ 84#define M_RESET 0x00 85#define M_PICKLE 0x04 86 87/* ports */ 88#define MCD_DATA 0 89#define MCD_FLAGS 1 90#define MCD_CTRL 2 --- 130 unchanged lines hidden --- |