write byte to board's NVRAM extension information
int cm_write_devconfig16(rm_key_t key, size_t offset, const uchar_t *buf)
cm_write_devconfig16 is used to write
a single word (two-bytes) to
the NVRAM extension information
associated with a selected board instance.
The extension information is specific to the bus
type of the board and exactly what information is written is determined
by the bus driver (for example, the MCA bus driver).
Drivers should not use this routine
to write standard board parameters directly.
Rather, such parameters should be stored with
cm_write_devconfig16 can be used
by MCA drivers
to write directly to the POS registers.
Resource manager key selecting a particular board instance.
Offset from the beginning of the board's device configuration space
to start writing data.
Buffer containing data to be written.
cm_write_devconfig16 returns 0 for success.
The following errnos are returned for failure:
if rm_key is invalid,
buf is NULL,
or the write fails.
if the board is installed in an ISA bus
or the bus does not provide
the specified level of granularity.
Note, even though the
function supports all levels of granularity,
this interface is limited to
those "inherent" on the system (i.e. there are
BIOS calls to support them directly).
The caller must not have
a resource manager transaction pending
when this function is called.
for a code example that illustrates the use of
Context and synchronization
7.1, 7.1mp, 8, 8mp
Differences between versions
In DDI versions 7.1 and 7.1mp,
the offset argument is cast
as size_t rather than an off_t.
When porting drivers from earlier DDI versions,
it is not necessary to modify the type
of the offset argument.
``Autoconfiguration'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005