The caller supplied RestartBlock will be copied to the NVRAM header.
#include <sys/mdio.h>
int md_restart_block_upd (md, pmmode)
struct mdio *md;
unsigned char pmmode;
The 8-bit value in pmmode will be stored into the NVRAM header at the PMMode offset.The RestartBlock which is in the caller's buffer will be copied to the NVRAM after the RestartBlock checksum is calculated and a new Crc1 value is computed.
Item | Description |
---|---|
md | Specifies the address of the mdio structure. The mdio structure
contains the following fields:
|
pmmode | Value to be stored into PMMode in the NVRAM header. |
Returns 0 for successful completion.
Item | Description |
---|---|
EINVAL | Indicates this is not a PowerPC® reference platform. |
Kernel Extensions and Device Driver Management Kernel Services in Kernel Extensions and Device Support Programming Concepts.