Re: 2.5.4, cs46xx snd, and virt_to_bus

From: David S. Miller (davem@redhat.com)
Date: Mon Feb 11 2002 - 21:43:16 EST


   From: Alan Cox <alan@lxorguk.ukuu.org.uk>
   Date: Mon, 11 Feb 2002 18:10:04 +0000 (GMT)
   
   For ISA devices pass NULL.

That is the recommended method for drivers that have to deal
with ISA and PCI variants of a chipset.

However, for "purely x86 ISA" devices one may use
isa_bus_to_virt and isa_virt_to_bus.

I hesitate to even mention this because what people should _not_ do is
just put "isa_" in front of the virt_to_bus et al. calls in all the
PCI drivers that stopped to link now.

There are other tangental issues I'd like to address and clarify in
this area. This includes the "what can be invoked from interrupt"
questions. Currently I think pci_{alloc,free}_consistent() should be
valid from an interrupt.
-
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/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:00:45 EST