2019-03-15 05:58:09 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2016-06-28 05:41:00 +08:00
|
|
|
/*
|
|
|
|
* driver for Microsemi PQI-based storage controllers
|
2019-03-15 05:58:02 +08:00
|
|
|
* Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries
|
|
|
|
* Copyright (c) 2016-2018 Microsemi Corporation
|
2016-06-28 05:41:00 +08:00
|
|
|
* Copyright (c) 2016 PMC-Sierra, Inc.
|
|
|
|
*
|
2019-03-15 05:58:02 +08:00
|
|
|
* Questions/Comments/Bugfixes to storagedev@microchip.com
|
2016-06-28 05:41:00 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(_SMARTPQI_SIS_H)
|
|
|
|
#define _SMARTPQI_SIS_H
|
|
|
|
|
|
|
|
int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info);
|
2017-05-04 07:53:05 +08:00
|
|
|
int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info);
|
2016-06-28 05:41:00 +08:00
|
|
|
bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info);
|
2017-05-04 07:52:46 +08:00
|
|
|
bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info);
|
2016-06-28 05:41:00 +08:00
|
|
|
int sis_get_ctrl_properties(struct pqi_ctrl_info *ctrl_info);
|
|
|
|
int sis_get_pqi_capabilities(struct pqi_ctrl_info *ctrl_info);
|
|
|
|
int sis_init_base_struct_addr(struct pqi_ctrl_info *ctrl_info);
|
|
|
|
void sis_enable_msix(struct pqi_ctrl_info *ctrl_info);
|
2017-05-04 07:53:05 +08:00
|
|
|
void sis_enable_intx(struct pqi_ctrl_info *ctrl_info);
|
2017-05-04 07:52:40 +08:00
|
|
|
void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info);
|
2017-08-11 02:46:39 +08:00
|
|
|
int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info);
|
2016-06-28 05:41:00 +08:00
|
|
|
int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info);
|
2016-09-01 03:54:41 +08:00
|
|
|
void sis_write_driver_scratch(struct pqi_ctrl_info *ctrl_info, u32 value);
|
|
|
|
u32 sis_read_driver_scratch(struct pqi_ctrl_info *ctrl_info);
|
2018-12-19 07:39:07 +08:00
|
|
|
void sis_soft_reset(struct pqi_ctrl_info *ctrl_info);
|
2016-06-28 05:41:00 +08:00
|
|
|
|
|
|
|
#endif /* _SMARTPQI_SIS_H */
|