Add a minimal bus_space_mmap which always fails. The MEMC can only map DRAM

into the user's address space -- I/O devices can only ever be got at by the
kernel.
This commit is contained in:
bjh21 2001-09-11 11:38:59 +00:00
parent 88dc67b3e1
commit 5321796010

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.5 2001/06/12 20:16:23 bjh21 Exp $ */
/* $NetBSD: bus.h,v 1.6 2001/09/11 11:38:59 bjh21 Exp $ */
/*-
* Copyright (c) 2000 Ben Harris
@ -70,6 +70,9 @@ extern int bus_space_shift(bus_space_tag_t, bus_space_handle_t, int,
#define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) (-1)
#define bus_space_free(t, h, s) /* Do nothing */
/* Mapping bus space into user address space (impossible on arm26) */
#define bus_space_mmap(t, a, o, p, f) (-1)
/* Used by ne2000.c */
#define BUS_SPACE_ALIGNED_POINTER ALIGNED_POINTER