From 6ea91a6bcba0381db9705b2bd3d9239157dec7c1 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 6 Oct 2003 07:10:40 +0000 Subject: [PATCH] Remove the cis reading bus methods. They were never implemented and there's been some critism about the API not being lock friendly. --- sys/dev/pccard/card_if.m | 49 ---------------------------------------- 1 file changed, 49 deletions(-) diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m index f2467514f540..ae239470ad0f 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; -