aq_pci_func.h 928 B

1234567891011121314151617181920212223242526272829303132
  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. /* File aq_pci_func.h: Declaration of PCI functions. */
  10. #ifndef AQ_PCI_FUNC_H
  11. #define AQ_PCI_FUNC_H
  12. #include "aq_common.h"
  13. #include "aq_nic.h"
  14. struct aq_board_revision_s {
  15. unsigned short devid;
  16. unsigned short revision;
  17. const struct aq_hw_ops *ops;
  18. const struct aq_hw_caps_s *caps;
  19. };
  20. int aq_pci_func_init(struct pci_dev *pdev);
  21. int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
  22. char *name, void *aq_vec,
  23. cpumask_t *affinity_mask);
  24. void aq_pci_func_free_irqs(struct aq_nic_s *self);
  25. unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
  26. #endif /* AQ_PCI_FUNC_H */