smartpqi_sis.h 1.3 KB
Newer Older
D
Don Brace 已提交
1
/* SPDX-License-Identifier: GPL-2.0 */
2 3
/*
 *    driver for Microsemi PQI-based storage controllers
D
Don Brace 已提交
4
 *    Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries
D
Don Brace 已提交
5
 *    Copyright (c) 2016-2018 Microsemi Corporation
6 7
 *    Copyright (c) 2016 PMC-Sierra, Inc.
 *
D
Don Brace 已提交
8
 *    Questions/Comments/Bugfixes to storagedev@microchip.com
9 10 11 12 13 14 15
 *
 */

#if !defined(_SMARTPQI_SIS_H)
#define _SMARTPQI_SIS_H

int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info);
16
int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info);
17
bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info);
18
bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info);
19 20 21 22
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);
23
void sis_enable_intx(struct pqi_ctrl_info *ctrl_info);
24
void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info);
25
int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info);
26
int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info);
27 28
void sis_write_driver_scratch(struct pqi_ctrl_info *ctrl_info, u32 value);
u32 sis_read_driver_scratch(struct pqi_ctrl_info *ctrl_info);
29
void sis_soft_reset(struct pqi_ctrl_info *ctrl_info);
30 31

#endif	/* _SMARTPQI_SIS_H */