cm_write_devconfig(D3) cm_write_devconfig(D3)
NAME
cm_write_devconfig - write a board's NVRAM extension
information
SYNOPSIS
#include <sys/confmgr.h>
#include <sys/ddi.h>
int cm_write_devconfig(rm_key_t key, off_t offset, void *buf,
size_t nbyte);
Arguments
key Resource manager key selecting a particular board
instance.
offset Offset from the beginning of the board's device
configuration space to start writing data.
buf Buffer containing data to be written.
nbyte Number of bytes of data to be written.
DESCRIPTION
cm_write_devconfig is used to write 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 EISA bus driver).
Drivers should not use this routine to write standard board
parameters directly. Rather, such parameters should be stored
via cm_addval(D3) requests.
cm_write_devconfig is used by MCA drivers to directly write
the POS registers.
Return Values
cm_write_config returns the number of bytes written. It will
return -1 if an error occurs.
USAGE
Level
Initialization or Base.
Synchronization Constraints
Does not sleep.
Copyright 1994 Novell, Inc. Page 1
cm_write_devconfig(D3) cm_write_devconfig(D3)
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
cm_addval(D3), cm_devconfig_size(D3), cm_getbrdkey(D3),
cm_read_devconfig(D3), eisa(D4), devconfig(D5)
NOTICES
Portability
All processors
Applicability
ddi: 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2