[golan] Add Connect-IB, ConnectX-4 and ConnectX-4 Lx (Infiniband) support
[ipxe.git] / src / drivers / infiniband / mlx_nodnic / include / mlx_cmd.h
1 #ifndef NODNIC_CMD_H_
2 #define NODNIC_CMD_H_
3
4 /*
5 * Copyright (C) 2015 Mellanox Technologies Ltd.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301, USA.
21 */
22
23 FILE_LICENCE ( GPL2_OR_LATER );
24
25 #include "mlx_nodnic_data_structures.h"
26 #include "../../mlx_utils/include/public/mlx_utils.h"
27 #include "../../mlx_utils/include/public/mlx_pci_gw.h"
28
29 mlx_status
30 nodnic_cmd_read(
31 IN nodnic_device_priv *device_priv,
32 IN mlx_uint32 address,
33 OUT mlx_pci_gw_buffer *buffer
34 );
35
36 mlx_status
37 nodnic_cmd_write(
38 IN nodnic_device_priv *device_priv,
39 IN mlx_uint32 address,
40 IN mlx_pci_gw_buffer buffer
41 );
42
43 #endif /* STUB_NODNIC_CMD_H_ */