summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2005-01-24 18:18:12 +0000
committerwpaul <wpaul@FreeBSD.org>2005-01-24 18:18:12 +0000
commit361515a4123365d5eb5137c5f6a99d0db50f2532 (patch)
tree1c0aadaea645e3e592893a0cc4e411d7f0e6b3a9 /sys/dev
parent9797bcb293408b39a9ccf1af6d41f9297ce7bec3 (diff)
downloadFreeBSD-src-361515a4123365d5eb5137c5f6a99d0db50f2532.zip
FreeBSD-src-361515a4123365d5eb5137c5f6a99d0db50f2532.tar.gz
Begin the first phase of trying to add IRP support (and ultimately
USB device support): - Convert all of my locally chosen function names to their actual Windows equivalents, where applicable. This is a big no-op change since it doesn't affect functionality, but it helps avoid a bit of confusion (it's now a lot easier to see which functions are emulated Windows API routines and which are just locally defined). - Turn ndis_buffer into an mdl, like it should have been. The structure is the same, but now it belongs to the subr_ntoskrnl module. - Implement a bunch of MDL handling macros from Windows and use them where applicable. - Correct the implementation of IoFreeMdl(). - Properly implement IoAllocateMdl() and MmBuildMdlForNonPagedPool(). - Add the definitions for struct irp and struct driver_object. - Add IMPORT_FUNC() and IMPORT_FUNC_MAP() macros to make formatting the module function tables a little cleaner. (Should also help with AMD64 support later on.) - Fix if_ndis.c to use KeRaiseIrql() and KeLowerIrql() instead of the previous calls to hal_raise_irql() and hal_lower_irql() which have been renamed. The function renaming generated a lot of churn here, but there should be very little operational effect.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/if_ndis/if_ndis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c
index f075a27..c6223db 100644
--- a/sys/dev/if_ndis/if_ndis.c
+++ b/sys/dev/if_ndis/if_ndis.c
@@ -1016,9 +1016,9 @@ ndis_intrtask(arg)
sc = arg;
ifp = &sc->arpcom.ac_if;
- irql = FASTCALL1(hal_raise_irql, DISPATCH_LEVEL);
+ irql = KeRaiseIrql(DISPATCH_LEVEL);
ndis_intrhand(sc);
- FASTCALL1(hal_lower_irql, irql);
+ KeLowerIrql(irql);
mtx_lock(&sc->ndis_intrmtx);
ndis_enable_intr(sc);
mtx_unlock(&sc->ndis_intrmtx);
OpenPOWER on IntegriCloud