Linux-kernel mailing list archive 2000-06,: Re: parport_pc

# Re: parport_pc

Richard Henderson (rth@twiddle.net)
Sat, 5 Feb 2000 22:57:33 -0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Michael Schulz: "Re: Problems after building a 2.2.14 Kernel"
- Previous message: James Manning: "[PATCH] 2.3.42 take #3 on struct initializers (file_operations)"

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/

- Next message: Michael Schulz: "Re: Problems after building a 2.2.14 Kernel"
- Previous message: James Manning: "[PATCH] 2.3.42 take #3 on struct initializers (file_operations)"