blob: b0cc7f723a199a012d3280533e9a1d1668f41df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#ifndef NODNIC_DEVICE_H_
#define NODNIC_DEVICE_H_
/*
* Copyright (C) 2015 Mellanox Technologies Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include "mlx_nodnic_data_structures.h"
#define NODIC_SUPPORTED_REVISION 1
//Initialization segment
#define NODNIC_CMDQ_PHY_ADDR_HIGH_OFFSET 0x10
#define NODNIC_CMDQ_PHY_ADDR_LOW_OFFSET 0x14
#define NODNIC_NIC_INTERFACE_OFFSET 0x14
#define NODNIC_INITIALIZING_OFFSET 0x1fc
#define NODNIC_NIC_INTERFACE_SUPPORTED_OFFSET 0x1fc
#define NODNIC_LOCATION_OFFSET 0x240
#define NODNIC_CMDQ_PHY_ADDR_LOW_MASK 0xFFFFE000
#define NODNIC_NIC_INTERFACE_SUPPORTED_MASK 0x4000000
#define NODNIC_NIC_INTERFACE_BIT 9
#define NODNIC_DISABLE_INTERFACE_BIT 8
#define NODNIC_NIC_INTERFACE_SUPPORTED_BIT 26
#define NODNIC_INITIALIZING_BIT 31
#define NODNIC_NIC_DISABLE_INT_OFFSET 0x100c
//nodnic segment
#define NODNIC_REVISION_OFFSET 0x0
#define NODNIC_HARDWARE_FORMAT_OFFSET 0x0
mlx_status
nodnic_device_init(
IN nodnic_device_priv *device_priv
);
mlx_status
nodnic_device_teardown(
IN nodnic_device_priv *device_priv
);
mlx_status
nodnic_device_get_cap(
IN nodnic_device_priv *device_priv
);
mlx_status
nodnic_device_clear_int (
IN nodnic_device_priv *device_priv
);
mlx_status
nodnic_device_get_fw_version(
IN nodnic_device_priv *device_priv,
OUT mlx_uint16 *fw_ver_minor,
OUT mlx_uint16 *fw_ver_sub_minor,
OUT mlx_uint16 *fw_ver_major
);
#endif /* STUB_NODNIC_DEVICE_H_ */
|