iPXE
mlx_memory_priv.h
Go to the documentation of this file.
1 #ifndef MLXUTILS_INCLUDE_PRIVATE_MEMORYPRIV_H_
2 #define MLXUTILS_INCLUDE_PRIVATE_MEMORYPRIV_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_utils/include/public/mlx_utils.h"
26 
29  IN mlx_utils *utils,
31  OUT mlx_void **ptr
32  );
33 
36  IN mlx_utils *utils,
38  OUT mlx_void **ptr
39  );
40 
43  IN mlx_utils *utils,
44  IN mlx_void *ptr
45  );
48  IN mlx_utils *utils,
49  IN mlx_size size ,
51  OUT mlx_void **ptr
52  );
53 
56  IN mlx_utils *utils,
57  IN mlx_size size ,
58  IN mlx_void *ptr
59  );
62  IN mlx_utils *utils,
63  IN mlx_void *addr ,
64  IN mlx_size number_of_bytes,
65  OUT mlx_physical_address *phys_addr,
66  OUT mlx_void **mapping
67  );
68 
71  IN mlx_utils *utils,
72  IN mlx_void *mapping
73  );
74 
77  IN mlx_utils *utils,
78  IN mlx_void *first_block,
79  IN mlx_void *second_block,
82  );
83 
86  IN mlx_utils *utils,
87  IN mlx_void *block,
90  );
91 
94  IN mlx_utils *utils,
95  OUT mlx_void *destination_buffer,
96  IN mlx_void *source_buffer,
98  );
99 
102  IN mlx_utils *utils,
103  IN mlx_uint32 source,
104  IN mlx_uint32 *destination
105  );
106 
109  IN mlx_utils *utils,
110  IN mlx_uint32 source,
111  IN mlx_uint32 *destination
112  );
113 #endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_MEMORYPRIV_H_ */
static __always_inline void struct dma_mapping size_t size_t align
Definition: dma.h:222
u16 length
Definition: sky2.h:9
uint16_t block
Definition: tftp.h:12
mlx_status mlx_memory_cpy_priv(IN mlx_utils *utils, OUT mlx_void *destination_buffer, IN mlx_void *source_buffer, IN mlx_size length)
mlx_status mlx_memory_cpu_to_be32_priv(IN mlx_utils *utils, IN mlx_uint32 source, IN mlx_uint32 *destination)
uint32_t mlx_uint32
#define OUT
Definition: mlx_utils.h:29
int32_t mlx_int32
mlx_status mlx_memory_be32_to_cpu_priv(IN mlx_utils *utils, IN mlx_uint32 source, IN mlx_uint32 *destination)
__be32 out[4]
Definition: CIB_PRM.h:36
pseudo_bit_t value[0x00020]
Definition: arbel.h:13
mlx_status mlx_memory_set_priv(IN mlx_utils *utils, IN mlx_void *block, IN mlx_int32 value, IN mlx_size size)
u32 addr
Definition: sky2.h:8
size_t mlx_size
mlx_status mlx_memory_ummap_dma_priv(IN mlx_utils *utils, IN mlx_void *mapping)
mlx_status mlx_memory_alloc_dma_priv(IN mlx_utils *utils, IN mlx_size size, IN mlx_size align, OUT mlx_void **ptr)
void mlx_void
#define IN
Definition: mlx_utils.h:28
mlx_status mlx_memory_free_dma_priv(IN mlx_utils *utils, IN mlx_size size, IN mlx_void *ptr)
mlx_status mlx_memory_zalloc_priv(IN mlx_utils *utils, IN mlx_size size, OUT mlx_void **ptr)
mlx_status mlx_memory_map_dma_priv(IN mlx_utils *utils, IN mlx_void *addr, IN mlx_size number_of_bytes, OUT mlx_physical_address *phys_addr, OUT mlx_void **mapping)
uint8_t size
Entry size (in 32-bit words)
Definition: ena.h:16
mlx_status mlx_memory_free_priv(IN mlx_utils *utils, IN mlx_void *ptr)
int mlx_status
mlx_status mlx_memory_alloc_priv(IN mlx_utils *utils, IN mlx_size size, OUT mlx_void **ptr)
FILE_LICENCE(GPL2_OR_LATER)
unsigned long mlx_physical_address
mlx_status mlx_memory_cmp_priv(IN mlx_utils *utils, IN mlx_void *first_block, IN mlx_void *second_block, IN mlx_size size, OUT mlx_uint32 *out)