iPXE
null_acpi.h
Go to the documentation of this file.
1 #ifndef _IPXE_NULL_ACPI_H
2 #define _IPXE_NULL_ACPI_H
3 
4 /** @file
5  *
6  * Standard do-nothing ACPI interface
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #ifdef ACPI_NULL
13 #define ACPI_PREFIX_null
14 #else
15 #define ACPI_PREFIX_null __null_
16 #endif
17 
18 static inline __attribute__ (( always_inline )) userptr_t
20  unsigned int index __unused ) {
21 
22  return UNULL;
23 }
24 
25 #endif /* _IPXE_NULL_ACPI_H */
static acpi_find(uint32_t signature __unused, unsigned int index __unused)
Locate ACPI table.
Definition: null_acpi.h:19
unsigned int uint32_t
Definition: stdint.h:12
#define __unused
Declare a variable or data structure as unused.
Definition: compiler.h:573
#define ACPI_INLINE(_subsys, _api_func)
Calculate static inline ACPI API function name.
Definition: acpi.h:336
#define UNULL
Equivalent of NULL for user pointers.
Definition: uaccess.h:36
static __attribute__((always_inline)) userptr_t ACPI_INLINE(null
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint64_t index
Index of the first segment within the content.
Definition: pccrc.h:21
u8 signature
Signature.
Definition: CIB_PRM.h:35
unsigned long userptr_t
A pointer to a user buffer.
Definition: uaccess.h:33