blob: 52cfa4889d883bf6ce656ac89be0c02e13a11e68 [file] [log] [blame]
Yuval Mintz32a47e72016-05-11 16:36:12 +03001/* 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
13struct tlv_buffer_size {
14 u8 tlv_buffer[TLV_BUFFER_SIZE];
15};
16
17union vfpf_tlvs {
18 struct tlv_buffer_size tlv_buf_size;
19};
20
21union pfvf_tlvs {
22 struct tlv_buffer_size tlv_buf_size;
23};
24
25struct 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
35struct qed_bulletin {
36 dma_addr_t phys;
37 struct qed_bulletin_content *p_virt;
38 u32 size;
39};
40
41#endif