SVR5
mdi_printcfg(D3mdi)
mdi_printcfg --
configuration information printf for MDI drivers
Synopsis
#include <sys/types.h>
#include <sys/stream.h>
#include <sys/stropt.h>
#include <sys/mdi.h>
#include <sys/ddi.h>
void mdi_printcfg(const char *name, unsigned base,
unsigned offset, int vec, int dma, const char *fmt, ...);
Description
mdi_printcfg( )
announces an MDI driver.
Arguments
name-
driver name
base-
starting I/O address.
Set to 0 if not used.
offset-
number of bytes used, starting with base.
vec-
interrupt vector.
Set to -1 if not used.
dma-
DMA channel.
set to -1 if not used.
fmt-
cmn_err(D3)
formatting string.
Set to 0 if not used.
...-
additional arguments.
Return values
None.
Usage
mdi_printcfg( )
provides a consistent way for drivers to announce themselves
during the
config(D2mdi)
(DDI 8) or the
_load(D2mdi)
(DDI 7) routines.
All drivers should use this interface.
Driver messages may be suppressed from the system console if
netcfg
is running in character mode or if
syslogd
is running.
Context and synchronization
Blockable
context
Hardware applicability
ISA bus.
Version applicability
mdi:
2, 2.1
Differences between versions
This function is similar to the
printcfg(D3oddi)
function on SCO OpenServer systems.
References
_load(D2mdi),
config(D2mdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005