xref: /linux/drivers/net/ethernet/huawei/hinic3/hinic3_lld.h (revision ab93e0dd72c37d378dd936f031ffb83ff2bd87ce)
1*17fcb3dcSFan Gong /* SPDX-License-Identifier: GPL-2.0 */
2*17fcb3dcSFan Gong /* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. */
3*17fcb3dcSFan Gong 
4*17fcb3dcSFan Gong #ifndef _HINIC3_LLD_H_
5*17fcb3dcSFan Gong #define _HINIC3_LLD_H_
6*17fcb3dcSFan Gong 
7*17fcb3dcSFan Gong #include <linux/auxiliary_bus.h>
8*17fcb3dcSFan Gong 
9*17fcb3dcSFan Gong struct hinic3_event_info;
10*17fcb3dcSFan Gong 
11*17fcb3dcSFan Gong #define HINIC3_NIC_DRV_NAME "hinic3"
12*17fcb3dcSFan Gong 
13*17fcb3dcSFan Gong int hinic3_lld_init(void);
14*17fcb3dcSFan Gong void hinic3_lld_exit(void);
15*17fcb3dcSFan Gong void hinic3_adev_event_register(struct auxiliary_device *adev,
16*17fcb3dcSFan Gong 				void (*event_handler)(struct auxiliary_device *adev,
17*17fcb3dcSFan Gong 						      struct hinic3_event_info *event));
18*17fcb3dcSFan Gong void hinic3_adev_event_unregister(struct auxiliary_device *adev);
19*17fcb3dcSFan Gong struct hinic3_hwdev *hinic3_adev_get_hwdev(struct auxiliary_device *adev);
20*17fcb3dcSFan Gong 
21*17fcb3dcSFan Gong #endif
22