From 265be3e08a76d6578db9cc8e60f201ebb46df228 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 18 Jun 2000 05:02:09 +0000 Subject: [PATCH] Add new functions. Also add comments to existing functions. These are needed for the pccard changes I've just committed. --- sys/dev/pccard/card_if.m | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m index ab6570fe6c3b..6e925fb544eb 100644 --- a/sys/dev/pccard/card_if.m +++ b/sys/dev/pccard/card_if.m @@ -55,6 +55,10 @@ METHOD int get_res_flags { u_long *value; }; +# +# Sets the memory offset of the pccard bridge's window into attribute +# or common memory space. +# METHOD int set_memory_offset { device_t dev; device_t child; @@ -62,16 +66,49 @@ METHOD int set_memory_offset { u_int32_t offset; } +# +# pccard bridges call this method to initate the attachment of a card +# METHOD int attach_card { device_t dev; } +# +# pccard bridges call this to detach a card. +# METHOD int detach_card { device_t dev; int flags; } +# +# Returns the type of card this is. Maybe we don't need this. +# METHOD int get_type { device_t dev; int *type; } + +# +# Returns the function number for this device. +# +METHOD int get_function { + device_t dev; + device_t child; + int *func; +} + +# +# Activates (and powers up if necessary) the card's nth function +# since each function gets its own device, there is no need to +# to specify a function number +# +METHOD int activate_function { + device_t dev; + device_t child; +} + +METHOD int deactivate_function { + device_t dev; + device_t child; +}