From owner-cvs-src-old@FreeBSD.ORG Mon Feb 2 20:00:07 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5B9A10656C7 for ; Mon, 2 Feb 2009 20:00:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 832E68FC1E for ; Mon, 2 Feb 2009 20:00:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n12K07pD054935 for ; Mon, 2 Feb 2009 20:00:07 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n12K07ks054934 for cvs-src-old@freebsd.org; Mon, 2 Feb 2009 20:00:07 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200902022000.n12K07ks054934@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 2 Feb 2009 19:54:16 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pci pci_user.c pcireg.h src/usr.sbin/pciconf pciconf.8 pciconf.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2009 20:00:08 -0000 jhb 2009-02-02 19:54:16 UTC FreeBSD src repository Modified files: sys/dev/pci pci_user.c pcireg.h usr.sbin/pciconf pciconf.8 pciconf.c Log: SVN rev 188018 on 2009-02-02 19:54:16Z by jhb - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a device. The details include the current value of the BAR (including all the flag bits and the current base address), its length, and whether or not it is enabled. Since this operation is not invasive, non-root users are allowed to use it (unlike manual config register access which requires root). The intention is that userland apps (such as Xorg) will use this interface rather than dangerously frobbing the BARs from userland to obtain this information. - Add a new sub-mode to the 'list' mode of pciconf. The -b flag when used with -l will now list all the active BARs for each device. MFC after: 1 month Revision Changes Path 1.27 +70 -3 src/sys/dev/pci/pci_user.c 1.68 +3 -1 src/sys/dev/pci/pcireg.h 1.32 +27 -1 src/usr.sbin/pciconf/pciconf.8 1.36 +69 -6 src/usr.sbin/pciconf/pciconf.c