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 #include <stddef.h>
13 
14 #ifdef ACPI_NULL
15 #define ACPI_PREFIX_null
16 #else
17 #define ACPI_PREFIX_null __null_
18 #endif
19 
20 static inline __attribute__ (( always_inline )) const struct acpi_header *
22  unsigned int index __unused ) {
23 
24  return NULL;
25 }
26 
27 #endif /* _IPXE_NULL_ACPI_H */
long index
Definition: bigint.h:62
static __attribute__((always_inline)) const struct acpi_header *ACPI_INLINE(null
#define __unused
Declare a variable or data structure as unused.
Definition: compiler.h:573
static acpi_find(uint32_t signature __unused, unsigned int index __unused)
Locate ACPI table.
Definition: null_acpi.h:21
An ACPI description header.
Definition: acpi.h:179
unsigned int uint32_t
Definition: stdint.h:12
#define ACPI_INLINE(_subsys, _api_func)
Calculate static inline ACPI API function name.
Definition: acpi.h:352
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
u8 signature
CPU signature.
Definition: CIB_PRM.h:35
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321