From 76b523db0074aaf489cb80ccd0943b69ea67e30b Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Wed, 1 Aug 2012 12:46:50 +0200 Subject: megasas: static SAS addresses This patch introduces a new property 'sas_address' which allows the user to specify the SAS address for the HBA. The default address is following the NAA locally assigned identifier format with the locally assigned address 0x525400 as used eg for the MAC addresses. The lower bytes are set to the pci address which will ensure uniqueness for the local machine. The port addresses are now calculated based on the magic number 0x1221 (which is found in real hardware, too) plus the device number. Signed-off-by: Hannes Reinecke Cc: Paolo Bonzini Cc: Andreas Faerber Cc: Anthony Liguori Cc: Alexander Graf Signed-off-by: Paolo Bonzini --- hw/mfi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/mfi.h') diff --git a/hw/mfi.h b/hw/mfi.h index 3045d4eb6e..436b6906b1 100644 --- a/hw/mfi.h +++ b/hw/mfi.h @@ -656,6 +656,7 @@ struct mfi_info_device { #define MFI_INFO_DEV_SAS3G 0x02 #define MFI_INFO_DEV_SATA1 0x04 #define MFI_INFO_DEV_SATA3G 0x08 +#define MFI_INFO_DEV_PCIE 0x10 uint8_t reserved[6]; uint8_t port_count; uint64_t port_addr[8]; -- cgit v1.2.3