[golan] Add Connect-IB, ConnectX-4 and ConnectX-4 Lx (Infiniband) support
[ipxe.git] / src / drivers / infiniband / mlx_utils / include / private / mlx_pci_priv.h
1 #ifndef STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_
2 #define STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_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 "../../include/public/mlx_pci.h"
26 #include "../../include/public/mlx_utils.h"
27
28 mlx_status
29 mlx_pci_init_priv(
30 IN mlx_utils *utils
31 );
32
33 mlx_status
34 mlx_pci_read_priv(
35 IN mlx_utils *utils,
36 IN mlx_pci_width width,
37 IN mlx_uint32 offset,
38 IN mlx_uintn count,
39 OUT mlx_void *buffer
40 );
41
42 mlx_status
43 mlx_pci_write_priv(
44 IN mlx_utils *utils,
45 IN mlx_pci_width width,
46 IN mlx_uint32 offset,
47 IN mlx_uintn count,
48 IN mlx_void *buffer
49 );
50
51 mlx_status
52 mlx_pci_mem_read_priv(
53 IN mlx_utils *utils,
54 IN mlx_pci_width width,
55 IN mlx_uint8 bar_index,
56 IN mlx_uint64 offset,
57 IN mlx_uintn count,
58 OUT mlx_void *buffer
59 );
60
61 mlx_status
62 mlx_pci_mem_write_priv(
63 IN mlx_utils *utils,
64 IN mlx_pci_width width,
65 IN mlx_uint8 bar_index,
66 IN mlx_uint64 offset,
67 IN mlx_uintn count,
68 IN mlx_void *buffer
69 );
70
71
72 #endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_ */