1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * driver for Microsemi PQI-based storage controllers 4 * Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries 5 * Copyright (c) 2016-2018 Microsemi Corporation 6 * Copyright (c) 2016 PMC-Sierra, Inc. 7 * 8 * Questions/Comments/Bugfixes to storagedev@microchip.com 9 * 10 */ 11 12#if !defined(_SMARTPQI_SIS_H) 13#define _SMARTPQI_SIS_H 14 15int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info); 16int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info); 17bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info); 18bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info); 19int sis_get_ctrl_properties(struct pqi_ctrl_info *ctrl_info); 20int sis_get_pqi_capabilities(struct pqi_ctrl_info *ctrl_info); 21int sis_init_base_struct_addr(struct pqi_ctrl_info *ctrl_info); 22void sis_enable_msix(struct pqi_ctrl_info *ctrl_info); 23void sis_enable_intx(struct pqi_ctrl_info *ctrl_info); 24void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info); 25int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info); 26int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info); 27void sis_write_driver_scratch(struct pqi_ctrl_info *ctrl_info, u32 value); 28u32 sis_read_driver_scratch(struct pqi_ctrl_info *ctrl_info); 29void sis_soft_reset(struct pqi_ctrl_info *ctrl_info); 30u32 sis_get_product_id(struct pqi_ctrl_info *ctrl_info); 31 32#endif /* _SMARTPQI_SIS_H */ 33