diff options
| author | Warner Losh <imp@FreeBSD.org> | 2003-10-06 07:10:40 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2003-10-06 07:10:40 +0000 |
| commit | 6ea91a6bcba0381db9705b2bd3d9239157dec7c1 (patch) | |
| tree | 664ef6765735f6556b576844843cb21e6e2c6f5f /sys | |
| parent | cb987496a3ede9ed23bb0373fec7cbc76451c6d9 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/pccard/card_if.m | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m index f2467514f5409..ae239470ad0f9 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; - |
