1 /*
2  * aQuantia Corporation Network Driver
3  * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
4  *
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.
8  */
9 
10 /* File aq_pci_func.h: Declaration of PCI functions. */
11 
12 #ifndef AQ_PCI_FUNC_H
13 #define AQ_PCI_FUNC_H
14 
15 #include "aq_common.h"
16 #include "aq_nic.h"
17 
18 struct aq_board_revision_s {
19 	unsigned short devid;
20 	unsigned short revision;
21 	const struct aq_hw_ops *ops;
22 	const struct aq_hw_caps_s *caps;
23 };
24 
25 int aq_pci_func_init(struct pci_dev *pdev);
26 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);
29 void aq_pci_func_free_irqs(struct aq_nic_s *self);
30 unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
31 
32 #endif /* AQ_PCI_FUNC_H */
33