* Implementation of bus_space_map(), which effectively is a thin * wrapper around pmap_mapdev() for memory mapped I/O space. It's * implemented here and not in to avoid pollution. */
| 42 | * implemented here and not in <x86/bus.h> to avoid pollution. |
| 43 | */ |
| 44 | int |
| 45 | bus_space_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size, |
| 46 | int flags __unused, bus_space_handle_t *bshp) |
| 47 | { |
| 48 | |
| 49 | *bshp = (tag == X86_BUS_SPACE_MEM) |
| 50 | ? (uintptr_t)pmap_mapdev(addr, size) |
| 51 | : addr; |
| 52 | return (0); |
| 53 | } |
| 54 | |
| 55 | void |
| 56 | bus_space_unmap(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t size) |
no test coverage detected