2019-06-01 10:08:37 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2020-06-26 21:40:34 +03:00
|
|
|
/* Atlantic Network Driver
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2014-2019 aQuantia Corporation
|
|
|
|
|
* Copyright (C) 2019-2020 Marvell International Ltd.
|
2017-01-23 22:09:15 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* File aq_pci_func.h: Declaration of PCI functions. */
|
|
|
|
|
|
|
|
|
|
#ifndef AQ_PCI_FUNC_H
|
|
|
|
|
#define AQ_PCI_FUNC_H
|
|
|
|
|
|
|
|
|
|
#include "aq_common.h"
|
2018-01-15 16:41:15 +03:00
|
|
|
#include "aq_nic.h"
|
2017-01-23 22:09:15 -08:00
|
|
|
|
2018-01-19 17:03:19 +03:00
|
|
|
struct aq_board_revision_s {
|
|
|
|
|
unsigned short devid;
|
|
|
|
|
unsigned short revision;
|
|
|
|
|
const struct aq_hw_ops *ops;
|
|
|
|
|
const struct aq_hw_caps_s *caps;
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-19 17:03:21 +03:00
|
|
|
int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
|
2019-04-29 10:04:48 +00:00
|
|
|
char *name, irq_handler_t irq_handler,
|
|
|
|
|
void *irq_arg, cpumask_t *affinity_mask);
|
2018-01-19 17:03:21 +03:00
|
|
|
void aq_pci_func_free_irqs(struct aq_nic_s *self);
|
|
|
|
|
unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
|
2017-01-23 22:09:15 -08:00
|
|
|
|
2019-04-29 10:04:45 +00:00
|
|
|
int aq_pci_func_register_driver(void);
|
|
|
|
|
void aq_pci_func_unregister_driver(void);
|
|
|
|
|
|
2017-01-23 22:09:15 -08:00
|
|
|
#endif /* AQ_PCI_FUNC_H */
|