arch/mips/include/asm/octeon/cvmx.h
Source file repositories/reference/linux-study-clean/arch/mips/include/asm/octeon/cvmx.h
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/include/asm/octeon/cvmx.h- Extension
.h- Size
- 14187 bytes
- Lines
- 496
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
linux/kernel.hlinux/string.hlinux/delay.hasm/octeon/cvmx-asm.hasm/octeon/cvmx-packet.hasm/octeon/cvmx-sysinfo.hasm/octeon/cvmx-ciu-defs.hasm/octeon/cvmx-ciu3-defs.hasm/octeon/cvmx-gpio-defs.hasm/octeon/cvmx-iob-defs.hasm/octeon/cvmx-ipd-defs.hasm/octeon/cvmx-l2c-defs.hasm/octeon/cvmx-l2d-defs.hasm/octeon/cvmx-l2t-defs.hasm/octeon/cvmx-led-defs.hasm/octeon/cvmx-mio-defs.hasm/octeon/cvmx-pow-defs.hasm/octeon/cvmx-bootinfo.hasm/octeon/cvmx-bootmem.hasm/octeon/cvmx-l2c.h
Detected Declarations
enum cvmx_mips_spacefunction cvmx_get_proc_idfunction cvmx_build_io_addressfunction cvmx_build_bitsfunction pointerfunction addressfunction cvmx_write_csrfunction cvmx_writeq_csrfunction cvmx_write_iofunction cvmx_read_csrfunction cvmx_readq_csrfunction cvmx_send_singlefunction cvmx_read_csr_asyncfunction cvmx_octeon_is_pass1function cvmx_get_core_numfunction cvmx_get_node_numfunction cvmx_get_local_core_numfunction cvmx_write_csr_nodefunction cvmx_read_csr_nodefunction cvmx_popfunction cvmx_dpopfunction cvmx_get_cyclefunction cvmx_get_cycle_globalfunction cvmx_octeon_num_cores
Annotated Snippet
while (1) { \
c.u64 = cvmx_read_csr(address); \
if ((c.s.field) op(value)) { \
result = 0; \
break; \
} else if (cvmx_get_cycle() > done) { \
result = -1; \
break; \
} else \
__delay(100); \
} \
} while (0); \
result; \
})
/***************************************************************************/
/* Return the number of cores available in the chip */
static inline uint32_t cvmx_octeon_num_cores(void)
{
u64 ciu_fuse_reg;
u64 ciu_fuse;
if (OCTEON_IS_OCTEON3() && !OCTEON_IS_MODEL(OCTEON_CN70XX))
ciu_fuse_reg = CVMX_CIU3_FUSE;
else
ciu_fuse_reg = CVMX_CIU_FUSE;
ciu_fuse = cvmx_read_csr(ciu_fuse_reg);
return cvmx_dpop(ciu_fuse);
}
#endif /* __CVMX_H__ */
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/string.h`, `linux/delay.h`, `asm/octeon/cvmx-asm.h`, `asm/octeon/cvmx-packet.h`, `asm/octeon/cvmx-sysinfo.h`, `asm/octeon/cvmx-ciu-defs.h`, `asm/octeon/cvmx-ciu3-defs.h`.
- Detected declarations: `enum cvmx_mips_space`, `function cvmx_get_proc_id`, `function cvmx_build_io_address`, `function cvmx_build_bits`, `function pointer`, `function address`, `function cvmx_write_csr`, `function cvmx_writeq_csr`, `function cvmx_write_io`, `function cvmx_read_csr`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.