PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
EISA ID

EISA ID to string and vice versa conversion. More...

Collaboration diagram for EISA ID:

Detailed Description

EISA ID to string and vice versa conversion.

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.
 

Function Documentation

◆ aml_eisa_id_from_string()

uint64_t aml_eisa_id_from_string ( const char *  str)

Convert a string EISA ID to a numeric EISA ID.

The conversion rules for EISA were derived from section 19.3.4 ASL Macros of the ACPI specification.

Parameters
strPointer to the string EISA ID. Must be 7 characters long.
Returns
On success, the numeric EISA ID. On failure, ERR and errno is set.

Definition at line 8 of file eisa_id.c.

Here is the call graph for this function:

◆ aml_eisa_id_to_string()

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.

The conversion rules for EISA were derived from section 19.3.4 ASL Macros of the ACPI specification.

Parameters
eisaIdThe numeric EISA ID.
bufferPointer to a buffer to write the string EISA ID to. Must be at least 8 bytes long.
bufferSizeThe size of the buffer in bytes.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 56 of file eisa_id.c.

Here is the caller graph for this function: