forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.h
....@@ -1,10 +1,8 @@
1
-/*
2
- * aQuantia Corporation Network Driver
3
- * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
1
+/* SPDX-License-Identifier: GPL-2.0-only */
2
+/* Atlantic Network Driver
43 *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
4
+ * Copyright (C) 2014-2019 aQuantia Corporation
5
+ * Copyright (C) 2019-2020 Marvell International Ltd.
86 */
97
108 /* File aq_pci_func.h: Declaration of PCI functions. */
....@@ -22,11 +20,13 @@
2220 const struct aq_hw_caps_s *caps;
2321 };
2422
25
-int aq_pci_func_init(struct pci_dev *pdev);
2623 int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
27
- char *name, void *aq_vec,
28
- cpumask_t *affinity_mask);
24
+ char *name, irq_handler_t irq_handler,
25
+ void *irq_arg, cpumask_t *affinity_mask);
2926 void aq_pci_func_free_irqs(struct aq_nic_s *self);
3027 unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
3128
29
+int aq_pci_func_register_driver(void);
30
+void aq_pci_func_unregister_driver(void);
31
+
3232 #endif /* AQ_PCI_FUNC_H */