From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVTdH-00085N-QG for qemu-devel@nongnu.org; Fri, 28 Aug 2015 20:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVTdD-0006nC-Og for qemu-devel@nongnu.org; Fri, 28 Aug 2015 20:04:31 -0400 Received: from mail-by2on0084.outbound.protection.outlook.com ([207.46.100.84]:60048 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVTdD-0006mN-DQ for qemu-devel@nongnu.org; Fri, 28 Aug 2015 20:04:27 -0400 From: Alistair Francis Date: Fri, 28 Aug 2015 17:04:20 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v6 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. V6: - Fix up Macros 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 | 32 ++++++++++++++++++++------------ hw/ide/ahci.c | 26 +++++++------------------- hw/ide/ahci.h | 16 ++++++++++++++++ include/hw/arm/xlnx-zynqmp.h | 3 +++ 4 files changed, 46 insertions(+), 31 deletions(-)