From owner-cvs-src@FreeBSD.ORG Sun Oct 26 21:45:35 2003 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 E06E316A4B3; Sun, 26 Oct 2003 21:45:35 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70E5943FD7; Sun, 26 Oct 2003 21:45:35 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9R5jZXJ036740; Sun, 26 Oct 2003 21:45:35 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9R5jZXX036739; Sun, 26 Oct 2003 21:45:35 -0800 (PST) (envelope-from marcel) Message-Id: <200310270545.h9R5jZXX036739@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 26 Oct 2003 21:45:35 -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/ia64/ia64 sys_machdep.c src/sys/ia64/include sysarch.h 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: Mon, 27 Oct 2003 05:45:36 -0000 marcel 2003/10/26 21:45:35 PST FreeBSD src repository Modified files: sys/ia64/ia64 sys_machdep.c sys/ia64/include sysarch.h Log: Add support for userland to access I/O port space. This is primarily added for XFree86. There are 2 reasons for doing this with sysarch(): 1. The memory mapped I/O space is not at a fixed physical address. An application has to use some interface to get the base address. It gets worse if the machine has multiple memory mapped I/O spaces. 2. Access to the memory mapped I/O space needs to happen through a translation that is flagged as uncachable. There's no interface that allows a process to do uncached memory I/O, other than though /dev/mem (possibly). So, until we either disallow direct access to I/O or bus space from userland or have a better way of doing this, sysarch() has the least negative impact on existing interfaces. Revision Changes Path 1.7 +70 -28 src/sys/ia64/ia64/sys_machdep.c 1.2 +13 -12 src/sys/ia64/include/sysarch.h