struct octeon_boot_descriptor { #ifdef __BIG_ENDIAN_BITFIELD /* Start of block referenced by assembly code - do not change! */
uint32_t desc_version;
uint32_t desc_size;
uint64_t stack_top;
uint64_t heap_base;
uint64_t heap_end; /* Only used by bootloader */
uint64_t entry_point;
uint64_t desc_vaddr; /* End of This block referenced by assembly code - do not change! */
uint32_t exception_base_addr;
uint32_t stack_size;
uint32_t heap_size; /* Argc count for application. */
uint32_t argc;
uint32_t argv[OCTEON_ARGV_MAX_ARGS];
#define BOOT_FLAG_INIT_CORE (1 << 0) #define OCTEON_BL_FLAG_DEBUG (1 << 1) #define OCTEON_BL_FLAG_NO_MAGIC (1 << 2) /* If set, use uart1 for console */ #define OCTEON_BL_FLAG_CONSOLE_UART1 (1 << 3) /* If set, use PCI console */ #define OCTEON_BL_FLAG_CONSOLE_PCI (1 << 4) /* Call exit on break on serial port */ #define OCTEON_BL_FLAG_BREAK (1 << 5)
uint32_t flags;
uint32_t core_mask; /* DRAM size in megabyes. */
uint32_t dram_size; /* physical address of free memory descriptor block. */
uint32_t phy_mem_desc_addr; /* used to pass flags from app to debugger. */
uint32_t debugger_flags_base_addr; /* CPU clock speed, in hz. */
uint32_t eclock_hz; /* DRAM clock speed, in hz. */
uint32_t dclock_hz; /* SPI4 clock in hz. */
uint32_t spi_clock_hz;
uint16_t board_type;
uint8_t board_rev_major;
uint8_t board_rev_minor;
uint16_t chip_type;
uint8_t chip_rev_major;
uint8_t chip_rev_minor; char board_serial_number[OCTEON_SERIAL_LEN];
uint8_t mac_addr_base[6];
uint8_t mac_addr_count;
uint64_t cvmx_desc_vaddr; #else
uint32_t desc_size;
uint32_t desc_version;
uint64_t stack_top;
uint64_t heap_base;
uint64_t heap_end; /* Only used by bootloader */
uint64_t entry_point;
uint64_t desc_vaddr; /* End of This block referenced by assembly code - do not change! */
uint32_t stack_size;
uint32_t exception_base_addr;
uint32_t argc;
uint32_t heap_size; /* *Argccountforapplication. *Warninglowbitscrambledinlittle-endian.
*/
uint32_t argv[OCTEON_ARGV_MAX_ARGS];
#define BOOT_FLAG_INIT_CORE (1 << 0) #define OCTEON_BL_FLAG_DEBUG (1 << 1) #define OCTEON_BL_FLAG_NO_MAGIC (1 << 2) /* If set, use uart1 for console */ #define OCTEON_BL_FLAG_CONSOLE_UART1 (1 << 3) /* If set, use PCI console */ #define OCTEON_BL_FLAG_CONSOLE_PCI (1 << 4) /* Call exit on break on serial port */ #define OCTEON_BL_FLAG_BREAK (1 << 5)
uint32_t core_mask;
uint32_t flags; /* physical address of free memory descriptor block. */
uint32_t phy_mem_desc_addr; /* DRAM size in megabyes. */
uint32_t dram_size; /* CPU clock speed, in hz. */
uint32_t eclock_hz; /* used to pass flags from app to debugger. */
uint32_t debugger_flags_base_addr; /* SPI4 clock in hz. */
uint32_t spi_clock_hz; /* DRAM clock speed, in hz. */
uint32_t dclock_hz;
uint8_t chip_rev_minor;
uint8_t chip_rev_major;
uint16_t chip_type;
uint8_t board_rev_minor;
uint8_t board_rev_major;
uint16_t board_type;
uint64_t unused1[4]; /* Not even filled in by bootloader. */
uint64_t cvmx_desc_vaddr; #endif
};
union octeon_cvmemctl {
uint64_t u64; struct { /* RO 1 = BIST fail, 0 = BIST pass */
__BITFIELD_FIELD(uint64_t tlbbist:1, /* RO 1 = BIST fail, 0 = BIST pass */
__BITFIELD_FIELD(uint64_t l1cbist:1, /* RO 1 = BIST fail, 0 = BIST pass */
__BITFIELD_FIELD(uint64_t l1dbist:1, /* RO 1 = BIST fail, 0 = BIST pass */
__BITFIELD_FIELD(uint64_t dcmbist:1, /* RO 1 = BIST fail, 0 = BIST pass */
__BITFIELD_FIELD(uint64_t ptgbist:1, /* RO 1 = BIST fail, 0 = BIST pass */
__BITFIELD_FIELD(uint64_t wbfbist:1, /* Reserved */
__BITFIELD_FIELD(uint64_t reserved:17, /* OCTEON II - TLB replacement policy: 0 = bitmask LRU; 1 = NLU. *ThisfieldselectsbetweentheTLBreplacementpolicies: *bitmaskLRUorNLU.BitmaskLRUmaintainsamaskof *recentlyusedTLBentriesandavoidsthemasnewentries *areallocated.NLUsimplyguaranteesthatthenext
* allocation is not the last used TLB entry. */
__BITFIELD_FIELD(uint64_t tlbnlu:1, /* OCTEON II - Selects the bit in the counter used for *releasingaPAUSE.Thiscountertripsevery2(8+PAUSETIME) *cycles.Ifnotalreadyreleased,thecnMIPSIIcorewill *alwaysreleaseagivenPAUSEinstructionwithin *2(8+PAUSETIME).Ifthecountertriphappenstolineup,
* the cnMIPS II core may release the PAUSE instantly. */
__BITFIELD_FIELD(uint64_t pausetime:3, /* OCTEON II - This field is an extension of
* CvmMemCtl[DIDTTO] */
__BITFIELD_FIELD(uint64_t didtto2:1, /* R/W If set, marked write-buffer entries time out *thesameasotherentries;ifclear,marked
* write-buffer entries use the maximum timeout. */
__BITFIELD_FIELD(uint64_t dismarkwblongto:1, /* R/W If set, a merged store does not clear the
* write-buffer entry timeout state. */
__BITFIELD_FIELD(uint64_t dismrgclrwbto:1, /* R/W Two bits that are the MSBs of the resultant *CVMSEGLMwordlocationforanIOBDMA.Theother8
* bits come from the SCRADDR field of the IOBDMA. */
__BITFIELD_FIELD(uint64_t iobdmascrmsb:2, /* R/W If set, SYNCWS and SYNCS only order marked *stores;ifclear,SYNCWSandSYNCSonlyorder *unmarkedstores.SYNCWSMARKEDhasnoeffectwhen
* DISSYNCWS is set. */
__BITFIELD_FIELD(uint64_t syncwsmarked:1, /* R/W If set, SYNCWS acts as SYNCW and SYNCS acts as
* SYNC. */
__BITFIELD_FIELD(uint64_t dissyncws:1, /* R/W If set, no stall happens on write buffer
* full. */
__BITFIELD_FIELD(uint64_t diswbfst:1, /* R/W If set (and SX set), supervisor-level *loads/storescanuseXKPHYSaddresseswith
* VA<48>==0 */
__BITFIELD_FIELD(uint64_t xkmemenas:1, /* R/W If set (and UX set), user-level loads/stores
* can use XKPHYS addresses with VA<48>==0 */
__BITFIELD_FIELD(uint64_t xkmemenau:1, /* R/W If set (and SX set), supervisor-level *loads/storescanuseXKPHYSaddresseswith
* VA<48>==1 */
__BITFIELD_FIELD(uint64_t xkioenas:1, /* R/W If set (and UX set), user-level loads/stores
* can use XKPHYS addresses with VA<48>==1 */
__BITFIELD_FIELD(uint64_t xkioenau:1, /* R/W If set, all stores act as SYNCW (NOMERGE must
* be set when this is set) RW, reset to 0. */
__BITFIELD_FIELD(uint64_t allsyncw:1, /* R/W If set, no stores merge, and all stores reach
* the coherent bus in order. */
__BITFIELD_FIELD(uint64_t nomerge:1, /* R/W Selects the bit in the counter used for DID *time-outs0=231,1=230,2=229,3= *214.Actualtime-outisbetween1xand2xthis *interval.Forexample,withDIDTTO=3,expiration
* interval is between 16K and 32K. */
__BITFIELD_FIELD(uint64_t didtto:2, /* R/W If set, the (mem) CSR clock never turns off. */
__BITFIELD_FIELD(uint64_t csrckalwys:1, /* R/W If set, mclk never turns off. */
__BITFIELD_FIELD(uint64_t mclkalwys:1, /* R/W Selects the bit in the counter used for write *bufferflushtime-outs(WBFLT+11)isthebit *positioninaninternalcounterusedtodetermine *expiration.Thewritebufferexpiresbetween1xand *2xthisinterval.Forexample,withWBFLT=0,a *writebufferexpiresbetween2Kand4Kcyclesafter
* the write buffer entry is allocated. */
__BITFIELD_FIELD(uint64_t wbfltime:3, /* R/W If set, do not put Istream in the L2 cache. */
__BITFIELD_FIELD(uint64_t istrnol2:1, /* R/W The write buffer threshold. */
__BITFIELD_FIELD(uint64_t wbthresh:4, /* Reserved */
__BITFIELD_FIELD(uint64_t reserved2:2, /* R/W If set, CVMSEG is available for loads/stores in
* kernel/debug mode. */
__BITFIELD_FIELD(uint64_t cvmsegenak:1, /* R/W If set, CVMSEG is available for loads/stores in
* supervisor mode. */
__BITFIELD_FIELD(uint64_t cvmsegenas:1, /* R/W If set, CVMSEG is available for loads/stores in
* user mode. */
__BITFIELD_FIELD(uint64_t cvmsegenau:1, /* R/W Size of local memory in cache blocks, 54 (6912
* bytes) is max legal value. */
__BITFIELD_FIELD(uint64_t lmemsz:6,
;)))))))))))))))))))))))))))))))))
} s;
};
externvoid octeon_check_cpu_bist(void);
int octeon_prune_device_tree(void); externconstchar __dtb_octeon_3xxx_begin; externconstchar __dtb_octeon_68xx_begin;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.