From owner-cvs-src-old@FreeBSD.ORG Mon Nov 16 15:38:47 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 E4BD3106568B for ; Mon, 16 Nov 2009 15:38:47 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D123A8FC2A for ; Mon, 16 Nov 2009 15:38:47 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nAGFcl0h035451 for ; Mon, 16 Nov 2009 15:38:47 GMT (envelope-from mav@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAGFclH3035450 for cvs-src-old@freebsd.org; Mon, 16 Nov 2009 15:38:47 GMT (envelope-from mav@repoman.freebsd.org) Message-Id: <200911161538.nAGFclH3035450@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to mav@repoman.freebsd.org using -f From: Alexander Motin Date: Mon, 16 Nov 2009 15:38:27 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ahci ahci.c ahci.h src/sys/dev/ata ata-pci.c ata-pci.h src/sys/dev/ata/chipsets ata-ahci.c ata-jmicron.c ata-marvell.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, 16 Nov 2009 15:38:48 -0000 mav 2009-11-16 15:38:27 UTC FreeBSD src repository Modified files: sys/dev/ahci ahci.c ahci.h sys/dev/ata ata-pci.c ata-pci.h sys/dev/ata/chipsets ata-ahci.c ata-jmicron.c ata-marvell.c Log: SVN rev 199322 on 2009-11-16 15:38:27Z by mav Change the way in which AHCI+PATA combined controllers, such as JMicron and Marvell handled. Instead of trying to attach two different drivers to single device, wrapping each call, make one of them (atajmicron, atamarvell) attach do device solely, but create child device for AHCI driver, passing it all required resources. It is quite easy, as none of resources are shared, except IRQ. As result, it: - makes drivers operation more independent and straitforward, - allows to use new ahci(4) driver with such devices, adding support for new features, such as PMP and NCQ, same time keeping legacy PATA support, - will allow to just drop old ataahci driver, when it's time come. Revision Changes Path 1.15 +107 -16 src/sys/dev/ahci/ahci.c 1.5 +2 -0 src/sys/dev/ahci/ahci.h 1.146 +157 -98 src/sys/dev/ata/ata-pci.c 1.115 +12 -7 src/sys/dev/ata/ata-pci.h 1.29 +86 -8 src/sys/dev/ata/chipsets/ata-ahci.c 1.7 +20 -106 src/sys/dev/ata/chipsets/ata-jmicron.c 1.17 +29 -64 src/sys/dev/ata/chipsets/ata-marvell.c