Yuval Mintz | 32a47e7 | 2016-05-11 16:36:12 +0300 | [diff] [blame^] | 1 | /* QLogic qed NIC Driver |
| 2 | * Copyright (c) 2015 QLogic Corporation |
| 3 | * |
| 4 | * This software is available under the terms of the GNU General Public License |
| 5 | * (GPL) Version 2, available from the file COPYING in the main directory of |
| 6 | * this source tree. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _QED_VF_H |
| 10 | #define _QED_VF_H |
| 11 | |
| 12 | #define TLV_BUFFER_SIZE 1024 |
| 13 | struct tlv_buffer_size { |
| 14 | u8 tlv_buffer[TLV_BUFFER_SIZE]; |
| 15 | }; |
| 16 | |
| 17 | union vfpf_tlvs { |
| 18 | struct tlv_buffer_size tlv_buf_size; |
| 19 | }; |
| 20 | |
| 21 | union pfvf_tlvs { |
| 22 | struct tlv_buffer_size tlv_buf_size; |
| 23 | }; |
| 24 | |
| 25 | struct qed_bulletin_content { |
| 26 | /* crc of structure to ensure is not in mid-update */ |
| 27 | u32 crc; |
| 28 | |
| 29 | u32 version; |
| 30 | |
| 31 | /* bitmap indicating which fields hold valid values */ |
| 32 | u64 valid_bitmap; |
| 33 | }; |
| 34 | |
| 35 | struct qed_bulletin { |
| 36 | dma_addr_t phys; |
| 37 | struct qed_bulletin_content *p_virt; |
| 38 | u32 size; |
| 39 | }; |
| 40 | |
| 41 | #endif |