xref: /linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_fw_file_hdr.h (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1adfc5217SJeff Kirsher /* bnx2x_fw_file_hdr.h: FW binary file header structure.
2adfc5217SJeff Kirsher  *
3247fa82bSYuval Mintz  * Copyright (c) 2007-2013 Broadcom Corporation
4*4ad79e13SYuval Mintz  * Copyright (c) 2014 QLogic Corporation
5*4ad79e13SYuval Mintz  * All rights reserved
6adfc5217SJeff Kirsher  *
7adfc5217SJeff Kirsher  * This program is free software; you can redistribute it and/or modify
8adfc5217SJeff Kirsher  * it under the terms of the GNU General Public License as published by
9adfc5217SJeff Kirsher  * the Free Software Foundation.
10adfc5217SJeff Kirsher  *
1108f6dd89SAriel Elior  * Maintained by: Ariel Elior <ariel.elior@qlogic.com>
1208f6dd89SAriel Elior  * Written by: Vladislav Zolotarov
13adfc5217SJeff Kirsher  * Based on the original idea of John Wright <john.wright@hp.com>.
14adfc5217SJeff Kirsher  */
15adfc5217SJeff Kirsher 
16adfc5217SJeff Kirsher #ifndef BNX2X_INIT_FILE_HDR_H
17adfc5217SJeff Kirsher #define BNX2X_INIT_FILE_HDR_H
18adfc5217SJeff Kirsher 
19adfc5217SJeff Kirsher struct bnx2x_fw_file_section {
20adfc5217SJeff Kirsher 	__be32 len;
21adfc5217SJeff Kirsher 	__be32 offset;
22adfc5217SJeff Kirsher };
23adfc5217SJeff Kirsher 
24adfc5217SJeff Kirsher struct bnx2x_fw_file_hdr {
25adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section init_ops;
26adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section init_ops_offsets;
27adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section init_data;
28adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section tsem_int_table_data;
29adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section tsem_pram_data;
30adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section usem_int_table_data;
31adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section usem_pram_data;
32adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section csem_int_table_data;
33adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section csem_pram_data;
34adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section xsem_int_table_data;
35adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section xsem_pram_data;
36adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section iro_arr;
37adfc5217SJeff Kirsher 	struct bnx2x_fw_file_section fw_version;
38adfc5217SJeff Kirsher };
39adfc5217SJeff Kirsher 
40adfc5217SJeff Kirsher #endif /* BNX2X_INIT_FILE_HDR_H */
41