eisa_parse_devconfig(D3) eisa_parse_devconfig(D3)
NAME
eisa_parse_devconfig - parse EISA device configuration space
SYNOPSIS
#include <sys/types.h>
#include <sys/eisa.h>
#include <sys/ddi.h>
boolean_t eisa_parse_devconfig(void *data, void *str, uint_t dtype,
uint_t stype);
Arguments
data Pointer to the configuration data.
str The string to be searched for in the configuration
space.
dtype Type of configuration data passed in the argument.
stype Search type.
DESCRIPTION
eisa_parse_devconfig is used to parse EISA configuration
space. It is used by drivers to parse the ``type'' or
``subtype'' string to determine special properties of the
device.
dtype indicates the format of the data passed in data, and may
be one of:
EISA_SLOT_DATA
All the data pertaining to the slot (eisa_slotinfo_t
plus all eisa_funcinfo_t). eisa_parse_devconfig
will search through all the functions blocks to find
str.
EISA_FUNC_DATA
EISA function block (eisa_funcinfo_t).
stype indicates which field to search, and may be one of:
EISA_TYPE Search the "type" string.
EISA_SUBTYPE
Search the "subtype" string.
Copyright 1994 Novell, Inc. Page 1
eisa_parse_devconfig(D3) eisa_parse_devconfig(D3)
Return Values
Returns B_TRUE on success and B_FALSE on failure to find the
string str.
USAGE
Typically, the data passed in will have been obtained from
cm_read_devconfig(D3).
Level
Initialization or Base.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
cm_read_devconfig(D3), eisa(D4), devconfig(D5)
NOTICES
Portability
AT-compatible architectures
Applicability
ddi: 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2