mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-19 13:50:48 +00:00

This is [1/3] part of hinic3 Ethernet driver initial submission. With this patch hinic3 is a valid kernel module but non-functional driver. The driver parts contained in this patch: Module initialization. PCI driver registration but with empty id_table. Auxiliary driver registration. Net device_ops registration but open/stop are empty stubs. tx/rx logic. All major data structures of the driver are fully introduced with the code that uses them but without their initialization code that requires management interface with the hw. Co-developed-by: Xin Guo <guoxin09@huawei.com> Signed-off-by: Xin Guo <guoxin09@huawei.com> Signed-off-by: Fan Gong <gongfan1@huawei.com> Co-developed-by: Gur Stavi <gur.stavi@huawei.com> Signed-off-by: Gur Stavi <gur.stavi@huawei.com> Link: https://patch.msgid.link/76a137ffdfe115c737c2c224f0c93b60ba53cc16.1747736586.git.gur.stavi@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
21 lines
634 B
C
21 lines
634 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. */
|
|
|
|
#ifndef _HINIC3_LLD_H_
|
|
#define _HINIC3_LLD_H_
|
|
|
|
#include <linux/auxiliary_bus.h>
|
|
|
|
struct hinic3_event_info;
|
|
|
|
#define HINIC3_NIC_DRV_NAME "hinic3"
|
|
|
|
int hinic3_lld_init(void);
|
|
void hinic3_lld_exit(void);
|
|
void hinic3_adev_event_register(struct auxiliary_device *adev,
|
|
void (*event_handler)(struct auxiliary_device *adev,
|
|
struct hinic3_event_info *event));
|
|
void hinic3_adev_event_unregister(struct auxiliary_device *adev);
|
|
struct hinic3_hwdev *hinic3_adev_get_hwdev(struct auxiliary_device *adev);
|
|
|
|
#endif
|