Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!sparcserve.cs.adfa.oz.au!wkt From: wkt@sparcserve.cs.adfa.oz.au (Warren Toomey) Subject: Re: Mitsumi DoubleSpeed & FreeBSD CDROM Message-ID: <1994Feb28.232548.15938@sserve.cc.adfa.oz.au> Sender: news@sserve.cc.adfa.oz.au Organization: Australian Defence Force Academy References: <2kjqkjINNpo5@life.ai.mit.edu> Date: Mon, 28 Feb 1994 23:25:48 GMT In article <2kjqkjINNpo5@life.ai.mit.edu>, kristyn@gnu.ai.mit.edu (Kristyn Fayette) writes: |> I just got the FreeBSD CDROM (December 1993). But I can't get FreeBSD |> to acknowledge that I've got a CDROM drive. |> |> kristyn@gnu.ai.mit.edu -- Use the old probe code, which I've included below. Works for me :-) Warren int mcd_probe(struct isa_device *dev) { int port = dev->id_iobase; int unit = dev->id_unit; int st; mcd_data[unit].flags = MCDPROBING; #ifdef NOTDEF /* get irq/drq configuration word */ mcd_data[unit].config = irqs[dev->id_irq]; /* | drqs[dev->id_drq];*/ #else mcd_data[unit].config = 0; #endif /* send a reset */ outb(port+mcd_reset, MCD_CMDRESET); mcd_delay(300000); /* get status */ st = mcd_getstat(unit,1); mcd_data[unit].flags = 0; return (st<0) ? 0 : 4; } --- `` ... nor do I regularly post multi-kilobyte screeds about driver software I can't release because aliens haven't used the radio receivers in my head to give me permission yet.'' -- John F. Woods