DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

cm_devconfig_size(D3)


cm_devconfig_size -- get the size of device configuration space

Synopsis

   #include <sys/confmgr.h>
   #include <sys/ddi.h>
   

size_t cm_devconfig_size(rm_key_t rm_key);

Description

cm_devconfig_size returns the size of the device configuration space for the given device.

Arguments


rm_key
Resource manager key selecting a particular board instance.

Return values

cm_devconfig_size returns the size in bytes, or 0 on error.

Usage

cm_devconfig_size( ) is used in conjunction with cm_read_devconfig(D3) so that the entire device configuration space can be read in one piece. The size of the configuration space varies depending on the bus type. On some buses the size can vary with each device.

Typically, the caller will use the size returned by cm_devconfig_size( ) to allocate a block of memory which it then passes to cm_read_devconfig(D3).

The caller must not have a resource manager transaction pending (see cm_begin_trans(D3)) when this function is called.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

cm_read_devconfig(D3), cm_read_devconfig8(D3), cm_read_devconfig16(D3), cm_read_devconfig32(D3), cm_write_devconfig(D3), cm_write_devconfig8(D3), cm_write_devconfig16(D3), cm_write_devconfig32(D3), cm_args(D4)

``Autoconfiguration'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005