iPXE
nodnic_prm.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2015 Mellanox Technologies Ltd.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License as
00006  * published by the Free Software Foundation; either version 2 of the
00007  * License, or any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301, USA.
00018  */
00019 
00020 FILE_LICENCE ( GPL2_OR_LATER );
00021 
00022 #ifndef SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_
00023 #define SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_
00024 
00025 #include "mlx_bitops.h"
00026 
00027 struct nodnic_wqe_segment_data_ptr_st { /* Little Endian */
00028     pseudo_bit_t        byte_count[0x0001f];
00029     pseudo_bit_t        always0[0x00001];
00030 /* -------------- */
00031     pseudo_bit_t        l_key[0x00020];
00032 /* -------------- */
00033     pseudo_bit_t        local_address_h[0x00020];
00034 /* -------------- */
00035     pseudo_bit_t        local_address_l[0x00020];
00036 /* -------------- */
00037 };
00038 
00039 struct MLX_DECLARE_STRUCT ( nodnic_wqe_segment_data_ptr );
00040 
00041 #define HERMON_MAX_SCATTER 1
00042 
00043 struct nodnic_recv_wqe {
00044         struct nodnic_wqe_segment_data_ptr data[HERMON_MAX_SCATTER];
00045 } __attribute__ (( packed ));
00046 
00047 #endif /* SRC_DRIVERS_INFINIBAND_MLX_NODNIC_INCLUDE_PRM_NODNIC_PRM_H_ */