Remove card_get_function. It looks like it was intended to be a

bridge between OLDCARD and NEWCARD for drivers to inquire after the
function number (eg, 0, 1, 2).  Nobody ever used it, so retire it
with honors.  NEWCARD never implemented it, and the same information
can be obtained by the pccard_get_function_number().

MFC After: 3 days
This commit is contained in:
Warner Losh 2005-02-14 07:00:39 +00:00
parent 3302cab184
commit 78ac8a9391
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141882
2 changed files with 0 additions and 17 deletions

View File

@ -93,15 +93,6 @@ METHOD int detach_card {
device_t dev;
}
#
# 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

View File

@ -381,13 +381,6 @@ pccard_get_memory_offset(device_t bus, device_t child, int rid,
}
#if __FreeBSD_version >= 500000
static int
pccard_get_function_num(device_t bus, device_t child, int *function)
{
*function = 0;
return (0);
}
static int
pccard_activate_function(device_t bus, device_t child)
{
@ -439,7 +432,6 @@ static device_method_t pccard_methods[] = {
DEVMETHOD(card_set_memory_offset, pccard_set_memory_offset),
DEVMETHOD(card_get_memory_offset, pccard_get_memory_offset),
#if __FreeBSD_version >= 500000
DEVMETHOD(card_get_function, pccard_get_function_num),
DEVMETHOD(card_activate_function, pccard_activate_function),
DEVMETHOD(card_deactivate_function, pccard_deactivate_function),
DEVMETHOD(card_compat_do_probe, pccard_compat_do_probe),