iPXE
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
b
d
i
p
s
t
u
v
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
drivers
infiniband
mlx_utils_flexboot
include
mlx_types_priv.h
Go to the documentation of this file.
1
/*
2
* types.h
3
*
4
* Created on: Jan 18, 2015
5
* Author: maord
6
*/
7
8
#ifndef A_MLXUTILS_INCLUDE_PUBLIC_TYPES_H_
9
#define A_MLXUTILS_INCLUDE_PUBLIC_TYPES_H_
10
#include <
stdint.h
>
11
//#include <errno.h>
12
#include <
ipxe/pci.h
>
13
14
#define MLX_SUCCESS 0
15
#define MLX_OUT_OF_RESOURCES (-1)
16
//(-ENOMEM)
17
#define MLX_INVALID_PARAMETER (-2)
18
//(-EINVAL)
19
#define MLX_UNSUPPORTED (-3)
20
//(-ENOSYS)
21
#define MLX_NOT_FOUND (-4)
22
23
#define MLX_FAILED (-5)
24
25
#undef TRUE
26
#define TRUE 1
27
#undef FALSE
28
#define FALSE !TRUE
29
30
typedef
int
mlx_status
;
31
32
typedef
uint8_t
mlx_uint8
;
33
typedef
uint16_t
mlx_uint16
;
34
typedef
uint32_t
mlx_uint32
;
35
typedef
uint64_t
mlx_uint64
;
36
typedef
unsigned
long
mlx_uintn
;
37
38
typedef
int8_t
mlx_int8
;
39
typedef
int16_t
mlx_int16
;;
40
typedef
int32_t
mlx_int32
;
41
typedef
int64_t
mlx_int64
;
42
typedef
uint8_t
mlx_boolean
;
43
44
typedef
struct
pci_device
mlx_pci
;
45
46
typedef
size_t
mlx_size
;
47
48
typedef
void
mlx_void
;
49
50
#define MAC_ADDR_LEN 6
51
typedef
unsigned
long
mlx_physical_address
;
52
typedef
union
{
53
struct
{
54
uint32_t
low
;
55
uint32_t
high
;
56
}
__attribute__
(( packed ));
57
uint8_t
addr
[
MAC_ADDR_LEN
];
58
}
mlx_mac_address
;
59
60
#endif
/* A_MLXUTILS_INCLUDE_PUBLIC_TYPES_H_ */
mlx_boolean
uint8_t mlx_boolean
Definition:
mlx_types_priv.h:42
__attribute__
#define __attribute__(x)
Definition:
compiler.h:10
uint16_t
unsigned short uint16_t
Definition:
stdint.h:11
uint64_t
unsigned long long uint64_t
Definition:
stdint.h:13
mlx_mac_address::low
uint32_t low
Definition:
mlx_types_priv.h:54
mlx_uint32
uint32_t mlx_uint32
Definition:
mlx_types_priv.h:34
int64_t
signed long long int64_t
Definition:
stdint.h:18
mlx_int32
int32_t mlx_int32
Definition:
mlx_types_priv.h:39
int8_t
signed char int8_t
Definition:
stdint.h:15
mlx_mac_address::high
uint32_t high
Definition:
mlx_types_priv.h:55
pci.h
PCI bus.
pci_device
A PCI device.
Definition:
pci.h:206
mlx_mac_address
Definition:
mlx_types_priv.h:52
mlx_size
size_t mlx_size
Definition:
mlx_types_priv.h:46
uint8_t
unsigned char uint8_t
Definition:
stdint.h:10
mlx_int64
int64_t mlx_int64
Definition:
mlx_types_priv.h:41
uint32_t
unsigned int uint32_t
Definition:
stdint.h:12
mlx_uint16
uint16_t mlx_uint16
Definition:
mlx_types_priv.h:33
mlx_void
void mlx_void
Definition:
mlx_types_priv.h:48
mlx_uintn
unsigned long mlx_uintn
Definition:
mlx_types_priv.h:36
mlx_uint8
uint8_t mlx_uint8
Definition:
mlx_types_priv.h:32
mlx_int8
int8_t mlx_int8
Definition:
mlx_types_priv.h:38
int32_t
signed int int32_t
Definition:
stdint.h:17
addr
u32 addr
Definition:
sky2.h:8
stdint.h
mlx_status
int mlx_status
Definition:
mlx_types_priv.h:30
int16_t
signed short int16_t
Definition:
stdint.h:16
mlx_uint64
uint64_t mlx_uint64
Definition:
mlx_types_priv.h:35
mlx_int16
int16_t mlx_int16
Definition:
mlx_types_priv.h:39
MAC_ADDR_LEN
#define MAC_ADDR_LEN
Definition:
mlx_types_priv.h:50
mlx_physical_address
unsigned long mlx_physical_address
Definition:
mlx_types_priv.h:51
Generated by
1.8.15