[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pci_mapreg_map
Does anyone know where pci_mapreg_map is defined? I am trying to port the
NetBSD drivers for the Efficient Networks 25mbit ATM card, but the kernel
compile is stuck on:
../../../../dev/pci/if_ef_pci.c: In function `ef_pci_attach':
../../../../dev/pci/if_ef_pci.c:160: warning: implicit declaration of
function `pci_mapreg_map'
where line 160 is:
if (pci_mapreg_map(pa, PCI_CBMA, PCI_MAPREG_TYPE_MEM |
PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->ef_memt,
&sc->ef_base, NULL, &sc->ef_obmemsz)) {
printf("%s: could not map memory\n", sc->sc_dev.dv_xname);
return;
Also, ../../../../dev/pci/if_ef_pci.c:89: warning: initialization from
incompatible pointer type
for
struct cfattach ef_pci_ca = {
sizeof(struct ef_pci_softc), ef_pci_match, ef_pci_attach
};
where line 89 is the sizeof() line.
Any tips or pointers would be appreciated.
Jeremie