md_restart_block_upd Kernel Service

Purpose

The caller supplied RestartBlock will be copied to the NVRAM header.

Syntax

#include <sys/mdio.h>
int md_restart_block_upd (md, pmmode)
                struct mdio *md;
                unsigned char pmmode;

Description

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.

Parameters

Item Description
md Specifies the address of the mdio structure. The mdio structure contains the following fields:
md_data
Pointer to the RestartBlock structure..
pmmode Value to be stored into PMMode in the NVRAM header.

Return Values

Returns 0 for successful completion.

Item Description
EINVAL Indicates this is not a PowerPC® reference platform.

Prerequisite Information

Kernel Extensions and Device Driver Management Kernel Services in Kernel Extensions and Device Support Programming Concepts.