bfa_defs_aen.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
  3. * All rights reserved
  4. * www.brocade.com
  5. *
  6. * Linux driver for Brocade Fibre Channel Host Bus Adapter.
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License (GPL) Version 2 as
  10. * published by the Free Software Foundation
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. */
  17. #ifndef __BFA_DEFS_AEN_H__
  18. #define __BFA_DEFS_AEN_H__
  19. #include <defs/bfa_defs_types.h>
  20. #include <defs/bfa_defs_ioc.h>
  21. #include <defs/bfa_defs_adapter.h>
  22. #include <defs/bfa_defs_port.h>
  23. #include <defs/bfa_defs_lport.h>
  24. #include <defs/bfa_defs_rport.h>
  25. #include <defs/bfa_defs_itnim.h>
  26. #include <defs/bfa_defs_tin.h>
  27. #include <defs/bfa_defs_ipfc.h>
  28. #include <defs/bfa_defs_audit.h>
  29. #include <defs/bfa_defs_ethport.h>
  30. enum bfa_aen_category {
  31. BFA_AEN_CAT_ADAPTER = 1,
  32. BFA_AEN_CAT_PORT = 2,
  33. BFA_AEN_CAT_LPORT = 3,
  34. BFA_AEN_CAT_RPORT = 4,
  35. BFA_AEN_CAT_ITNIM = 5,
  36. BFA_AEN_CAT_TIN = 6,
  37. BFA_AEN_CAT_IPFC = 7,
  38. BFA_AEN_CAT_AUDIT = 8,
  39. BFA_AEN_CAT_IOC = 9,
  40. BFA_AEN_CAT_ETHPORT = 10,
  41. BFA_AEN_MAX_CAT = 10
  42. };
  43. #pragma pack(1)
  44. union bfa_aen_data_u {
  45. struct bfa_adapter_aen_data_s adapter;
  46. struct bfa_port_aen_data_s port;
  47. struct bfa_lport_aen_data_s lport;
  48. struct bfa_rport_aen_data_s rport;
  49. struct bfa_itnim_aen_data_s itnim;
  50. struct bfa_audit_aen_data_s audit;
  51. struct bfa_ioc_aen_data_s ioc;
  52. struct bfa_ethport_aen_data_s ethport;
  53. };
  54. struct bfa_aen_entry_s {
  55. enum bfa_aen_category aen_category;
  56. int aen_type;
  57. union bfa_aen_data_u aen_data;
  58. struct bfa_timeval_s aen_tv;
  59. s32 seq_num;
  60. s32 bfad_num;
  61. s32 rsvd[1];
  62. };
  63. #pragma pack()
  64. #define bfa_aen_event_t int
  65. #endif /* __BFA_DEFS_AEN_H__ */