diff options
author | Kevin Barnett <kevin.barnett@microsemi.com> | 2016-08-31 21:54:41 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-02 12:21:38 +0200 |
commit | ff6abb7383d2eec6c8c988ff661352e66f245686 (patch) | |
tree | df6501219015b5c0c70684eb0ef39ff50223ea5e /drivers/scsi/smartpqi/smartpqi.h | |
parent | scsi: smartpqi: enhance reset logic (diff) | |
download | linux-ff6abb7383d2eec6c8c988ff661352e66f245686.tar.xz linux-ff6abb7383d2eec6c8c988ff661352e66f245686.zip |
scsi: smartpqi: add kdump support
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/smartpqi/smartpqi.h')
-rw-r--r-- | drivers/scsi/smartpqi/smartpqi.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi.h b/drivers/scsi/smartpqi/smartpqi.h index 053be6be2077..5f965adfab32 100644 --- a/drivers/scsi/smartpqi/smartpqi.h +++ b/drivers/scsi/smartpqi/smartpqi.h @@ -79,11 +79,13 @@ struct pqi_ctrl_registers { __le32 sis_ctrl_to_host_doorbell; /* 9Ch */ u8 reserved3[0xa0 - (0x9c + sizeof(__le32))]; __le32 sis_ctrl_to_host_doorbell_clear; /* A0h */ - u8 reserved4[0xbc - (0xa0 + sizeof(__le32))]; + u8 reserved4[0xb0 - (0xa0 + sizeof(__le32))]; + __le32 sis_driver_scratch; /* B0h */ + u8 reserved5[0xbc - (0xb0 + sizeof(__le32))]; __le32 sis_firmware_status; /* BCh */ - u8 reserved5[0x1000 - (0xbc + sizeof(__le32))]; + u8 reserved6[0x1000 - (0xbc + sizeof(__le32))]; __le32 sis_mailbox[8]; /* 1000h */ - u8 reserved6[0x4000 - (0x1000 + (sizeof(__le32) * 8))]; + u8 reserved7[0x4000 - (0x1000 + (sizeof(__le32) * 8))]; /* * The PQI spec states that the PQI registers should be at * offset 0 from the PCIe BAR 0. However, we can't map @@ -963,6 +965,11 @@ struct pqi_ctrl_info { struct semaphore lun_reset_sem; }; +enum pqi_ctrl_mode { + UNKNOWN, + PQI_MODE +}; + /* * assume worst case: SATA queue depth of 31 minus 4 internal firmware commands */ |