NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DiscoveryHelper< Y > Class Template Reference

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.

Detailed Description

template<typename Y>
class DiscoveryHelper< Y >

This template provides easy access to the Discovery Bus.

Member Function Documentation

template<typename Y>
static bool DiscoveryHelper< Y >::discover ( Device o,
MessageDiscovery msg 
)
inlinestatic
template<typename Y>
unsigned DiscoveryHelper< Y >::discovery_length ( const char *  resource,
unsigned  minlen 
)
inlineprotected

Return the length of an ACPI table or minlen if it is smaller.

template<typename Y>
bool DiscoveryHelper< Y >::discovery_read_dw ( const char *  resource,
unsigned  offset,
unsigned &  value 
)
inlineprotected

Read a dword.

template<typename Y>
bool DiscoveryHelper< Y >::discovery_write_dw ( const char *  resource,
unsigned  offset,
unsigned  value,
unsigned  count = 4 
)
inlineprotected

Write a dword or less than it.

template<typename Y>
bool DiscoveryHelper< Y >::discovery_write_st ( const char *  resource,
unsigned  offset,
const void *  value,
unsigned  count 
)
inlineprotected

The documentation for this class was generated from the following file: