diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-03-06 14:14:49 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-03-06 14:14:49 +0000 |
| commit | 18e494b593e6f40ad8302a00e50d961230182cf8 (patch) | |
| tree | 8da433fdaaf9db669eb0a11e59713e845ecb3c7c /sys/dev/mcd | |
| parent | 068a409099dcc20c24a01cb76aaf59906ef8e31f (diff) | |
Notes
Diffstat (limited to 'sys/dev/mcd')
| -rw-r--r-- | sys/dev/mcd/mcd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index db52bca7d9767..11e2a1a0a5175 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -39,7 +39,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.11 1994/03/05 03:54:19 jkh Exp $ + * $Id: mcd.c,v 1.12 1994/03/05 21:41:51 ats Exp $ */ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -99,7 +99,11 @@ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; #define MCDDSKIN MCD_ST_DSKIN /* sensed disk in drive */ #define MCDDOOROPEN MCD_ST_DOOROPEN /* sensed door open */ -#define MCDEXISTS 0x0030 /* A real Mitsumi drive */ +/* These are apparently the different states a mitsumi can get up to */ +#define MCDCDABSENT 0x0030 +#define MCDCDPRESENT 0x0020 +#define MCDSCLOSED 0x0080 +#define MCDSOPEN 0x00a0 /* toc */ #define MCD_MAXTOCS 104 /* from the Linux driver */ @@ -604,12 +608,8 @@ mcd_probe(struct isa_device *dev) return 0; /* Timeout */ } status = inb(port+MCD_DATA); -/* 0x20 == empty drive */ -/* 0x30 == MCDEXISTS == drive closed with CDROM inserted */ -/* 0x80 == drive pulled out but door closed */ -/* 0xa0 == drive pulled out and door open */ - if (status != 0x20 && status != MCDEXISTS && status != 0x80 && - status != 0xa0) + if (status != MCDCDABSENT && status != MCDCDPRESENT && + status != MCDSOPEN && status != MCDSCLOSED) return 0; /* Not actually a Mitsumi drive here */ /* Get version information */ outb(port+MCD_DATA, MCD_CMDCONTINFO); |
