From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV7Lf-0007PC-Vw for qemu-devel@nongnu.org; Thu, 27 Aug 2015 20:16:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV7Lc-0004I0-PY for qemu-devel@nongnu.org; Thu, 27 Aug 2015 20:16:51 -0400 Received: from mail-by2on0066.outbound.protection.outlook.com ([207.46.100.66]:18658 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV7Lc-0004Hc-ED for qemu-devel@nongnu.org; Thu, 27 Aug 2015 20:16:48 -0400 From: Alistair Francis Date: Thu, 27 Aug 2015 17:16:43 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v4 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. 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 | 40 +++++++++++++++++++++------------------- hw/ide/ahci.h | 16 ++++++++++++++++ include/hw/arm/xlnx-zynqmp.h | 3 +++ 4 files changed, 61 insertions(+), 31 deletions(-)