iPXE
mlx_pci_priv.h
Go to the documentation of this file.
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
23FILE_LICENCE ( GPL2_OR_LATER );
24
27
30 IN mlx_utils *utils
31 );
32
35 IN mlx_utils *utils
36 );
37
40 IN mlx_utils *utils,
41 IN mlx_pci_width width,
45 );
46
49 IN mlx_utils *utils,
50 IN mlx_pci_width width,
54 );
55
58 IN mlx_utils *utils,
59 IN mlx_pci_width width,
60 IN mlx_uint8 bar_index,
64 );
65
68 IN mlx_utils *utils,
69 IN mlx_pci_width width,
70 IN mlx_uint8 bar_index,
74 );
75
76
77#endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_PCIPRIV_H_ */
uint16_t offset
Offset to command line.
Definition bzimage.h:3
static unsigned int count
Number of entries.
Definition dwmac.h:220
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
Definition netvsc.h:5
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
mlx_pci_width
Definition mlx_pci.h:27
mlx_status mlx_pci_init_priv(IN mlx_utils *utils)
mlx_status mlx_pci_teardown_priv(IN mlx_utils *utils)
mlx_status mlx_pci_read_priv(IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint32 offset, IN mlx_uintn count, OUT mlx_void *buffer)
mlx_status mlx_pci_write_priv(IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint32 offset, IN mlx_uintn count, IN mlx_void *buffer)
mlx_status mlx_pci_mem_read_priv(IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint8 bar_index, IN mlx_uint64 offset, IN mlx_uintn count, OUT mlx_void *buffer)
mlx_status mlx_pci_mem_write_priv(IN mlx_utils *utils, IN mlx_pci_width width, IN mlx_uint8 bar_index, IN mlx_uint64 offset, IN mlx_uintn count, IN mlx_void *buffer)
uint32_t mlx_uint32
uint64_t mlx_uint64
void mlx_void
int mlx_status
uint8_t mlx_uint8
unsigned long mlx_uintn
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29