PatchworkOS  2ca1c69
A non-POSIX operating system.
Loading...
Searching...
No Matches
eisa_id.c File Reference
#include <modules/acpi/aml/runtime/eisa_id.h>
#include <errno.h>
#include <string.h>
Include dependency graph for eisa_id.c:

Go to the source code of this file.

Macros

#define AML_EISA_ID_BYTE(c)   ((uint32_t)(((c) - 0x40) & 0x1F))
 
#define AML_EISA_ID_CHAR(b)   ((char)(((b) & 0x1F) + 0x40))
 

Functions

uint64_t aml_eisa_id_from_string (const char *str)
 Convert a string EISA ID to a numeric EISA ID.
 
uint64_t aml_eisa_id_to_string (uint32_t eisaId, char *buffer, size_t bufferSize)
 Convert a numeric EISA ID to a string EISA ID.
 

Macro Definition Documentation

◆ AML_EISA_ID_BYTE

#define AML_EISA_ID_BYTE (   c)    ((uint32_t)(((c) - 0x40) & 0x1F))

Definition at line 6 of file eisa_id.c.

◆ AML_EISA_ID_CHAR

#define AML_EISA_ID_CHAR (   b)    ((char)(((b) & 0x1F) + 0x40))

Definition at line 54 of file eisa_id.c.