svn commit: r216838 - stable/8/sys/compat/ndis

Bernhard Schmidt bschmidt at FreeBSD.org
Fri Dec 31 12:53:07 UTC 2010


Author: bschmidt
Date: Fri Dec 31 12:53:07 2010
New Revision: 216838
URL: http://svn.freebsd.org/changeset/base/216838

Log:
  MFC r216050:
  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>

Modified:
  stable/8/sys/compat/ndis/subr_ntoskrnl.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/compat/ndis/subr_ntoskrnl.c
==============================================================================
--- stable/8/sys/compat/ndis/subr_ntoskrnl.c	Fri Dec 31 12:48:43 2010	(r216837)
+++ stable/8/sys/compat/ndis/subr_ntoskrnl.c	Fri Dec 31 12:53:07 2010	(r216838)
@@ -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, u
 	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),


More information about the svn-src-all mailing list