/* Structure of accessible HEART registers located in XKPHYS space. */ struct ip30_heart_regs __iomem *heart_regs = HEART_XKPHYS_BASE;
/* * ARCS will report up to the first 1GB of * memory if queried. Anything beyond that * is marked as reserved.
*/ #define IP30_MAX_PROM_MEMORY _AC(0x40000000, UL)
/* * Memory in the Octane starts at 512MB
*/ #define IP30_MEMORY_BASE _AC(0x20000000, UL)
/* * If using ARCS to probe for memory, then * remaining memory will start at this offset.
*/ #define IP30_REAL_MEMORY_START (IP30_MEMORY_BASE + IP30_MAX_PROM_MEMORY)
total_mem = 0; for (i = 0; i < HEART_MEMORY_BANKS; i++) {
memcfg = __raw_readl(&heart_regs->mem_cfg.l[i]); if (!(memcfg & HEART_MEMCFG_VALID)) continue;
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.