amdmsr(4)

amdmsr4

Access msrs on certain amd geode lx systems

Usage

amdmsr0 at mainbus?

Overview

The amdmsr device provides access to the Model Specific Registers (MSRs) on systems with an AMD Geode LX CPU and graphics processor.

Ioctl interface

MSRs can be read or written via ioctl() calls performed on /dev/amdmsr. Declarations and data types are to be found in ⟨machine/amdmsr.h⟩.

Read or write requests are performed using:

struct amdmsr_req {
	u_int32_t addr;	/* 32-bit MSR address */
	u_int64_t val;	/* 64-bit MSR value */
};

The RDMSR ioctl is used to read an MSR register.

The WRMSR ioctl is used to write an MSR register.

History

amdmsr support was added in OpenBSD 4.4.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.