Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386 Delete unused functions eisa_mem_alloc() and e...



details:   https://anonhg.NetBSD.org/src/rev/6ef0157d61cc
branches:  trunk
changeset: 749109:6ef0157d61cc
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue Nov 17 23:46:27 2009 +0000

description:
Delete unused functions eisa_mem_alloc() and eisa_mem_free().

diffstat:

 sys/arch/i386/eisa/eisa_machdep.c    |  25 ++-----------------------
 sys/arch/i386/include/eisa_machdep.h |   6 +-----
 2 files changed, 3 insertions(+), 28 deletions(-)

diffs (66 lines):

diff -r 30073b051fc7 -r 6ef0157d61cc sys/arch/i386/eisa/eisa_machdep.c
--- a/sys/arch/i386/eisa/eisa_machdep.c Tue Nov 17 23:45:39 2009 +0000
+++ b/sys/arch/i386/eisa/eisa_machdep.c Tue Nov 17 23:46:27 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eisa_machdep.c,v 1.32 2008/06/27 11:12:06 cegger Exp $ */
+/*     $NetBSD: eisa_machdep.c,v 1.33 2009/11/17 23:46:27 dyoung Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: eisa_machdep.c,v 1.32 2008/06/27 11:12:06 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: eisa_machdep.c,v 1.33 2009/11/17 23:46:27 dyoung Exp $");
 
 #include "ioapic.h"
 
@@ -237,27 +237,6 @@
 }
 
 int
-eisa_mem_alloc(bus_space_tag_t t, bus_size_t size, bus_size_t 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(bus_space_tag_t t, bus_space_handle_t bah, bus_size_t size)
-{
-
-       bus_space_free(t, bah, size);
-}
-
-int
 eisa_conf_read_mem(eisa_chipset_tag_t ec, int slot,
     int func, int entry, struct eisa_cfg_mem *ecm)
 {
diff -r 30073b051fc7 -r 6ef0157d61cc sys/arch/i386/include/eisa_machdep.h
--- a/sys/arch/i386/include/eisa_machdep.h      Tue Nov 17 23:45:39 2009 +0000
+++ b/sys/arch/i386/include/eisa_machdep.h      Tue Nov 17 23:46:27 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eisa_machdep.h,v 1.11 2008/06/27 11:12:06 cegger Exp $ */
+/*     $NetBSD: eisa_machdep.h,v 1.12 2009/11/17 23:46:27 dyoung Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -67,10 +67,6 @@
 void           *eisa_intr_establish(eisa_chipset_tag_t,
                    eisa_intr_handle_t, int, int, int (*)(void *), void *);
 void           eisa_intr_disestablish(eisa_chipset_tag_t, void *);
-int            eisa_mem_alloc(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(bus_space_tag_t, bus_space_handle_t,
-                   bus_size_t);
 
 int            eisa_conf_read_mem(eisa_chipset_tag_t, int, int, int,
                    struct eisa_cfg_mem *);



Home | Main Index | Thread Index | Old Index