arch/loongarch/include/asm/dmi.h

Source file repositories/reference/linux-study-clean/arch/loongarch/include/asm/dmi.h

File Facts

System
Linux kernel
Corpus path
arch/loongarch/include/asm/dmi.h
Extension
.h
Size
531 bytes
Lines
25
Domain
Architecture Layer
Bucket
arch/loongarch
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ASM_DMI_H
#define _ASM_DMI_H

#include <linux/io.h>
#include <linux/memblock.h>

#define dmi_early_remap(x, l)	dmi_remap(x, l)
#define dmi_early_unmap(x, l)	dmi_unmap(x)
#define dmi_alloc(l)		memblock_alloc(l, PAGE_SIZE)

static inline void *dmi_remap(phys_addr_t phys_addr, unsigned long size)
{
	return ((void *)TO_CACHE(phys_addr));
}

static inline void dmi_unmap(void *addr)
{
}

#endif /* _ASM_DMI_H */

Annotation

Implementation Notes