It seems Andrew Gallatin wrote:
> Is there any way to tell the driver not to reduce the timeout to
> something less than 31s?  Or would it be easier for me to just #if 0
> the lun1 (iobase_2..) code in ata_pciattach()?
> 
> I'm asking because we have about 20 boxes like this.  All of which are
> "rack" mounted & don't have video cards, so getting at the BIOS is a
> royal PITA.  They are all Asus P2BLS with:
> 
> ata-pci0: <Intel PIIX4 ATA-33 controller> port 0xd800-0xd80f at device 4.1 on pci0
> ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xd800
> ata0: mask=03 status0=50 status1=00
> ata0: mask=03 status0=50 status1=00
> ata0: devices = 0x1
> ata0 at 0x01f0 irq 14 on ata-pci0
> ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xd808
> ata1: mask=03 status0=a5 status1=a5
> <..30+ seconds>
> ata1: mask=00 status0=ffffffa5 status1=ffffffa5

Hmm, you could try to change the probe to something like:
...
    status1 = inb(scp->ioaddr + ATA_STATUS);
    if ((status0 & 0xf8) != 0xf8 && status0 != 0xa5)
        mask |= 0x01;
    if ((status1 & 0xf8) != 0xf8 && status1 != 0xa5)
        mask |= 0x02;
    if (bootverbose)
        ata_printf(scp, -1, "mask=%02x status0=%02x status1=%02x\n",
                   mask, status0, status1);
...

It seems that the 0xa5 value means "no device" too, on lots of 
controllers, and its not valid anyways, so it wouldn't hurt..." 

-Søren


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to