From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 12 19:31:29 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4993916A4CE for ; Thu, 12 Aug 2004 19:31:29 +0000 (GMT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A28A043D2F for ; Thu, 12 Aug 2004 19:31:28 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i7CJVQ1a091237 for ; Thu, 12 Aug 2004 21:31:27 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i7CJVLbn091236 for freebsd-sparc64@freebsd.org; Thu, 12 Aug 2004 21:31:21 +0200 (CEST) (envelope-from marius) Date: Thu, 12 Aug 2004 21:31:21 +0200 From: Marius Strobl To: freebsd-sparc64@freebsd.org Message-ID: <20040812213121.D31182@newtrinity.zeist.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.27.0.4; VDF 6.27.0.7 (host: newtrinity.zeist.de) Subject: HEADS UP! recompile esp(4), hme(4), isp(4) and uart(4) modules [marius@freebsd.org: cvs commit: src/sys/conf files.powerpc files.sparc64 kmod.mk src/sys/dev/esp esp_sbus.c src/sys/dev/hme if_hme_sbus.c src/sys/dev/isp isp_sbus.c src/sys/dev/ofw ofw_bus.h ofw_bus_if.m...] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 19:31:29 -0000 I commited a larger change which requires the recompilation of the esp(4), hme(4), isp(4) and uart(4) modules together with the kernel next time you update 5-current. ----- Forwarded message from Marius Strobl ----- <...> Log: - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a subset ("compatible", "device_type", "model" and "name") of the standard properties in drivers for devices on Open Firmware supported busses. The standard properties "reg", "interrupts" und "address" are not covered by this interface because they are only of interest in the respective bridge code. There's a remaining standard property "status" which is unclear how to support properly but which also isn't used in FreeBSD at present. This ofw_bus kobj-interface allows to replace the various (ebus_get_node(), ofw_pci_get_node(), etc.) and partially inconsistent (central_get_type() vs. sbus_get_device_type(), etc.) existing IVAR ones with a common one. This in turn allows to simplify and remove code-duplication in drivers for devices that can hang off of more than one OFW supported bus. - Convert the sparc64 Central, EBus, FHC, PCI and SBus bus drivers and the drivers for their children to use the ofw_bus kobj-interface. The IVAR- interfaces of the Central, EBus and FHC are entirely replaced by this. The PCI bus driver used its own kobj-interface and now also uses the ofw_bus one. The IVARs special to the SBus, e.g. for retrieving the burst size, remain. Beware: this causes an ABI-breakage for modules of drivers which used the IVAR-interfaces, i.e. esp(4), hme(4), isp(4) and uart(4), which need to be recompiled. The style-inconsistencies introduced in some of the bus drivers will be fixed by tmm@ in a generic clean-up of the respective drivers later (he requested to add the changes in the "new" style). - Convert the powerpc MacIO bus driver and the drivers for its children to use the ofw_bus kobj-interface. This invloves removing the IVARs related to the "reg" property which were unused and a leftover from the NetBSD origini of the code. There's no ABI-breakage caused by this because none of these driver are currently built as modules. There are other powerpc bus drivers which can be converted to the ofw_bus kobj-interface, e.g. the PCI bus driver, which should be done together with converting powerpc to use the OFW PCI code from sparc64. - Make the SBus and FHC front-end of zs(4) and the sparc64 eeprom(4) take advantage of the ofw_bus kobj-interface and simplify them a bit. Reviewed by: grehan, tmm Approved by: re (scottl) Discussed with: tmm Tested with: Sun AX1105, AXe, Ultra 2, Ultra 60; PPC cross-build on i386 Revision Changes Path 1.40 +1 -0 src/sys/conf/files.powerpc 1.57 +2 -1 src/sys/conf/files.sparc64 1.164 +1 -0 src/sys/conf/kmod.mk 1.6 +5 -4 src/sys/dev/esp/esp_sbus.c 1.13 +4 -3 src/sys/dev/hme/if_hme_sbus.c 1.15 +6 -5 src/sys/dev/isp/isp_sbus.c 1.1 +73 -0 src/sys/dev/ofw/ofw_bus.h (new) 1.1 +110 -0 src/sys/dev/ofw/ofw_bus_if.m (new) 1.4 +3 -5 src/sys/dev/pcf/envctrl.c 1.3 +7 -8 src/sys/dev/pcf/pcf_ebus.c 1.3 +4 -4 src/sys/dev/puc/puc_ebus.c 1.4 +4 -4 src/sys/dev/puc/puc_sbus.c 1.35 +12 -9 src/sys/dev/sab/sab.c 1.5 +5 -5 src/sys/dev/uart/uart_bus_ebus.c 1.6 +5 -9 src/sys/dev/zs/zs_macio.c 1.8 +12 -61 src/sys/dev/zs/zs_sbus.c 1.3 +1 -1 src/sys/modules/esp/Makefile 1.2 +2 -2 src/sys/modules/hme/Makefile 1.2 +1 -1 src/sys/modules/isp/Makefile 1.10 +3 -2 src/sys/modules/uart/Makefile 1.11 +2 -3 src/sys/powerpc/powermac/ata_macio.c 1.8 +2 -2 src/sys/powerpc/powermac/hrowpic.c 1.16 +69 -53 src/sys/powerpc/powermac/macio.c 1.5 +4 -27 src/sys/powerpc/powermac/maciovar.h 1.8 +2 -2 src/sys/powerpc/powermac/openpic_macio.c 1.4 +64 -46 src/sys/sparc64/central/central.c 1.2 +0 -47 src/sys/sparc64/central/centralvar.h (dead) 1.19 +71 -49 src/sys/sparc64/ebus/ebus.c 1.3 +0 -56 src/sys/sparc64/ebus/ebusvar.h (dead) 1.9 +52 -41 src/sys/sparc64/fhc/fhc.c 1.4 +10 -5 src/sys/sparc64/fhc/fhc_central.c 1.4 +8 -2 src/sys/sparc64/fhc/fhc_nexus.c 1.3 +5 -17 src/sys/sparc64/fhc/fhcvar.h 1.3 +2 -1 src/sys/sparc64/include/eeprom.h 1.13 +2 -1 src/sys/sparc64/isa/isa.c 1.10 +4 -1 src/sys/sparc64/pci/apb.c 1.8 +0 -7 src/sys/sparc64/pci/ofw_pci.h 1.5 +0 -17 src/sys/sparc64/pci/ofw_pci_if.m 1.4 +5 -2 src/sys/sparc64/pci/ofw_pcib.c 1.4 +4 -3 src/sys/sparc64/pci/ofw_pcib_subr.c 1.3 +1 -1 src/sys/sparc64/pci/ofw_pcib_subr.h 1.3 +67 -9 src/sys/sparc64/pci/ofw_pcibus.c 1.52 +7 -4 src/sys/sparc64/pci/psycho.c 1.31 +67 -25 src/sys/sparc64/sbus/sbus.c 1.4 +0 -8 src/sys/sparc64/sbus/sbusvar.h 1.5 +16 -9 src/sys/sparc64/sparc64/eeprom.c 1.7 +4 -19 src/sys/sparc64/sparc64/eeprom_ebus.c 1.7 +0 -136 src/sys/sparc64/sparc64/eeprom_fhc.c (dead) 1.7 +6 -20 src/sys/sparc64/sparc64/eeprom_sbus.c 1.10 +3 -1 src/sys/sparc64/sparc64/ofw_machdep.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" ----- End forwarded message -----