APM:Libraries
Public Member Functions | Private Attributes | Friends | List of all members
Linux::Memory_table Class Reference

#include <RCInput_RPI.h>

Public Member Functions

 Memory_table ()
 
 Memory_table (uint32_t, int)
 
 ~Memory_table ()
 
void * get_virt_addr (const uint32_t phys_addr) const
 
void * get_page (void **pages, const uint32_t addr) const
 
uint32_t get_offset (void **pages, const uint32_t addr) const
 
uint32_t bytes_available (const uint32_t read_addr, const uint32_t write_addr) const
 
uint32_t get_page_count () const
 

Private Attributes

void ** _virt_pages
 
void ** _phys_pages
 
uint32_t _page_count
 

Friends

class RCInput_RPI
 

Detailed Description

Definition at line 47 of file RCInput_RPI.h.

Constructor & Destructor Documentation

◆ Memory_table() [1/2]

Memory_table::Memory_table ( )

Definition at line 101 of file RCInput_RPI.cpp.

◆ Memory_table() [2/2]

Memory_table::Memory_table ( uint32_t  page_count,
int  version 
)

Definition at line 107 of file RCInput_RPI.cpp.

Here is the call graph for this function:

◆ ~Memory_table()

Memory_table::~Memory_table ( )

Definition at line 154 of file RCInput_RPI.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ bytes_available()

uint32_t Memory_table::bytes_available ( const uint32_t  read_addr,
const uint32_t  write_addr 
) const

Definition at line 199 of file RCInput_RPI.cpp.

Referenced by Linux::RCInput_RPI::_timer_tick().

Here is the caller graph for this function:

◆ get_offset()

uint32_t Memory_table::get_offset ( void **  pages,
const uint32_t  addr 
) const

Definition at line 187 of file RCInput_RPI.cpp.

Referenced by Linux::RCInput_RPI::_timer_tick().

Here is the caller graph for this function:

◆ get_page()

void * Memory_table::get_page ( void **  pages,
const uint32_t  addr 
) const

Definition at line 162 of file RCInput_RPI.cpp.

Referenced by Linux::RCInput_RPI::_timer_tick(), and Linux::RCInput_RPI::init().

Here is the caller graph for this function:

◆ get_page_count()

uint32_t Memory_table::get_page_count ( ) const

Definition at line 208 of file RCInput_RPI.cpp.

Referenced by Linux::RCInput_RPI::_timer_tick().

Here is the caller graph for this function:

◆ get_virt_addr()

void * Memory_table::get_virt_addr ( const uint32_t  phys_addr) const

Definition at line 171 of file RCInput_RPI.cpp.

Referenced by Linux::RCInput_RPI::_timer_tick().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ RCInput_RPI

friend class RCInput_RPI
friend

Definition at line 49 of file RCInput_RPI.h.

Member Data Documentation

◆ _page_count

uint32_t Linux::Memory_table::_page_count
private

◆ _phys_pages

void** Linux::Memory_table::_phys_pages
private

Definition at line 53 of file RCInput_RPI.h.

Referenced by get_virt_addr(), Memory_table(), and ~Memory_table().

◆ _virt_pages

void** Linux::Memory_table::_virt_pages
private

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