ntoskrnl_var.h (128449) | ntoskrnl_var.h (132973) |
---|---|
1/* 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/compat/ndis/ntoskrnl_var.h 128449 2004-04-20 02:27:38Z wpaul $ | 32 * $FreeBSD: head/sys/compat/ndis/ntoskrnl_var.h 132973 2004-08-01 20:04:31Z wpaul $ |
33 */ 34 35#ifndef _NTOSKRNL_VAR_H_ 36#define _NTOSKRNL_VAR_H_ 37 38/* Note: assumes x86 page size of 4K. */ 39#define PAGE_SHIFT 12 40#define SPAN_PAGES(ptr, len) \ --- 462 unchanged lines hidden (view full) --- 503__stdcall extern uint8_t ntoskrnl_read_timer(ktimer *); 504__stdcall extern uint32_t ntoskrnl_waitforobj(nt_dispatch_header *, uint32_t, 505 uint32_t, uint8_t, int64_t *); 506__stdcall extern void ntoskrnl_init_event(nt_kevent *, uint32_t, uint8_t); 507__stdcall extern void ntoskrnl_clear_event(nt_kevent *); 508__stdcall extern uint32_t ntoskrnl_read_event(nt_kevent *); 509__stdcall extern uint32_t ntoskrnl_set_event(nt_kevent *, uint32_t, uint8_t); 510__stdcall extern uint32_t ntoskrnl_reset_event(nt_kevent *); | 33 */ 34 35#ifndef _NTOSKRNL_VAR_H_ 36#define _NTOSKRNL_VAR_H_ 37 38/* Note: assumes x86 page size of 4K. */ 39#define PAGE_SHIFT 12 40#define SPAN_PAGES(ptr, len) \ --- 462 unchanged lines hidden (view full) --- 503__stdcall extern uint8_t ntoskrnl_read_timer(ktimer *); 504__stdcall extern uint32_t ntoskrnl_waitforobj(nt_dispatch_header *, uint32_t, 505 uint32_t, uint8_t, int64_t *); 506__stdcall extern void ntoskrnl_init_event(nt_kevent *, uint32_t, uint8_t); 507__stdcall extern void ntoskrnl_clear_event(nt_kevent *); 508__stdcall extern uint32_t ntoskrnl_read_event(nt_kevent *); 509__stdcall extern uint32_t ntoskrnl_set_event(nt_kevent *, uint32_t, uint8_t); 510__stdcall extern uint32_t ntoskrnl_reset_event(nt_kevent *); |
511__stdcall extern void ntoskrnl_lock_dpc(/*kspin_lock * */ void); 512__stdcall extern void ntoskrnl_unlock_dpc(/*kspin_lock * */ void); | 511__fastcall extern void ntoskrnl_lock_dpc(REGARGS1(kspin_lock *)); 512__fastcall extern void ntoskrnl_unlock_dpc(REGARGS1(kspin_lock *)); |
513 514/* 515 * On the Windows x86 arch, KeAcquireSpinLock() and KeReleaseSpinLock() 516 * routines live in the HAL. We try to imitate this behavior. 517 */ 518#ifdef __i386__ 519#define ntoskrnl_acquire_spinlock(a, b) \ 520 *(b) = FASTCALL(hal_lock, a, 0) 521#define ntoskrnl_release_spinlock(a, b) \ 522 FASTCALL(hal_unlock, a, b) 523#endif /* __i386__ */ 524__END_DECLS 525 526#endif /* _NTOSKRNL_VAR_H_ */ | 513 514/* 515 * On the Windows x86 arch, KeAcquireSpinLock() and KeReleaseSpinLock() 516 * routines live in the HAL. We try to imitate this behavior. 517 */ 518#ifdef __i386__ 519#define ntoskrnl_acquire_spinlock(a, b) \ 520 *(b) = FASTCALL(hal_lock, a, 0) 521#define ntoskrnl_release_spinlock(a, b) \ 522 FASTCALL(hal_unlock, a, b) 523#endif /* __i386__ */ 524__END_DECLS 525 526#endif /* _NTOSKRNL_VAR_H_ */ |