Altera HWLIB  16.0
The Altera HW Manager API Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
MMU Management Data Structures - Second Level Translation Table

Description

The data structure declarations in this section support direct access to the short-descriptor second-level table entries and their constituent fields.

These data structures are an alternative method to create descriptor entry values that are passed to a first level translation table contruction function such as alt_mmu_ttb2_desc_set().

Data Structures

struct  ALT_MMU_TTB2_FAULT_s
 
union  ALT_MMU_TTB2_FAULT_ENTRY_u
 
struct  ALT_MMU_TTB2_LARGE_PAGE_s
 
union  ALT_MMU_TTB2_LARGE_PAGE_ENTRY_u
 
struct  ALT_MMU_TTB2_SMALL_PAGE_s
 
union  ALT_MMU_TTB2_SMALL_PAGE_ENTRY_u
 

Typedefs

typedef struct ALT_MMU_TTB2_FAULT_s ALT_MMU_TTB2_FAULT_t
 
typedef union
ALT_MMU_TTB2_FAULT_ENTRY_u 
ALT_MMU_TTB2_FAULT_ENTRY_t
 
typedef struct
ALT_MMU_TTB2_LARGE_PAGE_s 
ALT_MMU_TTB2_LARGE_PAGE_t
 
typedef union
ALT_MMU_TTB2_LARGE_PAGE_ENTRY_u 
ALT_MMU_TTB2_LARGE_PAGE_ENTRY_t
 
typedef struct
ALT_MMU_TTB2_SMALL_PAGE_s 
ALT_MMU_TTB2_SMALL_PAGE_t
 
typedef union
ALT_MMU_TTB2_SMALL_PAGE_ENTRY_u 
ALT_MMU_TTB2_SMALL_PAGE_ENTRY_t
 

Data Structure Documentation

struct ALT_MMU_TTB2_FAULT_s

This type defines the structure of a Second Level Translation Table Fault Entry.

union ALT_MMU_TTB2_FAULT_ENTRY_u

This type defines a union for accessing a Second Level Translation Table Fault Entry by fields or aggregate raw entry value.

Data Fields
ALT_MMU_TTB2_FAULT_t fld access to individual entry data fields
uint32_t raw access to aggregate entry value
struct ALT_MMU_TTB2_LARGE_PAGE_s

This type defines the structure of a Second Level Translation Table Large Page Table Entry.

Data Fields
uint32_t __pad0__: 2 always b01
uint32_t b: 1 The [B] field of the memory region attributes. [B] is an arcane reference to Bufferable attribute.
uint32_t c: 1 The [C] field of the memory region attributes. [C] is an arcane reference to Cacheable attribute.
uint32_t ap_1_0: 2 Access Permissions AP[1:0] bits.
uint32_t __pad1__: 3
uint32_t ap_2: 1 Access Permissions AP[2] bits.
uint32_t s: 1 The Shareable bit. Determines whether the addressed region is shareable memory.
uint32_t ng: 1 The not global bit. Determines how the translation is marked in the TLB.
uint32_t tex: 3 The [TEX] field of the memory region attributes. [TEX] is an arcane reference to Type EXtension attribute.
uint32_t xn: 1 The Execute-Never bit. Determines whether the processor can execute software from the addressed region.
uint32_t base_addr: 16 Large Page Base Address PA[31:16]
union ALT_MMU_TTB2_LARGE_PAGE_ENTRY_u

This type defines a union for accessing a Second Level Translation Table Large Page Table Entry by fields or aggregate raw entry value.

Data Fields
ALT_MMU_TTB2_LARGE_PAGE_t fld access to individual entry data fields
uint32_t raw access to aggregate entry value
struct ALT_MMU_TTB2_SMALL_PAGE_s

This type defines the structure of a Second Level Translation Table Small Page Table Entry.

Data Fields
uint32_t xn: 1 The Execute-Never bit. Determines whether the processor can execute software from the addressed region.
uint32_t __pad0__: 1 always b1
uint32_t b: 1 The [B] field of the memory region attributes. [B] is an arcane reference to Bufferable attribute.
uint32_t c: 1 The [C] field of the memory region attributes. [C] is an arcane reference to Cacheable attribute.
uint32_t ap_1_0: 2 Access Permissions AP[1:0] bits.
uint32_t tex: 3 The [TEX] field of the memory region attributes. [TEX] is an arcane reference to Type EXtension attribute.
uint32_t ap_2: 1 Access Permissions AP[2] bits.
uint32_t s: 1 The Shareable bit. Determines whether the addressed region is shareable memory.
uint32_t ng: 1 The not global bit. Determines how the translation is marked in the TLB.
uint32_t base_addr: 20 Small Page Base Address PA[31:12]
union ALT_MMU_TTB2_SMALL_PAGE_ENTRY_u

This type defines a union for accessing a Second Level Translation Table Small Page Table Entry by fields or aggregate raw entry value.

Data Fields
ALT_MMU_TTB2_SMALL_PAGE_t fld access to individual entry data fields
uint32_t raw access to aggregate entry value

Typedef Documentation

This type defines the structure of a Second Level Translation Table Fault Entry.

This type defines a union for accessing a Second Level Translation Table Fault Entry by fields or aggregate raw entry value.

This type defines the structure of a Second Level Translation Table Large Page Table Entry.

This type defines a union for accessing a Second Level Translation Table Large Page Table Entry by fields or aggregate raw entry value.

This type defines the structure of a Second Level Translation Table Small Page Table Entry.

This type defines a union for accessing a Second Level Translation Table Small Page Table Entry by fields or aggregate raw entry value.