From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNZD-0002un-13 for qemu-devel@nongnu.org; Fri, 28 Aug 2015 13:35:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVNZ8-0008I9-1T for qemu-devel@nongnu.org; Fri, 28 Aug 2015 13:35:54 -0400 Received: from mail-bn1on0077.outbound.protection.outlook.com ([157.56.110.77]:60832 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNZ7-0008Hq-S3 for qemu-devel@nongnu.org; Fri, 28 Aug 2015 13:35:49 -0400 From: Alistair Francis Date: Fri, 28 Aug 2015 10:35:44 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v5 0/4] xlnx-zynqmp: Connect the AHCI SATA device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, crosthwaitepeter@gmail.com Cc: saipava@xilinx.com, edgar.iglesias@xilinx.com, jsnow@redhat.com, afaerber@suse.de, alistair.francis@xilinx.com This series connects the AHCI SATA device to the ZynqMP machine. It requires a restructure of the AHCI file to make the AHCI state struct visible. It also requires a small change to the ahci_irq_lower() and ahci_irq_raise() functions to avoid assuming that the AHCIState is a child of AHCIPCIState. V5: - Remove the return checks when setting PCIDevice V4: - Remove unnesicary casts - Use object_dynamic_cast() instead of object_class_dynamic_cast() V3: - Perform checks inside the ahci_irq_lower() and ahci_irq_raise() functions to ensure the correct parent object is used. V2: - Macroify the number of SATA ports - Update the non-realise error_propagate() calls to use error_abort instead. Alistair Francis (4): ahci: Seperate the AHCI state structure into the header ahci.c: Don't assume AHCIState's parent is AHCIPCIState xlnx-zynqmp.c: Convert some of the error_propagate() calls to error_abort xlnx-zynqmp: Connect the sysbus AHCI to ZynqMP hw/arm/xlnx-zynqmp.c | 33 +++++++++++++++++++++------------ hw/ide/ahci.c | 26 +++++++------------------- hw/ide/ahci.h | 16 ++++++++++++++++ include/hw/arm/xlnx-zynqmp.h | 3 +++ 4 files changed, 47 insertions(+), 31 deletions(-)