iPXE
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 
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;
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 {
56  } __attribute__ (( packed ));
59 
60 #endif /* A_MLXUTILS_INCLUDE_PUBLIC_TYPES_H_ */
uint8_t mlx_boolean
#define __attribute__(x)
Definition: compiler.h:10
unsigned short uint16_t
Definition: stdint.h:11
unsigned long long uint64_t
Definition: stdint.h:13
uint32_t mlx_uint32
signed long long int64_t
Definition: stdint.h:18
int32_t mlx_int32
signed char int8_t
Definition: stdint.h:15
PCI bus.
A PCI device.
Definition: pci.h:187
u32 addr
Definition: sky2.h:8
size_t mlx_size
unsigned char uint8_t
Definition: stdint.h:10
int64_t mlx_int64
unsigned int uint32_t
Definition: stdint.h:12
uint16_t mlx_uint16
void mlx_void
unsigned long mlx_uintn
uint8_t mlx_uint8
int8_t mlx_int8
signed int int32_t
Definition: stdint.h:17
int mlx_status
signed short int16_t
Definition: stdint.h:16
uint64_t mlx_uint64
int16_t mlx_int16
#define MAC_ADDR_LEN
unsigned long mlx_physical_address