Subject: Re: kern/13797: hme driver does not compile on i386
To: None <,>
From: ITOH Yasufumi <>
List: tech-kern
Date: 12/23/2002 22:16:15
In article <> writes:

> as you know they will be on the same device, i think this
> is a fine way of doing it.

pci_mapreg_map() requires a "struct pci_attach_args *" argument.
Is it OKay to forge the arg like this?

	struct pci_attach_args *pa = aux;	/* attach arg of function 1 */
	struct pci_attach_args	ebus_pa;
	/* get a PCI tag for the EBus bridge (function 0 of the same device) */
	ebus_pa = *pa;
	ebus_pa.pa_tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device, 0);

	pci_mapreg_map(&ebus_pa, ...);

ITOH Yasufumi