From owner-cvs-all@FreeBSD.ORG Sat Aug 14 23:54:28 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 297E016A4CE; Sat, 14 Aug 2004 23:54:28 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DC7243D1F; Sat, 14 Aug 2004 23:54:28 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7ENsSbo063322; Sat, 14 Aug 2004 23:54:28 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7ENsS7a063321; Sat, 14 Aug 2004 23:54:28 GMT (envelope-from marius) Message-Id: <200408142354.i7ENsS7a063321@repoman.freebsd.org> From: Marius Strobl Date: Sat, 14 Aug 2004 23:54:27 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/uart uart_bus_isa.c uart_cpu.h uart_cpu_alpha.c uart_cpu_amd64.c uart_cpu_i386.c uart_cpu_ia64.c uart_cpu_pc98.c uart_cpu_sparc64.c src/sys/modules/uart Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2004 23:54:28 -0000 marius 2004-08-14 23:54:27 UTC FreeBSD src repository Modified files: sys/dev/uart uart_bus_isa.c uart_cpu.h uart_cpu_alpha.c uart_cpu_amd64.c uart_cpu_i386.c uart_cpu_ia64.c uart_cpu_pc98.c uart_cpu_sparc64.c sys/modules/uart Makefile Log: - Introduce an uart_cpu_identify() which is implemented in uart_cpu_.c and that can be used as an identify function for all kinds of busses on a certain platform. Expect for sparc64 these are only stubs right now. [1] - For sparc64, add code to its uart_cpu_identify() for registering the on- board ISA UARTs and their resources based on information obtained from Open Firmware. It would be better if this would be done in the OFW ISA code. However, due to the common FreeBSD ISA code and PNP-IDs not always being present in the properties of the ISA nodes there seems to be no good way to implement that. Therefore special casing UARTs as the sole really relevant ISA devices on sparc64 seemed reasonable. [2] Approved by: marcel Discussed with: marcel [1], tmm [2] Tested by: make universe Revision Changes Path 1.3 +2 -0 src/sys/dev/uart/uart_bus_isa.c 1.6 +1 -0 src/sys/dev/uart/uart_cpu.h 1.8 +6 -0 src/sys/dev/uart/uart_cpu_alpha.c 1.8 +6 -0 src/sys/dev/uart/uart_cpu_amd64.c 1.8 +6 -0 src/sys/dev/uart/uart_cpu_i386.c 1.8 +6 -0 src/sys/dev/uart/uart_cpu_ia64.c 1.12 +6 -0 src/sys/dev/uart/uart_cpu_pc98.c 1.11 +46 -0 src/sys/dev/uart/uart_cpu_sparc64.c 1.11 +7 -2 src/sys/modules/uart/Makefile