This template provides easy access to the Discovery Bus. More...
#include <templates.h>
Static Public Member Functions | |
static bool | discover (Device *o, MessageDiscovery &msg) |
Protected Member Functions | |
bool | discovery_write_st (const char *resource, unsigned offset, const void *value, unsigned count) |
bool | discovery_write_dw (const char *resource, unsigned offset, unsigned value, unsigned count=4) |
Write a dword or less than it. | |
bool | discovery_read_dw (const char *resource, unsigned offset, unsigned &value) |
Read a dword. | |
unsigned | discovery_length (const char *resource, unsigned minlen) |
Return the length of an ACPI table or minlen if it is smaller. |
This template provides easy access to the Discovery Bus.
static bool DiscoveryHelper< Y >::discover | ( | Device * | o, | |
MessageDiscovery & | msg | |||
) | [inline, static] |
unsigned DiscoveryHelper< Y >::discovery_length | ( | const char * | resource, | |
unsigned | minlen | |||
) | [inline, protected] |
Return the length of an ACPI table or minlen if it is smaller.
bool DiscoveryHelper< Y >::discovery_read_dw | ( | const char * | resource, | |
unsigned | offset, | |||
unsigned & | value | |||
) | [inline, protected] |
Read a dword.
bool DiscoveryHelper< Y >::discovery_write_dw | ( | const char * | resource, | |
unsigned | offset, | |||
unsigned | value, | |||
unsigned | count = 4 | |||
) | [inline, protected] |
Write a dword or less than it.
bool DiscoveryHelper< Y >::discovery_write_st | ( | const char * | resource, | |
unsigned | offset, | |||
const void * | value, | |||
unsigned | count | |||
) | [inline, protected] |