From owner-cvs-src@FreeBSD.ORG Fri Mar 19 18:14:03 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7682316A4CE; Fri, 19 Mar 2004 18:14:03 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58F1243D2D; Fri, 19 Mar 2004 18:14:03 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2K2E3Ge052218; Fri, 19 Mar 2004 18:14:03 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2K2E3ps052217; Fri, 19 Mar 2004 18:14:03 -0800 (PST) (envelope-from marcel) Message-Id: <200403200214.i2K2E3ps052217@repoman.freebsd.org> From: Marcel Moolenaar Date: Fri, 19 Mar 2004 18:14:03 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/conf files src/sys/dev/uart 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 uart_subr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 02:14:03 -0000 marcel 2004/03/19 18:14:03 PST FreeBSD src repository Modified files: sys/conf files sys/dev/uart 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 Added files: sys/dev/uart uart_subr.c Log: Introduce the hw.uart.console and hw.uart.dbgport environment variables to select a serial console and debug port (resp). On ia64 these replace the use of hints completely and take precedence over hints on alpha, amd64 and i386. On sparc64 these variables are not yet recognised. The reasons for introducing these variables are: 1. Hints have side-effects. They reserve the unit number for use by isa or acpi devices and therefore cannot be used to select a pci device. Also, the use of a unit number to select a device prior to bus enumeration is nonsense. The new variables have no side- effects and are not based on unit numbers. 2. Hints don't have the expression power to allow the sysadmin to select UARTs that are not legacy PC devices and need the support of compile-time constants to give the sysadmin some level of flexibility. The hw.uart.console and hw.uart.dbgport variables specify a list of attributes. An attribute is a tag-value pair, seperated by a colon. Attributes are seperated by a comma. Where possible, tags are the same as those in /etc/remote (only br and pa in practice). Details can be found in the manpage (not part of this commit). Not tested on: amd64, pc98 Revision Changes Path 1.877 +1 -0 src/sys/conf/files 1.5 +6 -2 src/sys/dev/uart/uart_cpu.h 1.7 +13 -3 src/sys/dev/uart/uart_cpu_alpha.c 1.7 +9 -2 src/sys/dev/uart/uart_cpu_amd64.c 1.7 +9 -2 src/sys/dev/uart/uart_cpu_i386.c 1.7 +8 -46 src/sys/dev/uart/uart_cpu_ia64.c 1.10 +8 -1 src/sys/dev/uart/uart_cpu_pc98.c 1.8 +4 -1 src/sys/dev/uart/uart_cpu_sparc64.c 1.1 +247 -0 src/sys/dev/uart/uart_subr.c (new)