Re: PCI question

From: Bjorn Helgaas <bjorn.helgaas_at_hp.com>
Date: 2004-02-05 06:50:44
On Wednesday 04 February 2004 12:10 pm, Patrick Gefre wrote:
> We keep track of several things that are specific to our system:
> 
> struct sn_device_sysdata {
>         vertex_hdl_t            vhdl;
>         pciio_provider_t        *pci_provider;
>         pciio_intr_t            intr_handle;
>         struct sn_flush_device_list *dma_flush_list;
>         pciio_piomap_t          pio_map[PCI_ROM_RESOURCE];
> };
> 
> The platform_data element is what we use in 2.4 and seems like the way 
> to go for 2.6.

If you make yourself a macro to go from a pci_dev to sn_device_sysdata,
you can make your code independent of where the SGI-specific stuff
actually lives.  Probably you already do that.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Feb 4 15:01:37 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:22 EST