2019-03-14 21:58:09 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2016-06-27 21:41:00 +00:00
|
|
|
/*
|
2021-07-14 18:28:40 +00:00
|
|
|
* driver for Microchip PQI-based storage controllers
|
2023-04-28 15:37:11 +00:00
|
|
|
* Copyright (c) 2019-2023 Microchip Technology Inc. and its subsidiaries
|
2019-03-14 21:58:02 +00:00
|
|
|
* Copyright (c) 2016-2018 Microsemi Corporation
|
2016-06-27 21:41:00 +00:00
|
|
|
* Copyright (c) 2016 PMC-Sierra, Inc.
|
|
|
|
*
|
2019-03-14 21:58:02 +00:00
|
|
|
* Questions/Comments/Bugfixes to storagedev@microchip.com
|
2016-06-27 21:41:00 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(_SMARTPQI_SIS_H)
|
|
|
|
#define _SMARTPQI_SIS_H
|
|
|
|
|
2022-02-01 21:49:03 +00:00
|
|
|
void sis_verify_structures(void);
|
2016-06-27 21:41:00 +00:00
|
|
|
int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info);
|
2017-05-03 23:53:05 +00:00
|
|
|
int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info);
|
2016-06-27 21:41:00 +00:00
|
|
|
bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info);
|
2017-05-03 23:52:46 +00:00
|
|
|
bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info);
|
2016-06-27 21:41:00 +00: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-03 23:53:05 +00:00
|
|
|
void sis_enable_intx(struct pqi_ctrl_info *ctrl_info);
|
2021-09-28 23:54:34 +00:00
|
|
|
void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info,
|
|
|
|
enum pqi_ctrl_shutdown_reason ctrl_shutdown_reason);
|
2017-08-10 18:46:39 +00:00
|
|
|
int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info);
|
2016-06-27 21:41:00 +00:00
|
|
|
int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info);
|
2016-08-31 19:54:41 +00: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-18 23:39:07 +00:00
|
|
|
void sis_soft_reset(struct pqi_ctrl_info *ctrl_info);
|
2021-03-11 20:15:09 +00:00
|
|
|
u32 sis_get_product_id(struct pqi_ctrl_info *ctrl_info);
|
2021-09-28 23:54:33 +00:00
|
|
|
int sis_wait_for_fw_triage_completion(struct pqi_ctrl_info *ctrl_info);
|
2016-06-27 21:41:00 +00:00
|
|
|
|
2022-07-08 18:47:56 +00:00
|
|
|
extern unsigned int sis_ctrl_ready_timeout_secs;
|
|
|
|
|
2016-06-27 21:41:00 +00:00
|
|
|
#endif /* _SMARTPQI_SIS_H */
|