From patchwork Tue May 18 06:56:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Reinecke X-Patchwork-Id: 52845 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3DC9CB7D1E for ; Tue, 18 May 2010 18:21:11 +1000 (EST) Received: from localhost ([127.0.0.1]:46302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEI2y-0002Rj-VP for incoming@patchwork.ozlabs.org; Tue, 18 May 2010 04:21:05 -0400 Received: from [140.186.70.92] (port=60620 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEHyH-0002BJ-1P for qemu-devel@nongnu.org; Tue, 18 May 2010 04:17:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEGja-0002eE-1g for qemu-devel@nongnu.org; Tue, 18 May 2010 03:00:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59132 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEGjZ-0002dv-Dz for qemu-devel@nongnu.org; Tue, 18 May 2010 02:56:57 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 820EE87104; Tue, 18 May 2010 08:56:56 +0200 (CEST) Date: Tue, 18 May 2010 08:56:56 +0200 To: Nicholas A.Bellinger User-Agent: Heirloom mailx 12.2 01/07/07 MIME-Version: 1.0 Message-Id: <20100518065656.392942A361@ochil.suse.de> From: hare@suse.de (Hannes Reinecke) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 1/4] megasas: Add more controller property definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The megaraid_sas driver has some more controller property defintions. Signed-off-by: Hannes Reinecke --- hw/mfi.h | 41 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 39 insertions(+), 2 deletions(-) diff --git a/hw/mfi.h b/hw/mfi.h index f3c82e0..312563e 100644 --- a/hw/mfi.h +++ b/hw/mfi.h @@ -508,7 +508,7 @@ struct mfi_init_qinfo { uint32_t ci_addr_hi; } __attribute__ ((packed)); -/* SAS (?) controller properties, part of mfi_ctrl_info */ +/* Controller properties */ struct mfi_ctrl_props { uint16_t seq_num; uint16_t pred_fail_poll_interval; @@ -531,7 +531,44 @@ struct mfi_ctrl_props { uint16_t ecc_bucket_leak_rate; uint8_t restore_hotspare_on_insertion; uint8_t expose_encl_devices; - uint8_t reserved[38]; + uint8_t maintainPdFailHistory; + uint8_t disallowHostRequestReordering; + uint8_t abortCCOnError; + uint8_t loadBalanceMode; + uint8_t disableAutoDetectBackplane; + uint8_t snapVDSpace; + struct { + uint32_t copyBackDisabled : 1; // set TRUE to disable copyBack (0=copback enabled) + uint32_t SMARTerEnabled : 1; + uint32_t prCorrectUnconfiguredAreas : 1; + uint32_t useFdeOnly : 1; + uint32_t disableNCQ : 1; + uint32_t SSDSMARTerEnabled : 1; + uint32_t SSDPatrolReadEnabled : 1; + uint32_t enableSpinDownUnconfigured : 1; + uint32_t autoEnhancedImport : 1; + uint32_t enableSecretKeyControl : 1; + uint32_t disableOnlineCtrlReset : 1; + uint32_t allowBootWithPinnedCache : 1; + uint32_t disableSpinDownHS : 1; + uint32_t enableJBOD : 1; + uint32_t reserved :18; + } OnOffProperties; + uint8_t autoSnapVDSpace; /* % of source LD to be + * reserved for auto snapshot + * in snapshot repository, for + * metadata and user data + * 1=5%, 2=10%, 3=15% and so on + */ + uint8_t viewSpace; /* snapshot writeable VIEWs + * capacity as a % of source LD + * capacity. 0=READ only + * 1=5%, 2=10%, 3=15% and so on + */ + uint16_t spinDownTime; /* # of idle minutes before device + * is spun down (0=use FW defaults) + */ + uint8_t reserved[24]; } __attribute__ ((packed)); /* PCI information about the card. */