arch/x86/include/asm/amd/node.h

Source file repositories/reference/linux-study-clean/arch/x86/include/asm/amd/node.h

File Facts

System
Linux kernel
Corpus path
arch/x86/include/asm/amd/node.h
Extension
.h
Size
1582 bytes
Lines
60
Domain
Architecture Layer
Bucket
arch/x86
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

static inline int __must_check amd_smn_read(u16 node, u32 address, u32 *value) { return -ENODEV; }
static inline int __must_check amd_smn_write(u16 node, u32 address, u32 value) { return -ENODEV; }

static inline int __must_check amd_smn_hsmp_rdwr(u16 node, u32 address, u32 *value, bool write)
{
	return -ENODEV;
}
#endif /* CONFIG_AMD_NODE */

/* helper for use with read_poll_timeout */
static inline int smn_read_register(u32 reg)
{
	int data, rc;

	rc = amd_smn_read(0, reg, &data);
	if (rc)
		return rc;

	return data;
}
#endif /*_ASM_X86_AMD_NODE_H_*/

Annotation

Implementation Notes