pci_mapreg_info() has been changed to take arguments like pci_mapreg_map()
This commit is contained in:
parent
75b410b331
commit
a9ad6cae19
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pci_map.c,v 1.2 1997/09/23 23:08:47 mycroft Exp $ */
|
||||
/* $NetBSD: pci_map.c,v 1.3 1997/10/03 18:45:39 lonhyn Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1997 Charles M. Hannum. All rights reserved.
|
||||
@ -171,22 +171,21 @@ pci_mem_find(pc, tag, reg, type, basep, sizep, flagsp)
|
||||
}
|
||||
|
||||
int
|
||||
pci_mapreg_info(pc, tag, reg, type, basep, sizep, flagsp)
|
||||
pci_chipset_tag_t pc;
|
||||
pcitag_t tag;
|
||||
pci_mapreg_info(pa, reg, type, basep, sizep)
|
||||
struct pci_attach_args *pa;
|
||||
int reg;
|
||||
pcireg_t type;
|
||||
bus_addr_t *basep;
|
||||
bus_size_t *sizep;
|
||||
int *flagsp;
|
||||
{
|
||||
int flags;
|
||||
|
||||
if (PCI_MAPREG_TYPE(type) == PCI_MAPREG_TYPE_IO)
|
||||
return (pci_io_find(pc, tag, reg, type, basep, sizep,
|
||||
flagsp));
|
||||
return (pci_io_find(pa->pa_pc, pa->pa_tag, reg, type,
|
||||
basep, sizep, &flags));
|
||||
else
|
||||
return (pci_mem_find(pc, tag, reg, type, basep, sizep,
|
||||
flagsp));
|
||||
return (pci_mem_find(pa->pa_pc, pa->pa_tag, reg, type,
|
||||
basep, sizep, &flags));
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pcivar.h,v 1.25 1997/08/30 06:48:24 mycroft Exp $ */
|
||||
/* $NetBSD: pcivar.h,v 1.26 1997/10/03 18:45:41 lonhyn Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
|
||||
@ -143,8 +143,8 @@ struct pci_attach_args {
|
||||
* Configuration space access and utility functions. (Note that most,
|
||||
* e.g. make_tag, conf_read, conf_write are declared by pci_machdep.h.)
|
||||
*/
|
||||
int pci_mapreg_info __P((pci_chipset_tag_t, pcitag_t, int, pcireg_t,
|
||||
bus_addr_t *, bus_size_t *, int *));
|
||||
int pci_mapreg_info __P((struct pci_attach_args *, int, pcireg_t,
|
||||
bus_addr_t *, bus_size_t *));
|
||||
int pci_mapreg_map __P((struct pci_attach_args *, int, pcireg_t, int,
|
||||
bus_space_tag_t *, bus_space_handle_t *, bus_addr_t *,
|
||||
bus_size_t *));
|
||||
|
Loading…
Reference in New Issue
Block a user