summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pccard_nbk.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-08-10 17:35:11 +0000
committerimp <imp@FreeBSD.org>2000-08-10 17:35:11 +0000
commit8f29f4ff6f1f8a3f4bc94ab1c72c193e2a6df766 (patch)
tree024ae8608a7b7396791269327f1806dcaf510d9b /sys/pccard/pccard_nbk.c
parent26b98557922be64225e7edc7aa2a1e3cf519475c (diff)
downloadFreeBSD-src-8f29f4ff6f1f8a3f4bc94ab1c72c193e2a6df766.zip
FreeBSD-src-8f29f4ff6f1f8a3f4bc94ab1c72c193e2a6df766.tar.gz
Add some infrastructure support for dealing with large attribute
memory space needed by the raylink driver (in progress, nearing completion). This is a minorly cleaned up diff from Duncan to help him reduce the diffs from stock FreeBSD. Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>
Diffstat (limited to 'sys/pccard/pccard_nbk.c')
-rw-r--r--sys/pccard/pccard_nbk.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c
index e346956..37e9557 100644
--- a/sys/pccard/pccard_nbk.c
+++ b/sys/pccard/pccard_nbk.c
@@ -300,6 +300,14 @@ pccard_set_memory_offset(device_t bus, device_t child, int rid,
}
static int
+pccard_get_memory_offset(device_t bus, device_t child, int rid,
+ u_int32_t *offset)
+{
+ return CARD_GET_MEMORY_OFFSET(device_get_parent(bus), child, rid,
+ offset);
+}
+
+static int
pccard_get_function(device_t bus, device_t child, int *function)
{
*function = 0;
@@ -346,6 +354,7 @@ 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_memory_offset, pccard_get_memory_offset),
DEVMETHOD(card_get_function, pccard_get_function),
DEVMETHOD(card_activate_function, pccard_activate_function),
DEVMETHOD(card_deactivate_function, pccard_deactivate_function),
OpenPOWER on IntegriCloud