From owner-freebsd-current Tue Apr 13 1: 1:24 1999 Delivered-To: freebsd-current@freebsd.org Received: from f77.nop.or.jp (f77.nop.or.jp [210.145.217.241]) by hub.freebsd.org (Postfix) with ESMTP id E456715665 for ; Tue, 13 Apr 1999 01:01:02 -0700 (PDT) (envelope-from uch@nop.or.jp) Received: from localhost (localhost [127.0.0.1]) by f77.nop.or.jp (8.9.1a/3.7W) with ESMTP id QAA05532 for ; Tue, 13 Apr 1999 16:58:36 +0900 (JST) To: current@FreeBSD.ORG Subject: newconfig/new-bus X-Mailer: Mew version 1.92 on Emacs 20.2 / Mule 3.0 (MOMIJINOGA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990413165836K.uch@nop.or.jp> Date: Tue, 13 Apr 1999 16:58:36 +0900 From: UCHIYAMA Yasushi X-Dispatcher: imput version 971024 Lines: 34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ftp://ftp.nop.or.jp/users/uch/PCMCIA/FreeBSD/sys4c990410-newconfig990413.patch.gz This is newest newconfig patch against to 4.0-CURRENT(990410). FreeBSD/newconfig provides NetBSD compatible frame work ,bus_space(9) (bus_memio.h,bus_pio.h are no longer required.) and `bus name`_intr_establish. and also provides resource management. This feature makes easy to implement and feedback drivers among *BSD. As a sample, dev/pcmcia/ directory was imported from NetBSD. The amounts of #ifdef __FreeBSD__ is little. I'm working CardBus (dev/cardbus/) driver with NetBSD people. (originary written for NetBSD) Newconfig may not to be seem exciting, but this is powerful and flexible implementation in fact. please see this patch. Following table is guide map for comparison. newconfig new-bus framework: kern/subr_autoconf.c kern/subr_bus.c sys/device.h sys/bus.h resource management: kern/subr_rman.c kern/subr_rman.c i386/i386/resource.c i386/i386/nexus.c mainbus: i386/i386/mainbus.c i386/i386/nexus.c ISA bus: i386/isa/isa_machdep.c i386/i386/nisa.c PCI bus: i386/pci/pci_machdep.c pci/pci.c --- UCHIYAMA Yasushi uch@nop.or.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message