From owner-cvs-all@FreeBSD.ORG Sun Sep 7 14:51:04 2003 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 A2D5016A4BF; Sun, 7 Sep 2003 14:51:04 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2831543FE1; Sun, 7 Sep 2003 14:51:04 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h87Lp30U087641; Sun, 7 Sep 2003 14:51:03 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h87Lp38Y087640; Sun, 7 Sep 2003 14:51:03 -0700 (PDT) Message-Id: <200309072151.h87Lp38Y087640@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 7 Sep 2003 14:51:03 -0700 (PDT) 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_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_dev_sab82532.c uart_dev_z8530.c 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: Sun, 07 Sep 2003 21:51:04 -0000 marcel 2003/09/07 14:51:03 PDT FreeBSD src repository Modified 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 uart_dev_sab82532.c uart_dev_z8530.c Log: Remove the assumption that a bus_space_handle_t is an I/O address from the SAB82532 and the Z8530 hardware drivers by introducing uart_cpu_busaddr(). The assumption is not true on pc98 where bus_space_handle_t is a pointer to a structure. The uart_cpu_busaddr() function will return the bus address corresponding the tag and handle given to it by the BAS. WARNING: the intend of the function is STRICTLY to allow hardware drivers to determine which logical channel they control and is NOT to be used for actual I/O. It is therefore EXPLICITLY allowed that uart_cpu_busaddr() returns only the lower 8 bits of the address and garbage in all other bits. No mistakes... Revision Changes Path 1.3 +3 -2 src/sys/dev/uart/uart_cpu.h 1.2 +14 -7 src/sys/dev/uart/uart_cpu_alpha.c 1.2 +14 -7 src/sys/dev/uart/uart_cpu_amd64.c 1.2 +14 -7 src/sys/dev/uart/uart_cpu_i386.c 1.2 +14 -7 src/sys/dev/uart/uart_cpu_ia64.c 1.2 +14 -7 src/sys/dev/uart/uart_cpu_pc98.c 1.2 +14 -7 src/sys/dev/uart/uart_cpu_sparc64.c 1.2 +2 -2 src/sys/dev/uart/uart_dev_sab82532.c 1.2 +2 -2 src/sys/dev/uart/uart_dev_z8530.c