summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-10-06 07:10:40 +0000
committerimp <imp@FreeBSD.org>2003-10-06 07:10:40 +0000
commit57b5be873dd70f4cb71c087d358b71380cadff0d (patch)
tree664ef6765735f6556b576844843cb21e6e2c6f5f /sys/dev/pccard
parent158d3bb0b05219affc12f1cc8921035118bd8210 (diff)
downloadFreeBSD-src-57b5be873dd70f4cb71c087d358b71380cadff0d.zip
FreeBSD-src-57b5be873dd70f4cb71c087d358b71380cadff0d.tar.gz
Remove the cis reading bus methods. They were never implemented and
there's been some critism about the API not being lock friendly.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/card_if.m49
1 files changed, 0 insertions, 49 deletions
diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m
index f246751..ae23947 100644
--- a/sys/dev/pccard/card_if.m
+++ b/sys/dev/pccard/card_if.m
@@ -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;
-
OpenPOWER on IntegriCloud