[golan] Add Connect-IB, ConnectX-4 and ConnectX-4 Lx (Infiniband) support
[ipxe.git] / src / drivers / infiniband / nodnic_prm.h
1 /*
2 * Copyright (C) 2015 Mellanox Technologies Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301, USA.
18 */
19
20 FILE_LICENCE ( GPL2_OR_LATER );
21
22 #ifndef SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_
23 #define SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_
24
25 #include "mlx_bitops.h"
26
27 struct nodnic_wqe_segment_data_ptr_st { /* Little Endian */
28 pseudo_bit_t byte_count[0x0001f];
29 pseudo_bit_t always0[0x00001];
30 /* -------------- */
31 pseudo_bit_t l_key[0x00020];
32 /* -------------- */
33 pseudo_bit_t local_address_h[0x00020];
34 /* -------------- */
35 pseudo_bit_t local_address_l[0x00020];
36 /* -------------- */
37 };
38
39 struct MLX_DECLARE_STRUCT ( nodnic_wqe_segment_data_ptr );
40
41 #define HERMON_MAX_SCATTER 1
42
43 struct nodnic_recv_wqe {
44 struct nodnic_wqe_segment_data_ptr data[HERMON_MAX_SCATTER];
45 } __attribute__ (( packed ));
46
47 #endif /* SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_ */