cna.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Linux network driver for QLogic BR-series Converged Network Adapter.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License (GPL) Version 2 as
  6. * published by the Free Software Foundation
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * General Public License for more details.
  12. */
  13. /*
  14. * Copyright (c) 2006-2014 Brocade Communications Systems, Inc.
  15. * Copyright (c) 2014-2015 QLogic Corporation
  16. * All rights reserved
  17. * www.qlogic.com
  18. */
  19. #ifndef __CNA_H__
  20. #define __CNA_H__
  21. #include <linux/kernel.h>
  22. #include <linux/types.h>
  23. #include <linux/mutex.h>
  24. #include <linux/pci.h>
  25. #include <linux/delay.h>
  26. #include <linux/bitops.h>
  27. #include <linux/timer.h>
  28. #include <linux/interrupt.h>
  29. #include <linux/if_vlan.h>
  30. #include <linux/if_ether.h>
  31. #define bfa_sm_fault(__event) do { \
  32. pr_err("SM Assertion failure: %s: %d: event = %d\n", \
  33. __FILE__, __LINE__, __event); \
  34. } while (0)
  35. extern char bfa_version[];
  36. #define CNA_FW_FILE_CT "ctfw-3.2.5.1.bin"
  37. #define CNA_FW_FILE_CT2 "ct2fw-3.2.5.1.bin"
  38. #define FC_SYMNAME_MAX 256 /*!< max name server symbolic name size */
  39. #endif /* __CNA_H__ */