*BSD News Article 29300


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 + FreeBSD = Arghhhhh
Message-ID: <1994Apr14.000806.13374@sserve.cc.adfa.oz.au>
Sender: news@sserve.cc.adfa.oz.au
Organization: Australian Defence Force Academy
References:  <ETLDNCN.94Apr7094928@paddington.ericsson.se>
Date: Thu, 14 Apr 1994 00:08:06 GMT

In article <ETLDNCN.94Apr7094928@paddington.ericsson.se>, etldncn@paddington.ericsson.se ( ) writes:
|> 
|> Hi BSD fans,
|> 
|> 
|> I hope that some kind soul can help me with a problem that I have with
|> my new Mitsumi drive. I have set up my Mitsumi drive with the
|> following parameters.

I think this should go in the FAQ, I've answered it at leat 4 times now,
and the answers are of course available through bsdnews on 
minnie.cs.adfa.oz.au (telnet & log in as bsdnews).

The answer is to replace the probe code which was broken with an old version.
The old version will detect mcd0 even if it isn't there :-) Doesn't matter!

	Warren	wkt@cs.adfa.oz.au

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;
}