Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux-2.6-block.git] / drivers / net / ethernet / aquantia / atlantic / aq_pci_func.h
CommitLineData
75a6faf6 1/* SPDX-License-Identifier: GPL-2.0-only */
ab3518ac
MS
2/* Atlantic Network Driver
3 *
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
a4d36e20
DV
6 */
7
8/* File aq_pci_func.h: Declaration of PCI functions. */
9
10#ifndef AQ_PCI_FUNC_H
11#define AQ_PCI_FUNC_H
12
13#include "aq_common.h"
1a713f87 14#include "aq_nic.h"
a4d36e20 15
4948293f
IR
16struct aq_board_revision_s {
17 unsigned short devid;
18 unsigned short revision;
19 const struct aq_hw_ops *ops;
20 const struct aq_hw_caps_s *caps;
21};
22
23ee07ad 23int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
4c83f170
IR
24 char *name, irq_handler_t irq_handler,
25 void *irq_arg, cpumask_t *affinity_mask);
23ee07ad
IR
26void aq_pci_func_free_irqs(struct aq_nic_s *self);
27unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
a4d36e20 28
58608082
ND
29int aq_pci_func_register_driver(void);
30void aq_pci_func_unregister_driver(void);
31
a4d36e20 32#endif /* AQ_PCI_FUNC_H */