mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 07:15:07 +07:00
2cc37b1575
Reviewed-by: David Carroll <david.carroll@microsemi.com> Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Reviewed-by: Scott Teel <scott.teel@microsemi.com> Reviewed-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>
32 lines
1.3 KiB
C
32 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* driver for Microsemi PQI-based storage controllers
|
|
* Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries
|
|
* Copyright (c) 2016-2018 Microsemi Corporation
|
|
* Copyright (c) 2016 PMC-Sierra, Inc.
|
|
*
|
|
* Questions/Comments/Bugfixes to storagedev@microchip.com
|
|
*
|
|
*/
|
|
|
|
#if !defined(_SMARTPQI_SIS_H)
|
|
#define _SMARTPQI_SIS_H
|
|
|
|
int sis_wait_for_ctrl_ready(struct pqi_ctrl_info *ctrl_info);
|
|
int sis_wait_for_ctrl_ready_resume(struct pqi_ctrl_info *ctrl_info);
|
|
bool sis_is_firmware_running(struct pqi_ctrl_info *ctrl_info);
|
|
bool sis_is_kernel_up(struct pqi_ctrl_info *ctrl_info);
|
|
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);
|
|
void sis_enable_intx(struct pqi_ctrl_info *ctrl_info);
|
|
void sis_shutdown_ctrl(struct pqi_ctrl_info *ctrl_info);
|
|
int sis_pqi_reset_quiesce(struct pqi_ctrl_info *ctrl_info);
|
|
int sis_reenable_sis_mode(struct pqi_ctrl_info *ctrl_info);
|
|
void sis_write_driver_scratch(struct pqi_ctrl_info *ctrl_info, u32 value);
|
|
u32 sis_read_driver_scratch(struct pqi_ctrl_info *ctrl_info);
|
|
void sis_soft_reset(struct pqi_ctrl_info *ctrl_info);
|
|
|
|
#endif /* _SMARTPQI_SIS_H */
|