bfi.h (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) | bfi.h (72a9730b3f556e18912f3e1b494a7aee7ae3dd91) |
---|---|
1/* 2 * Linux network driver for Brocade 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 --- 69 unchanged lines hidden (view full) --- 78 */ 79union bfi_addr_u { 80 struct { 81 u32 addr_lo; 82 u32 addr_hi; 83 } a32; 84}; 85 | 1/* 2 * Linux network driver for Brocade 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 --- 69 unchanged lines hidden (view full) --- 78 */ 79union bfi_addr_u { 80 struct { 81 u32 addr_lo; 82 u32 addr_hi; 83 } a32; 84}; 85 |
86/** 87 * Generic DMA addr-len pair. 88 */ 89struct bfi_alen { 90 union bfi_addr_u al_addr; /* DMA addr of buffer */ 91 u32 al_len; /* length of buffer */ 92}; 93 |
|
86/* 87 * Large Message structure - 128 Bytes size Msgs 88 */ 89#define BFI_LMSG_SZ 128 90#define BFI_LMSG_PL_WSZ \ 91 ((BFI_LMSG_SZ - sizeof(struct bfi_mhdr)) / 4) 92 93/** --- 377 unchanged lines hidden (view full) --- 471 472/* BFI_MSGQ_I2H_CMD_COPY_REQ */ 473struct bfi_msgq_i2h_cmdq_copy_req { 474 struct bfi_mhdr mh; 475 u16 offset; 476 u16 len; 477}; 478 | 94/* 95 * Large Message structure - 128 Bytes size Msgs 96 */ 97#define BFI_LMSG_SZ 128 98#define BFI_LMSG_PL_WSZ \ 99 ((BFI_LMSG_SZ - sizeof(struct bfi_mhdr)) / 4) 100 101/** --- 377 unchanged lines hidden (view full) --- 479 480/* BFI_MSGQ_I2H_CMD_COPY_REQ */ 481struct bfi_msgq_i2h_cmdq_copy_req { 482 struct bfi_mhdr mh; 483 u16 offset; 484 u16 len; 485}; 486 |
487/* 488 * FLASH module specific 489 */ 490enum bfi_flash_h2i_msgs { 491 BFI_FLASH_H2I_QUERY_REQ = 1, 492 BFI_FLASH_H2I_ERASE_REQ = 2, 493 BFI_FLASH_H2I_WRITE_REQ = 3, 494 BFI_FLASH_H2I_READ_REQ = 4, 495 BFI_FLASH_H2I_BOOT_VER_REQ = 5, 496}; 497 498enum bfi_flash_i2h_msgs { 499 BFI_FLASH_I2H_QUERY_RSP = BFA_I2HM(1), 500 BFI_FLASH_I2H_ERASE_RSP = BFA_I2HM(2), 501 BFI_FLASH_I2H_WRITE_RSP = BFA_I2HM(3), 502 BFI_FLASH_I2H_READ_RSP = BFA_I2HM(4), 503 BFI_FLASH_I2H_BOOT_VER_RSP = BFA_I2HM(5), 504 BFI_FLASH_I2H_EVENT = BFA_I2HM(127), 505}; 506 507/* 508 * Flash query request 509 */ 510struct bfi_flash_query_req { 511 struct bfi_mhdr mh; /* Common msg header */ 512 struct bfi_alen alen; 513}; 514 515/* 516 * Flash write request 517 */ 518struct bfi_flash_write_req { 519 struct bfi_mhdr mh; /* Common msg header */ 520 struct bfi_alen alen; 521 u32 type; /* partition type */ 522 u8 instance; /* partition instance */ 523 u8 last; 524 u8 rsv[2]; 525 u32 offset; 526 u32 length; 527}; 528 529/* 530 * Flash read request 531 */ 532struct bfi_flash_read_req { 533 struct bfi_mhdr mh; /* Common msg header */ 534 u32 type; /* partition type */ 535 u8 instance; /* partition instance */ 536 u8 rsv[3]; 537 u32 offset; 538 u32 length; 539 struct bfi_alen alen; 540}; 541 542/* 543 * Flash query response 544 */ 545struct bfi_flash_query_rsp { 546 struct bfi_mhdr mh; /* Common msg header */ 547 u32 status; 548}; 549 550/* 551 * Flash read response 552 */ 553struct bfi_flash_read_rsp { 554 struct bfi_mhdr mh; /* Common msg header */ 555 u32 type; /* partition type */ 556 u8 instance; /* partition instance */ 557 u8 rsv[3]; 558 u32 status; 559 u32 length; 560}; 561 562/* 563 * Flash write response 564 */ 565struct bfi_flash_write_rsp { 566 struct bfi_mhdr mh; /* Common msg header */ 567 u32 type; /* partition type */ 568 u8 instance; /* partition instance */ 569 u8 rsv[3]; 570 u32 status; 571 u32 length; 572}; 573 |
|
479#pragma pack() 480 481#endif /* __BFI_H__ */ | 574#pragma pack() 575 576#endif /* __BFI_H__ */ |