bfi.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  2. * Copyright (c) 2005-2010 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 __BFI_H__
  18. #define __BFI_H__
  19. #include "bfa_defs.h"
  20. #include "bfa_defs_svc.h"
  21. #pragma pack(1)
  22. /*
  23. * BFI FW image type
  24. */
  25. #define BFI_FLASH_CHUNK_SZ 256 /* Flash chunk size */
  26. #define BFI_FLASH_CHUNK_SZ_WORDS (BFI_FLASH_CHUNK_SZ/sizeof(u32))
  27. enum {
  28. BFI_IMAGE_CB_FC,
  29. BFI_IMAGE_CT_FC,
  30. BFI_IMAGE_CT_CNA,
  31. BFI_IMAGE_MAX,
  32. };
  33. /*
  34. * Msg header common to all msgs
  35. */
  36. struct bfi_mhdr_s {
  37. u8 msg_class; /* @ref bfi_mclass_t */
  38. u8 msg_id; /* msg opcode with in the class */
  39. union {
  40. struct {
  41. u8 rsvd;
  42. u8 lpu_id; /* msg destination */
  43. } h2i;
  44. u16 i2htok; /* token in msgs to host */
  45. } mtag;
  46. };
  47. #define bfi_h2i_set(_mh, _mc, _op, _lpuid) do { \
  48. (_mh).msg_class = (_mc); \
  49. (_mh).msg_id = (_op); \
  50. (_mh).mtag.h2i.lpu_id = (_lpuid); \
  51. } while (0)
  52. #define bfi_i2h_set(_mh, _mc, _op, _i2htok) do { \
  53. (_mh).msg_class = (_mc); \
  54. (_mh).msg_id = (_op); \
  55. (_mh).mtag.i2htok = (_i2htok); \
  56. } while (0)
  57. /*
  58. * Message opcodes: 0-127 to firmware, 128-255 to host
  59. */
  60. #define BFI_I2H_OPCODE_BASE 128
  61. #define BFA_I2HM(_x) ((_x) + BFI_I2H_OPCODE_BASE)
  62. /*
  63. ****************************************************************************
  64. *
  65. * Scatter Gather Element and Page definition
  66. *
  67. ****************************************************************************
  68. */
  69. #define BFI_SGE_INLINE 1
  70. #define BFI_SGE_INLINE_MAX (BFI_SGE_INLINE + 1)
  71. /*
  72. * SG Flags
  73. */
  74. enum {
  75. BFI_SGE_DATA = 0, /* data address, not last */
  76. BFI_SGE_DATA_CPL = 1, /* data addr, last in current page */
  77. BFI_SGE_DATA_LAST = 3, /* data address, last */
  78. BFI_SGE_LINK = 2, /* link address */
  79. BFI_SGE_PGDLEN = 2, /* cumulative data length for page */
  80. };
  81. /*
  82. * DMA addresses
  83. */
  84. union bfi_addr_u {
  85. struct {
  86. __be32 addr_lo;
  87. __be32 addr_hi;
  88. } a32;
  89. };
  90. /*
  91. * Scatter Gather Element
  92. */
  93. struct bfi_sge_s {
  94. #ifdef __BIG_ENDIAN
  95. u32 flags:2,
  96. rsvd:2,
  97. sg_len:28;
  98. #else
  99. u32 sg_len:28,
  100. rsvd:2,
  101. flags:2;
  102. #endif
  103. union bfi_addr_u sga;
  104. };
  105. /*
  106. * Scatter Gather Page
  107. */
  108. #define BFI_SGPG_DATA_SGES 7
  109. #define BFI_SGPG_SGES_MAX (BFI_SGPG_DATA_SGES + 1)
  110. #define BFI_SGPG_RSVD_WD_LEN 8
  111. struct bfi_sgpg_s {
  112. struct bfi_sge_s sges[BFI_SGPG_SGES_MAX];
  113. u32 rsvd[BFI_SGPG_RSVD_WD_LEN];
  114. };
  115. /*
  116. * Large Message structure - 128 Bytes size Msgs
  117. */
  118. #define BFI_LMSG_SZ 128
  119. #define BFI_LMSG_PL_WSZ \
  120. ((BFI_LMSG_SZ - sizeof(struct bfi_mhdr_s)) / 4)
  121. struct bfi_msg_s {
  122. struct bfi_mhdr_s mhdr;
  123. u32 pl[BFI_LMSG_PL_WSZ];
  124. };
  125. /*
  126. * Mailbox message structure
  127. */
  128. #define BFI_MBMSG_SZ 7
  129. struct bfi_mbmsg_s {
  130. struct bfi_mhdr_s mh;
  131. u32 pl[BFI_MBMSG_SZ];
  132. };
  133. /*
  134. * Message Classes
  135. */
  136. enum bfi_mclass {
  137. BFI_MC_IOC = 1, /* IO Controller (IOC) */
  138. BFI_MC_FCPORT = 5, /* FC port */
  139. BFI_MC_IOCFC = 6, /* FC - IO Controller (IOC) */
  140. BFI_MC_LL = 7, /* Link Layer */
  141. BFI_MC_UF = 8, /* Unsolicited frame receive */
  142. BFI_MC_FCXP = 9, /* FC Transport */
  143. BFI_MC_LPS = 10, /* lport fc login services */
  144. BFI_MC_RPORT = 11, /* Remote port */
  145. BFI_MC_ITNIM = 12, /* I-T nexus (Initiator mode) */
  146. BFI_MC_IOIM_READ = 13, /* read IO (Initiator mode) */
  147. BFI_MC_IOIM_WRITE = 14, /* write IO (Initiator mode) */
  148. BFI_MC_IOIM_IO = 15, /* IO (Initiator mode) */
  149. BFI_MC_IOIM = 16, /* IO (Initiator mode) */
  150. BFI_MC_IOIM_IOCOM = 17, /* good IO completion */
  151. BFI_MC_TSKIM = 18, /* Initiator Task management */
  152. BFI_MC_PORT = 21, /* Physical port */
  153. BFI_MC_MAX = 32
  154. };
  155. #define BFI_IOC_MAX_CQS 4
  156. #define BFI_IOC_MAX_CQS_ASIC 8
  157. #define BFI_IOC_MSGLEN_MAX 32 /* 32 bytes */
  158. #define BFI_BOOT_TYPE_OFF 8
  159. #define BFI_BOOT_LOADER_OFF 12
  160. #define BFI_BOOT_TYPE_NORMAL 0
  161. #define BFI_BOOT_TYPE_FLASH 1
  162. #define BFI_BOOT_TYPE_MEMTEST 2
  163. #define BFI_BOOT_LOADER_OS 0
  164. #define BFI_BOOT_LOADER_BIOS 1
  165. #define BFI_BOOT_LOADER_UEFI 2
  166. /*
  167. *----------------------------------------------------------------------
  168. * IOC
  169. *----------------------------------------------------------------------
  170. */
  171. enum bfi_ioc_h2i_msgs {
  172. BFI_IOC_H2I_ENABLE_REQ = 1,
  173. BFI_IOC_H2I_DISABLE_REQ = 2,
  174. BFI_IOC_H2I_GETATTR_REQ = 3,
  175. BFI_IOC_H2I_DBG_SYNC = 4,
  176. BFI_IOC_H2I_DBG_DUMP = 5,
  177. };
  178. enum bfi_ioc_i2h_msgs {
  179. BFI_IOC_I2H_ENABLE_REPLY = BFA_I2HM(1),
  180. BFI_IOC_I2H_DISABLE_REPLY = BFA_I2HM(2),
  181. BFI_IOC_I2H_GETATTR_REPLY = BFA_I2HM(3),
  182. BFI_IOC_I2H_READY_EVENT = BFA_I2HM(4),
  183. BFI_IOC_I2H_HBEAT = BFA_I2HM(5),
  184. };
  185. /*
  186. * BFI_IOC_H2I_GETATTR_REQ message
  187. */
  188. struct bfi_ioc_getattr_req_s {
  189. struct bfi_mhdr_s mh;
  190. union bfi_addr_u attr_addr;
  191. };
  192. struct bfi_ioc_attr_s {
  193. wwn_t mfg_pwwn; /* Mfg port wwn */
  194. wwn_t mfg_nwwn; /* Mfg node wwn */
  195. mac_t mfg_mac; /* Mfg mac */
  196. u16 rsvd_a;
  197. wwn_t pwwn;
  198. wwn_t nwwn;
  199. mac_t mac; /* PBC or Mfg mac */
  200. u16 rsvd_b;
  201. mac_t fcoe_mac;
  202. u16 rsvd_c;
  203. char brcd_serialnum[STRSZ(BFA_MFG_SERIALNUM_SIZE)];
  204. u8 pcie_gen;
  205. u8 pcie_lanes_orig;
  206. u8 pcie_lanes;
  207. u8 rx_bbcredit; /* receive buffer credits */
  208. u32 adapter_prop; /* adapter properties */
  209. u16 maxfrsize; /* max receive frame size */
  210. char asic_rev;
  211. u8 rsvd_d;
  212. char fw_version[BFA_VERSION_LEN];
  213. char optrom_version[BFA_VERSION_LEN];
  214. struct bfa_mfg_vpd_s vpd;
  215. u32 card_type; /* card type */
  216. };
  217. /*
  218. * BFI_IOC_I2H_GETATTR_REPLY message
  219. */
  220. struct bfi_ioc_getattr_reply_s {
  221. struct bfi_mhdr_s mh; /* Common msg header */
  222. u8 status; /* cfg reply status */
  223. u8 rsvd[3];
  224. };
  225. /*
  226. * Firmware memory page offsets
  227. */
  228. #define BFI_IOC_SMEM_PG0_CB (0x40)
  229. #define BFI_IOC_SMEM_PG0_CT (0x180)
  230. /*
  231. * Firmware statistic offset
  232. */
  233. #define BFI_IOC_FWSTATS_OFF (0x6B40)
  234. #define BFI_IOC_FWSTATS_SZ (4096)
  235. /*
  236. * Firmware trace offset
  237. */
  238. #define BFI_IOC_TRC_OFF (0x4b00)
  239. #define BFI_IOC_TRC_ENTS 256
  240. #define BFI_IOC_FW_SIGNATURE (0xbfadbfad)
  241. #define BFI_IOC_MD5SUM_SZ 4
  242. struct bfi_ioc_image_hdr_s {
  243. u32 signature; /* constant signature */
  244. u32 rsvd_a;
  245. u32 exec; /* exec vector */
  246. u32 param; /* parameters */
  247. u32 rsvd_b[4];
  248. u32 md5sum[BFI_IOC_MD5SUM_SZ];
  249. };
  250. /*
  251. * BFI_IOC_I2H_READY_EVENT message
  252. */
  253. struct bfi_ioc_rdy_event_s {
  254. struct bfi_mhdr_s mh; /* common msg header */
  255. u8 init_status; /* init event status */
  256. u8 rsvd[3];
  257. };
  258. struct bfi_ioc_hbeat_s {
  259. struct bfi_mhdr_s mh; /* common msg header */
  260. u32 hb_count; /* current heart beat count */
  261. };
  262. /*
  263. * IOC hardware/firmware state
  264. */
  265. enum bfi_ioc_state {
  266. BFI_IOC_UNINIT = 0, /* not initialized */
  267. BFI_IOC_INITING = 1, /* h/w is being initialized */
  268. BFI_IOC_HWINIT = 2, /* h/w is initialized */
  269. BFI_IOC_CFG = 3, /* IOC configuration in progress */
  270. BFI_IOC_OP = 4, /* IOC is operational */
  271. BFI_IOC_DISABLING = 5, /* IOC is being disabled */
  272. BFI_IOC_DISABLED = 6, /* IOC is disabled */
  273. BFI_IOC_CFG_DISABLED = 7, /* IOC is being disabled;transient */
  274. BFI_IOC_FAIL = 8, /* IOC heart-beat failure */
  275. BFI_IOC_MEMTEST = 9, /* IOC is doing memtest */
  276. };
  277. #define BFI_IOC_ENDIAN_SIG 0x12345678
  278. enum {
  279. BFI_ADAPTER_TYPE_FC = 0x01, /* FC adapters */
  280. BFI_ADAPTER_TYPE_MK = 0x0f0000, /* adapter type mask */
  281. BFI_ADAPTER_TYPE_SH = 16, /* adapter type shift */
  282. BFI_ADAPTER_NPORTS_MK = 0xff00, /* number of ports mask */
  283. BFI_ADAPTER_NPORTS_SH = 8, /* number of ports shift */
  284. BFI_ADAPTER_SPEED_MK = 0xff, /* adapter speed mask */
  285. BFI_ADAPTER_SPEED_SH = 0, /* adapter speed shift */
  286. BFI_ADAPTER_PROTO = 0x100000, /* prototype adapaters */
  287. BFI_ADAPTER_TTV = 0x200000, /* TTV debug capable */
  288. BFI_ADAPTER_UNSUPP = 0x400000, /* unknown adapter type */
  289. };
  290. #define BFI_ADAPTER_GETP(__prop, __adap_prop) \
  291. (((__adap_prop) & BFI_ADAPTER_ ## __prop ## _MK) >> \
  292. BFI_ADAPTER_ ## __prop ## _SH)
  293. #define BFI_ADAPTER_SETP(__prop, __val) \
  294. ((__val) << BFI_ADAPTER_ ## __prop ## _SH)
  295. #define BFI_ADAPTER_IS_PROTO(__adap_type) \
  296. ((__adap_type) & BFI_ADAPTER_PROTO)
  297. #define BFI_ADAPTER_IS_TTV(__adap_type) \
  298. ((__adap_type) & BFI_ADAPTER_TTV)
  299. #define BFI_ADAPTER_IS_UNSUPP(__adap_type) \
  300. ((__adap_type) & BFI_ADAPTER_UNSUPP)
  301. #define BFI_ADAPTER_IS_SPECIAL(__adap_type) \
  302. ((__adap_type) & (BFI_ADAPTER_TTV | BFI_ADAPTER_PROTO | \
  303. BFI_ADAPTER_UNSUPP))
  304. /*
  305. * BFI_IOC_H2I_ENABLE_REQ & BFI_IOC_H2I_DISABLE_REQ messages
  306. */
  307. struct bfi_ioc_ctrl_req_s {
  308. struct bfi_mhdr_s mh;
  309. u8 ioc_class;
  310. u8 rsvd[3];
  311. u32 tv_sec;
  312. };
  313. #define bfi_ioc_enable_req_t struct bfi_ioc_ctrl_req_s;
  314. #define bfi_ioc_disable_req_t struct bfi_ioc_ctrl_req_s;
  315. /*
  316. * BFI_IOC_I2H_ENABLE_REPLY & BFI_IOC_I2H_DISABLE_REPLY messages
  317. */
  318. struct bfi_ioc_ctrl_reply_s {
  319. struct bfi_mhdr_s mh; /* Common msg header */
  320. u8 status; /* enable/disable status */
  321. u8 rsvd[3];
  322. };
  323. #define bfi_ioc_enable_reply_t struct bfi_ioc_ctrl_reply_s;
  324. #define bfi_ioc_disable_reply_t struct bfi_ioc_ctrl_reply_s;
  325. #define BFI_IOC_MSGSZ 8
  326. /*
  327. * H2I Messages
  328. */
  329. union bfi_ioc_h2i_msg_u {
  330. struct bfi_mhdr_s mh;
  331. struct bfi_ioc_ctrl_req_s enable_req;
  332. struct bfi_ioc_ctrl_req_s disable_req;
  333. struct bfi_ioc_getattr_req_s getattr_req;
  334. u32 mboxmsg[BFI_IOC_MSGSZ];
  335. };
  336. /*
  337. * I2H Messages
  338. */
  339. union bfi_ioc_i2h_msg_u {
  340. struct bfi_mhdr_s mh;
  341. struct bfi_ioc_rdy_event_s rdy_event;
  342. u32 mboxmsg[BFI_IOC_MSGSZ];
  343. };
  344. /*
  345. *----------------------------------------------------------------------
  346. * PBC
  347. *----------------------------------------------------------------------
  348. */
  349. #define BFI_PBC_MAX_BLUNS 8
  350. #define BFI_PBC_MAX_VPORTS 16
  351. /*
  352. * PBC boot lun configuration
  353. */
  354. struct bfi_pbc_blun_s {
  355. wwn_t tgt_pwwn;
  356. struct scsi_lun tgt_lun;
  357. };
  358. /*
  359. * PBC virtual port configuration
  360. */
  361. struct bfi_pbc_vport_s {
  362. wwn_t vp_pwwn;
  363. wwn_t vp_nwwn;
  364. };
  365. /*
  366. * BFI pre-boot configuration information
  367. */
  368. struct bfi_pbc_s {
  369. u8 port_enabled;
  370. u8 boot_enabled;
  371. u8 nbluns;
  372. u8 nvports;
  373. u8 port_speed;
  374. u8 rsvd_a;
  375. u16 hss;
  376. wwn_t pbc_pwwn;
  377. wwn_t pbc_nwwn;
  378. struct bfi_pbc_blun_s blun[BFI_PBC_MAX_BLUNS];
  379. struct bfi_pbc_vport_s vport[BFI_PBC_MAX_VPORTS];
  380. };
  381. /*
  382. *----------------------------------------------------------------------
  383. * MSGQ
  384. *----------------------------------------------------------------------
  385. */
  386. #define BFI_MSGQ_FULL(_q) (((_q->pi + 1) % _q->q_depth) == _q->ci)
  387. #define BFI_MSGQ_EMPTY(_q) (_q->pi == _q->ci)
  388. #define BFI_MSGQ_UPDATE_CI(_q) (_q->ci = (_q->ci + 1) % _q->q_depth)
  389. #define BFI_MSGQ_UPDATE_PI(_q) (_q->pi = (_q->pi + 1) % _q->q_depth)
  390. /* q_depth must be power of 2 */
  391. #define BFI_MSGQ_FREE_CNT(_q) ((_q->ci - _q->pi - 1) & (_q->q_depth - 1))
  392. enum bfi_msgq_h2i_msgs_e {
  393. BFI_MSGQ_H2I_INIT_REQ = 1,
  394. BFI_MSGQ_H2I_DOORBELL = 2,
  395. BFI_MSGQ_H2I_SHUTDOWN = 3,
  396. };
  397. enum bfi_msgq_i2h_msgs_e {
  398. BFI_MSGQ_I2H_INIT_RSP = 1,
  399. BFI_MSGQ_I2H_DOORBELL = 2,
  400. };
  401. /* Messages(commands/responsed/AENS will have the following header */
  402. struct bfi_msgq_mhdr_s {
  403. u8 msg_class;
  404. u8 msg_id;
  405. u16 msg_token;
  406. u16 num_entries;
  407. u8 enet_id;
  408. u8 rsvd[1];
  409. };
  410. #define bfi_msgq_mhdr_set(_mh, _mc, _mid, _tok, _enet_id) do { \
  411. (_mh).msg_class = (_mc); \
  412. (_mh).msg_id = (_mid); \
  413. (_mh).msg_token = (_tok); \
  414. (_mh).enet_id = (_enet_id); \
  415. } while (0)
  416. /*
  417. * Mailbox for messaging interface
  418. *
  419. */
  420. #define BFI_MSGQ_CMD_ENTRY_SIZE (64) /* TBD */
  421. #define BFI_MSGQ_RSP_ENTRY_SIZE (64) /* TBD */
  422. #define BFI_MSGQ_MSG_SIZE_MAX (2048) /* TBD */
  423. struct bfi_msgq_s {
  424. union bfi_addr_u addr;
  425. u16 q_depth; /* Total num of entries in the queue */
  426. u8 rsvd[2];
  427. };
  428. /* BFI_ENET_MSGQ_CFG_REQ TBD init or cfg? */
  429. struct bfi_msgq_cfg_req_s {
  430. struct bfi_mhdr_s mh;
  431. struct bfi_msgq_s cmdq;
  432. struct bfi_msgq_s rspq;
  433. };
  434. /* BFI_ENET_MSGQ_CFG_RSP */
  435. struct bfi_msgq_cfg_rsp_s {
  436. struct bfi_mhdr_s mh;
  437. u8 cmd_status;
  438. u8 rsvd[3];
  439. };
  440. /* BFI_MSGQ_H2I_DOORBELL */
  441. struct bfi_msgq_h2i_db_s {
  442. struct bfi_mhdr_s mh;
  443. u16 cmdq_pi;
  444. u16 rspq_ci;
  445. };
  446. /* BFI_MSGQ_I2H_DOORBELL */
  447. struct bfi_msgq_i2h_db_s {
  448. struct bfi_mhdr_s mh;
  449. u16 rspq_pi;
  450. u16 cmdq_ci;
  451. };
  452. #pragma pack()
  453. /* BFI port specific */
  454. #pragma pack(1)
  455. enum bfi_port_h2i {
  456. BFI_PORT_H2I_ENABLE_REQ = (1),
  457. BFI_PORT_H2I_DISABLE_REQ = (2),
  458. BFI_PORT_H2I_GET_STATS_REQ = (3),
  459. BFI_PORT_H2I_CLEAR_STATS_REQ = (4),
  460. };
  461. enum bfi_port_i2h {
  462. BFI_PORT_I2H_ENABLE_RSP = BFA_I2HM(1),
  463. BFI_PORT_I2H_DISABLE_RSP = BFA_I2HM(2),
  464. BFI_PORT_I2H_GET_STATS_RSP = BFA_I2HM(3),
  465. BFI_PORT_I2H_CLEAR_STATS_RSP = BFA_I2HM(4),
  466. };
  467. /*
  468. * Generic REQ type
  469. */
  470. struct bfi_port_generic_req_s {
  471. struct bfi_mhdr_s mh; /* msg header */
  472. u32 msgtag; /* msgtag for reply */
  473. u32 rsvd;
  474. };
  475. /*
  476. * Generic RSP type
  477. */
  478. struct bfi_port_generic_rsp_s {
  479. struct bfi_mhdr_s mh; /* common msg header */
  480. u8 status; /* port enable status */
  481. u8 rsvd[3];
  482. u32 msgtag; /* msgtag for reply */
  483. };
  484. /*
  485. * BFI_PORT_H2I_GET_STATS_REQ
  486. */
  487. struct bfi_port_get_stats_req_s {
  488. struct bfi_mhdr_s mh; /* common msg header */
  489. union bfi_addr_u dma_addr;
  490. };
  491. union bfi_port_h2i_msg_u {
  492. struct bfi_mhdr_s mh;
  493. struct bfi_port_generic_req_s enable_req;
  494. struct bfi_port_generic_req_s disable_req;
  495. struct bfi_port_get_stats_req_s getstats_req;
  496. struct bfi_port_generic_req_s clearstats_req;
  497. };
  498. union bfi_port_i2h_msg_u {
  499. struct bfi_mhdr_s mh;
  500. struct bfi_port_generic_rsp_s enable_rsp;
  501. struct bfi_port_generic_rsp_s disable_rsp;
  502. struct bfi_port_generic_rsp_s getstats_rsp;
  503. struct bfi_port_generic_rsp_s clearstats_rsp;
  504. };
  505. #pragma pack()
  506. #endif /* __BFI_H__ */