bfi_cee.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. /**
  18. * Copyright (c) 2006-2009 Brocade Communications Systems, Inc.
  19. * All rights reserved.
  20. *
  21. * bfi_dcbx.h BFI Interface (Mailbox commands and related structures)
  22. * between host driver and DCBX/LLDP firmware module.
  23. *
  24. **/
  25. #ifndef __BFI_CEE_H__
  26. #define __BFI_CEE_H__
  27. #include <bfi/bfi.h>
  28. #pragma pack(1)
  29. enum bfi_cee_h2i_msgs_e {
  30. BFI_CEE_H2I_GET_CFG_REQ = 1,
  31. BFI_CEE_H2I_RESET_STATS = 2,
  32. BFI_CEE_H2I_GET_STATS_REQ = 3,
  33. };
  34. enum bfi_cee_i2h_msgs_e {
  35. BFI_CEE_I2H_GET_CFG_RSP = BFA_I2HM(1),
  36. BFI_CEE_I2H_RESET_STATS_RSP = BFA_I2HM(2),
  37. BFI_CEE_I2H_GET_STATS_RSP = BFA_I2HM(3),
  38. };
  39. /* Data structures */
  40. /*
  41. * BFI_CEE_H2I_RESET_STATS
  42. */
  43. struct bfi_lldp_reset_stats_s {
  44. struct bfi_mhdr_s mh;
  45. };
  46. /*
  47. * BFI_CEE_H2I_RESET_STATS
  48. */
  49. struct bfi_cee_reset_stats_s {
  50. struct bfi_mhdr_s mh;
  51. };
  52. /*
  53. * BFI_CEE_H2I_GET_CFG_REQ
  54. */
  55. struct bfi_cee_get_req_s {
  56. struct bfi_mhdr_s mh;
  57. union bfi_addr_u dma_addr;
  58. };
  59. /*
  60. * BFI_CEE_I2H_GET_CFG_RSP
  61. */
  62. struct bfi_cee_get_rsp_s {
  63. struct bfi_mhdr_s mh;
  64. u8 cmd_status;
  65. u8 rsvd[3];
  66. };
  67. /*
  68. * BFI_CEE_H2I_GET_STATS_REQ
  69. */
  70. struct bfi_cee_stats_req_s {
  71. struct bfi_mhdr_s mh;
  72. union bfi_addr_u dma_addr;
  73. };
  74. /*
  75. * BFI_CEE_I2H_GET_STATS_RSP
  76. */
  77. struct bfi_cee_stats_rsp_s {
  78. struct bfi_mhdr_s mh;
  79. u8 cmd_status;
  80. u8 rsvd[3];
  81. };
  82. union bfi_cee_h2i_msg_u {
  83. struct bfi_mhdr_s mh;
  84. struct bfi_cee_get_req_s get_req;
  85. struct bfi_cee_stats_req_s stats_req;
  86. };
  87. union bfi_cee_i2h_msg_u {
  88. struct bfi_mhdr_s mh;
  89. struct bfi_cee_get_rsp_s get_rsp;
  90. struct bfi_cee_stats_rsp_s stats_rsp;
  91. };
  92. #pragma pack()
  93. #endif /* __BFI_CEE_H__ */