diff --git a/sys/arch/i386/eisa/eisa_machdep.c b/sys/arch/i386/eisa/eisa_machdep.c index c03b504e7b75..1cce2032d57a 100644 --- a/sys/arch/i386/eisa/eisa_machdep.c +++ b/sys/arch/i386/eisa/eisa_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: eisa_machdep.c,v 1.4 1996/10/13 03:19:38 christos Exp $ */ +/* $NetBSD: eisa_machdep.c,v 1.5 1996/10/21 23:12:56 thorpej Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -40,8 +40,10 @@ #include #include #include +#include #include +#include #include #include @@ -123,3 +125,31 @@ eisa_intr_disestablish(ec, cookie) return isa_intr_disestablish(NULL, cookie); } + +int +eisa_mem_alloc(t, size, align, boundary, cacheable, addrp, bahp) + bus_space_tag_t t; + bus_size_t size, align; + bus_addr_t boundary; + int cacheable; + bus_addr_t *addrp; + bus_space_handle_t *bahp; +{ + extern struct extent *iomem_ex; + + /* + * Allocate physical address space after the ISA hole. + */ + return bus_space_alloc(t, IOM_END, iomem_ex->ex_end, size, align, + boundary, cacheable, addrp, bahp); +} + +void +eisa_mem_free(t, bah, size) + bus_space_tag_t t; + bus_space_handle_t bah; + bus_size_t size; +{ + + bus_space_free(t, bah, size); +} diff --git a/sys/arch/i386/eisa/eisa_machdep.h b/sys/arch/i386/eisa/eisa_machdep.h index 9ed851c7ebbe..1ff655bb5198 100644 --- a/sys/arch/i386/eisa/eisa_machdep.h +++ b/sys/arch/i386/eisa/eisa_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: eisa_machdep.h,v 1.2 1996/04/09 23:00:27 cgd Exp $ */ +/* $NetBSD: eisa_machdep.h,v 1.3 1996/10/21 23:12:58 thorpej Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -60,3 +60,7 @@ const char *eisa_intr_string __P((eisa_chipset_tag_t, eisa_intr_handle_t)); void *eisa_intr_establish __P((eisa_chipset_tag_t, eisa_intr_handle_t, int, int, int (*)(void *), void *)); void eisa_intr_disestablish __P((eisa_chipset_tag_t, void *)); +int eisa_mem_alloc __P((bus_space_tag_t, bus_size_t, bus_size_t, + bus_addr_t, int, bus_addr_t *, bus_space_handle_t *)); +void eisa_mem_free __P((bus_space_tag_t, bus_space_handle_t, + bus_size_t));