Re: Determine if card is in 32 or 64 bit PCI slot?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 8 Aug 2001 21:56:47 +0100 (BST)


> I have a 64 bit PCI card which will work in either a 32 bit or 64 bit
> PCI slot.
>
> I'd like to make the driver autodetect which kind of slot the card is
> in and set the dma_mask correctly, but I can't seem to figure out how to
> do this.

Are you sure the card actually needs this. Most such cards support dual address
cycle, so when placed in a 32bit slot will still do 64bit DMA
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/