From owner-cvs-src-old@FreeBSD.ORG Fri Apr 17 23:22:15 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 8120710656EE for ; Fri, 17 Apr 2009 23:22:14 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4DD6F8FC1B for ; Fri, 17 Apr 2009 23:22:14 +0000 (UTC) (envelope-from marius@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 n3HNMEG3008540 for ; Fri, 17 Apr 2009 23:22:14 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3HNMEM5008537 for cvs-src-old@freebsd.org; Fri, 17 Apr 2009 23:22:14 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <200904172322.n3HNMEM5008537@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Fri, 17 Apr 2009 23:22:06 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7_2 Subject: cvs commit: src/sys/dev/fb machfb.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: Fri, 17 Apr 2009 23:22:16 -0000 marius 2009-04-17 23:22:06 UTC FreeBSD src repository Modified files: (Branch: RELENG_7_2) sys/dev/fb machfb.c Log: SVN rev 191231 on 2009-04-17 23:22:06Z by marius MFC: r191076 - Remove the second license as I'm also fine with the first one. - Remove redundant softc members for RIDs. - Change some softc members to be unsigned where more appropriate. - Add some missing const. - Remove support for mmap(2)'ing VGA I/O as it was broken [1] and not required by X.Org anyway. - Fix some confusion between bus, physical and virtual addresses which mostly consisted in using members of struct video_adapter inappropriately but wasn't fatal except for the regular framebuffer mmap(2)'ing. - Remove redundant bzero(9)'ing of the softc. - Don't map the framebuffer twice in case the firmware has already mapped it as besides wasting resources this isn't possible with all MMUs. This is a bit tricky as a) just because the firmware provides a property with a virtual address doesn't mean it's actually mapped (but typically is when the framebuffer is the console) and b) the firmware doesn't necessarily map it with the same byteorder as we do. This makes machfb(4) work on machines with cheetah-class MMUs (including X.Org). Reported by: Michael Plass [1] Approved by: re (kib) Revision Changes Path 1.5.8.3 +132 -140 src/sys/dev/fb/machfb.c