drivers/hwtracing/coresight/coresight-self-hosted-trace.h

Source file repositories/reference/linux-study-clean/drivers/hwtracing/coresight/coresight-self-hosted-trace.h

File Facts

System
Linux kernel
Corpus path
drivers/hwtracing/coresight/coresight-self-hosted-trace.h
Extension
.h
Size
443 bytes
Lines
25
Domain
Driver Families
Bucket
drivers/hwtracing
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __CORESIGHT_SELF_HOSTED_TRACE_H
#define __CORESIGHT_SELF_HOSTED_TRACE_H

#include <asm/sysreg.h>

static inline u64 read_trfcr(void)
{
	return read_sysreg_s(SYS_TRFCR_EL1);
}

static inline void write_trfcr(u64 val)
{
	write_sysreg_s(val, SYS_TRFCR_EL1);
	isb();
}

#endif /*  __CORESIGHT_SELF_HOSTED_TRACE_H */

Annotation

Implementation Notes