aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard/pccard_nbk.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2000-06-18 04:59:39 +0000
committerWarner Losh <imp@FreeBSD.org>2000-06-18 04:59:39 +0000
commit6cd40f893b92ca2e66bbe9ceb831c824a30d0bf7 (patch)
tree3836099639b20fbc8e735e68198d9b96a5ea9bf1 /sys/pccard/pccard_nbk.c
parentfb1d37adcd0f3474eea043d5e5af13b31aa6fa01 (diff)
downloadsrc-6cd40f893b92ca2e66bbe9ceb831c824a30d0bf7.tar.gz
src-6cd40f893b92ca2e66bbe9ceb831c824a30d0bf7.zip
o Implement some compatibility functions for NEWCARD compat. This is
incomplete, but will eventually allow the same drivers to function with both oldcard and newcard. o Remove include of opt_bus.h. It isn't needed and gets in the way of module building.
Notes
Notes: svn path=/head/; revision=61777
Diffstat (limited to 'sys/pccard/pccard_nbk.c')
-rw-r--r--sys/pccard/pccard_nbk.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c
index e58d396002df..e346956cf55a 100644
--- a/sys/pccard/pccard_nbk.c
+++ b/sys/pccard/pccard_nbk.c
@@ -49,8 +49,6 @@
* These compatibility nodes are called pccnbk. PCCard New Bus Kludge.
*/
-#include "opt_bus.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/module.h>
@@ -301,6 +299,27 @@ pccard_set_memory_offset(device_t bus, device_t child, int rid,
offset);
}
+static int
+pccard_get_function(device_t bus, device_t child, int *function)
+{
+ *function = 0;
+ return (0);
+}
+
+static int
+pccard_activate_function(device_t bus, device_t child)
+{
+ /* pccardd has alrady activated the function */
+ return (0);
+}
+
+static int
+pccard_deactivate_function(device_t bus, device_t child)
+{
+ /* pccardd will deactivate the function */
+ return (0);
+}
+
static device_method_t pccard_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, pccard_probe),
@@ -327,6 +346,9 @@ static device_method_t pccard_methods[] = {
DEVMETHOD(card_set_res_flags, pccard_set_res_flags),
DEVMETHOD(card_get_res_flags, pccard_get_res_flags),
DEVMETHOD(card_set_memory_offset, pccard_set_memory_offset),
+ DEVMETHOD(card_get_function, pccard_get_function),
+ DEVMETHOD(card_activate_function, pccard_activate_function),
+ DEVMETHOD(card_deactivate_function, pccard_deactivate_function),
{ 0, 0 }
};