On Sat, Feb 05, 2000 at 05:49:27PM -0800, Mitchell Blank Jr wrote:
> #define ISA_DMA ((struct pci_dev *) NULL)
This isn't a bad idea.
> struct pci_dev { dma_mask: 0xFFFFFF; } __isa_dma;
> #define ISA_DMA (&__isa_dma)
This is a bad idea, at least genericly. One should never gen up
a pci_dev struct yourself, because it won't be valid. A valid
pci_dev has been munged by arch specific code.
> However, if we have multiple "pci like" busses without per-device
> instances of "struct pci_dev" ...
Although I can think of such an instance, you're free to do
all sorts of weirdness in your own port.
r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:13 EST