From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 22 15:45:16 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 01E75E11 for ; Tue, 22 Oct 2013 15:45:16 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id CA8DA2391 for ; Tue, 22 Oct 2013 15:45:15 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id F40F958387 for ; Tue, 22 Oct 2013 10:45:14 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id l4kpe0lLixv1 for ; Tue, 22 Oct 2013 10:45:14 -0500 (CDT) Received: from terminus.icecube.wisc.edu (terminus.icecube.wisc.edu [172.16.223.97]) by mail.icecube.wisc.edu (Postfix) with ESMTP id D825258384 for ; Tue, 22 Oct 2013 10:45:14 -0500 (CDT) Message-ID: <52669D8A.8020302@freebsd.org> Date: Tue, 22 Oct 2013 10:45:14 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: FreeBSD PowerPC ML Subject: Updates to MPC85XX PCI driver Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 15:45:16 -0000 I've been going through our tree trying to remove code duplication between AIM and Book-E, as people attentive to the commit logs might have seen. At the same time, I'm also trying to deduplicate the FDT and OFW code, since they are implementing many of the same interfaces and specifications. As part of that, I've adapted the MPC85XX PCI driver to use the generic ofw_pci code, which gives a quite substantial reduction in the driver and also substantially improves its robustness to variations on the device tree setup: http://people.freebsd.org/~nwhitehorn/pci_mpc85xx.diff I can currently only test this patch in QEMU, where it works fine, and there should be no functional changes at all, but tests on real hardware would be appreciated. If I don't hear anything, I'll commit this at the end of the week. -Nathan