summaryrefslogtreecommitdiffstats
path: root/sys/compat/ndis
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2010-11-29 10:21:45 +0000
committerbschmidt <bschmidt@FreeBSD.org>2010-11-29 10:21:45 +0000
commit2fe8bd5bcc35ad602c1c34570e270624bb4e1e66 (patch)
tree2cf9e2ca054dadac1f4290464c7b216626df19bb /sys/compat/ndis
parenta055d1840effbe53e69ff31a1eb33d74a97f2128 (diff)
downloadFreeBSD-src-2fe8bd5bcc35ad602c1c34570e270624bb4e1e66.zip
FreeBSD-src-2fe8bd5bcc35ad602c1c34570e270624bb4e1e66.tar.gz
Add a dummy for IoOpenDeviceRegistryKey().
With that change the Atheros 9xxx driver is actually usable and does not panic anymore. Submitted by: Paul B Mahol <onemda at gmail.com> MFC after: 2 weeks
Diffstat (limited to 'sys/compat/ndis')
-rw-r--r--sys/compat/ndis/subr_ntoskrnl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c
index c575eb9..c523f8b 100644
--- a/sys/compat/ndis/subr_ntoskrnl.c
+++ b/sys/compat/ndis/subr_ntoskrnl.c
@@ -228,6 +228,8 @@ static void srand(unsigned int);
static void KeQuerySystemTime(uint64_t *);
static uint32_t KeTickCount(void);
static uint8_t IoIsWdmVersionAvailable(uint8_t, uint8_t);
+static int32_t IoOpenDeviceRegistryKey(struct device_object *, uint32_t,
+ uint32_t, void **);
static void ntoskrnl_thrfunc(void *);
static ndis_status PsCreateSystemThread(ndis_handle *,
uint32_t, void *, ndis_handle, void *, void *, void *);
@@ -3199,6 +3201,13 @@ IoIsWdmVersionAvailable(uint8_t major, uint8_t minor)
return (FALSE);
}
+static int32_t
+IoOpenDeviceRegistryKey(struct device_object *devobj, uint32_t type,
+ uint32_t mask, void **key)
+{
+ return (NDIS_STATUS_INVALID_DEVICE_REQUEST);
+}
+
static ndis_status
IoGetDeviceObjectPointer(name, reqaccess, fileobj, devobj)
unicode_string *name;
@@ -4378,6 +4387,7 @@ image_patch_table ntoskrnl_functbl[] = {
IMPORT_SFUNC(MmUnmapIoSpace, 2),
IMPORT_SFUNC(KeInitializeSpinLock, 1),
IMPORT_SFUNC(IoIsWdmVersionAvailable, 2),
+ IMPORT_SFUNC(IoOpenDeviceRegistryKey, 4),
IMPORT_SFUNC(IoGetDeviceObjectPointer, 4),
IMPORT_SFUNC(IoGetDeviceProperty, 5),
IMPORT_SFUNC(IoAllocateWorkItem, 1),
OpenPOWER on IntegriCloud