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

A region allocator. More...

#include <region.h>

Public Member Functions

unsigned count () const
const Regionlist () const
Regionfind (unsigned long long pos)
 Find the region to a virtual address.
unsigned long long find_phys (unsigned long long phys, unsigned long long size)
 Find the virtual address to a physical region.
void add (Region region)
 Add a region to the list.
void del (Region value)
 Remove regions from the list.
unsigned long long alloc (unsigned long long size, unsigned align_order, unsigned nb_offset=0)
 Alloc a region from the list.
void debug_dump (const char *prefix)
Region alloc_max (unsigned align_order)
 RegionList ()

Private Attributes

unsigned _count
Region _list [SIZE]

Detailed Description

template<unsigned SIZE>
class RegionList< SIZE >

A region allocator.

Constructor & Destructor Documentation

template<unsigned SIZE>
RegionList< SIZE >::RegionList ( )
inline

Member Function Documentation

template<unsigned SIZE>
void RegionList< SIZE >::add ( Region  region)
inline

Add a region to the list.

template<unsigned SIZE>
unsigned long long RegionList< SIZE >::alloc ( unsigned long long  size,
unsigned  align_order,
unsigned  nb_offset = 0 
)
inline

Alloc a region from the list.

template<unsigned SIZE>
Region RegionList< SIZE >::alloc_max ( unsigned  align_order)
inline
template<unsigned SIZE>
unsigned RegionList< SIZE >::count ( ) const
inline
template<unsigned SIZE>
void RegionList< SIZE >::debug_dump ( const char *  prefix)
inline
template<unsigned SIZE>
void RegionList< SIZE >::del ( Region  value)
inline

Remove regions from the list.

template<unsigned SIZE>
Region* RegionList< SIZE >::find ( unsigned long long  pos)
inline

Find the region to a virtual address.

template<unsigned SIZE>
unsigned long long RegionList< SIZE >::find_phys ( unsigned long long  phys,
unsigned long long  size 
)
inline

Find the virtual address to a physical region.

template<unsigned SIZE>
const Region* RegionList< SIZE >::list ( ) const
inline

Member Data Documentation

template<unsigned SIZE>
unsigned RegionList< SIZE >::_count
private
template<unsigned SIZE>
Region RegionList< SIZE >::_list[SIZE]
private

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