Subject: Re: Possible change to pci_intr_map API.
To: Bill Sommerfeld <sommerfeld@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-ports
Date: 12/07/2000 08:51:00
On Thu, Dec 07, 2000 at 11:24:53AM -0500, Bill Sommerfeld wrote:
> typedef struct pci_attach_args pci_attach_args_t;
>
> int pci_intr_map(pci_attach_args_t *pa, pci_intr_handle_t *ihp);
>
> In the case of a hypothetical driver which has a need to do something
> special, it can simply construct a "pci_attach_args" with appropriate
> values and feed it to pci_intr_map. (I say hypothetical because at
> the moment, it appears that all calls to pci_intr_map in NetBSD simply
> pass through values which came from the same pci_attach_args.. i.e.,
> no such drivers exist).
>
> Comments?
This sounds reasonable to me. Note that I would probably avoid the
pci_attach_args_t thing, and just continue to call it "struct pci_attach_args".
--
-- Jason R. Thorpe <thorpej@zembu.com>