Example #1
0
paddr_t
obmem_bus_mmap(bus_space_tag_t t, bus_type_t btype, bus_addr_t paddr, off_t off,
    int prot, int flags)
{
	struct obmem_softc *sc = t->cookie;

	return bus_space_mmap2(sc->sc_bustag, PMAP_OBMEM, paddr, off,
	    prot, flags);
}
Example #2
0
paddr_t
vme_bus_mmap(bus_space_tag_t t, bus_type_t btype, bus_addr_t paddr, off_t off,
    int prot, int flags)
{
	struct vme_softc *sc = t->cookie;
	paddr_t pa;
	int bustype, pmtype;

	bustype = sc->sc_bustype;
	pa = paddr;
	pa &= vme_info[bustype].mask;
	pa |= vme_info[bustype].base;
	pmtype = vme_info[bustype].pmtype;

	return bus_space_mmap2(sc->sc_bustag, pmtype, pa, off, prot, flags);
}