PCI "SET REGISTER"

Change the content of a register.

Syntax

PCI "SET REGISTER/BUS=bus_id/DEV=device_id/FUNC=func_id/OFFSET=offset/VAL=value/LENGTH=length"

Parameters

/BUS=bus_id

Specifies the PCI bus; bus_id is a decimal number.

/DEV=dev_id

Specifies the PCI device; device_id is a decimal number.

/FUNC=func_id

Specifies the PCI function; function_id is a decimal number.

/OFFSET=offset

Specifies the start address of the registers to be displayed; offset is a hexadecimal number from 0x0 to 0xFF.

/VAL=value

Specifies the new value to be written to the register; value is a hexadecimal number.

/LENGTH=length

Specifies whether the value to be written is a 1-, 2- or 4-bytes value.

Description

This command changes the content of a PCI register as defined by /BUS, /DEV, /FUNC, and /OFFSET. It writes a new value to the register as defined by /VAL and /LENGTH.

Note

Make sure to use this command only after full initialization of the platform's PCI subsystem. Accessing the PCI bus before that point in time might lead to target instabilities up to and including crashes.

For more complete information about compiler optimizations, see our Optimization Notice.