Remove the cis reading bus methods. They were never implemented and
there's been some critism about the API not being lock friendly.
This commit is contained in:
parent
158d3bb0b0
commit
57b5be873d
@ -200,52 +200,3 @@ METHOD struct pccard_product * do_product_lookup {
|
||||
METHOD int compat_match {
|
||||
device_t dev;
|
||||
}
|
||||
|
||||
#
|
||||
# Method for devices to ask its CIS-enabled parent bus for CIS info.
|
||||
# Device driver requests all tuples if type 'id', the routine places
|
||||
# 'nret' number of tuples in 'buff'. Returns 0 if all tuples processed,
|
||||
# or an error code if processing was aborted.
|
||||
# Users of this method will be responsible for freeing the memory allocated
|
||||
# by calling the cis_free method.
|
||||
#
|
||||
|
||||
HEADER {
|
||||
struct cis_tupleinfo {
|
||||
u_int8_t id;
|
||||
int len;
|
||||
char *data;
|
||||
};
|
||||
};
|
||||
|
||||
CODE {
|
||||
static int
|
||||
null_cis_read(device_t dev, device_t child, u_int8_t id,
|
||||
struct cis_tupleinfo **buff, int *nret)
|
||||
{
|
||||
*nret = 0;
|
||||
*buff = NULL;
|
||||
return ENXIO;
|
||||
}
|
||||
|
||||
static void
|
||||
null_cis_free(device_t dev, struct cis_tupleinfo *buff, int *nret)
|
||||
{
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
METHOD int cis_read {
|
||||
device_t dev;
|
||||
device_t child;
|
||||
u_int8_t id;
|
||||
struct cis_tupleinfo **buff;
|
||||
int *nret;
|
||||
} DEFAULT null_cis_read;
|
||||
|
||||
METHOD int cis_free {
|
||||
device_t dev;
|
||||
struct cis_tupleinfo *buff;
|
||||
int nret;
|
||||
} DEFAULT null_cis_free;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user