Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : Memory Protection ID Register - protruleid

Description

Register Layout

Bits Access Reset Description
[11:0] RW Unknown Low ID
[23:12] RW Unknown High ID
[31:24] ??? 0x0 UNDEFINED

Field : Low ID - lowid

AxID for the protection rule. Incoming AxID needs to be greater than or equal to this value. For all AxIDs from a port, AxID high should be programmed to all ones.

Field Access Macros:

#define ALT_SDR_CTL_PROTRULEID_LOWID_LSB   0
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_MSB   11
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_WIDTH   12
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_SET_MSK   0x00000fff
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_CLR_MSK   0xfffff000
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_RESET   0x0
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_GET(value)   (((value) & 0x00000fff) >> 0)
 
#define ALT_SDR_CTL_PROTRULEID_LOWID_SET(value)   (((value) << 0) & 0x00000fff)
 

Field : High ID - highid

AxID for the protection rule. Incoming AxID needs to be less than or equal to this value. For all AxIDs from a port, AxID high should be programmed to all ones.

Field Access Macros:

#define ALT_SDR_CTL_PROTRULEID_HIGHID_LSB   12
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_MSB   23
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_WIDTH   12
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_SET_MSK   0x00fff000
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_CLR_MSK   0xff000fff
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_RESET   0x0
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_GET(value)   (((value) & 0x00fff000) >> 12)
 
#define ALT_SDR_CTL_PROTRULEID_HIGHID_SET(value)   (((value) << 12) & 0x00fff000)
 

Data Structures

struct  ALT_SDR_CTL_PROTRULEID_s
 

Macros

#define ALT_SDR_CTL_PROTRULEID_OFST   0x94
 

Typedefs

typedef struct
ALT_SDR_CTL_PROTRULEID_s 
ALT_SDR_CTL_PROTRULEID_t
 

Data Structure Documentation

struct ALT_SDR_CTL_PROTRULEID_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_SDR_CTL_PROTRULEID.

Data Fields
uint32_t lowid: 12 Low ID
uint32_t highid: 12 High ID
uint32_t __pad0__: 8 UNDEFINED

Macro Definitions

#define ALT_SDR_CTL_PROTRULEID_LOWID_LSB   0

The Least Significant Bit (LSB) position of the ALT_SDR_CTL_PROTRULEID_LOWID register field.

#define ALT_SDR_CTL_PROTRULEID_LOWID_MSB   11

The Most Significant Bit (MSB) position of the ALT_SDR_CTL_PROTRULEID_LOWID register field.

#define ALT_SDR_CTL_PROTRULEID_LOWID_WIDTH   12

The width in bits of the ALT_SDR_CTL_PROTRULEID_LOWID register field.

#define ALT_SDR_CTL_PROTRULEID_LOWID_SET_MSK   0x00000fff

The mask used to set the ALT_SDR_CTL_PROTRULEID_LOWID register field value.

#define ALT_SDR_CTL_PROTRULEID_LOWID_CLR_MSK   0xfffff000

The mask used to clear the ALT_SDR_CTL_PROTRULEID_LOWID register field value.

#define ALT_SDR_CTL_PROTRULEID_LOWID_RESET   0x0

The reset value of the ALT_SDR_CTL_PROTRULEID_LOWID register field is UNKNOWN.

#define ALT_SDR_CTL_PROTRULEID_LOWID_GET (   value)    (((value) & 0x00000fff) >> 0)

Extracts the ALT_SDR_CTL_PROTRULEID_LOWID field value from a register.

#define ALT_SDR_CTL_PROTRULEID_LOWID_SET (   value)    (((value) << 0) & 0x00000fff)

Produces a ALT_SDR_CTL_PROTRULEID_LOWID register field value suitable for setting the register.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_LSB   12

The Least Significant Bit (LSB) position of the ALT_SDR_CTL_PROTRULEID_HIGHID register field.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_MSB   23

The Most Significant Bit (MSB) position of the ALT_SDR_CTL_PROTRULEID_HIGHID register field.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_WIDTH   12

The width in bits of the ALT_SDR_CTL_PROTRULEID_HIGHID register field.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_SET_MSK   0x00fff000

The mask used to set the ALT_SDR_CTL_PROTRULEID_HIGHID register field value.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_CLR_MSK   0xff000fff

The mask used to clear the ALT_SDR_CTL_PROTRULEID_HIGHID register field value.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_RESET   0x0

The reset value of the ALT_SDR_CTL_PROTRULEID_HIGHID register field is UNKNOWN.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_GET (   value)    (((value) & 0x00fff000) >> 12)

Extracts the ALT_SDR_CTL_PROTRULEID_HIGHID field value from a register.

#define ALT_SDR_CTL_PROTRULEID_HIGHID_SET (   value)    (((value) << 12) & 0x00fff000)

Produces a ALT_SDR_CTL_PROTRULEID_HIGHID register field value suitable for setting the register.

#define ALT_SDR_CTL_PROTRULEID_OFST   0x94

The byte offset of the ALT_SDR_CTL_PROTRULEID register from the beginning of the component.

Typedef Documentation

The typedef declaration for register ALT_SDR_CTL_PROTRULEID.