hal_var.h (144888) | hal_var.h (189488) |
---|---|
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/hal_var.h 144888 2005-04-11 02:02:35Z wpaul $ | 32 * $FreeBSD: head/sys/compat/ndis/hal_var.h 189488 2009-03-07 07:26:22Z weongyo $ |
33 */ 34 35#ifndef _HAL_VAR_H_ 36#define _HAL_VAR_H_ 37 38#ifdef __amd64__ 39#define NDIS_BUS_SPACE_IO AMD64_BUS_SPACE_IO 40#define NDIS_BUS_SPACE_MEM AMD64_BUS_SPACE_MEM 41#else 42#define NDIS_BUS_SPACE_IO I386_BUS_SPACE_IO 43#define NDIS_BUS_SPACE_MEM I386_BUS_SPACE_MEM 44#endif 45 46extern image_patch_table hal_functbl[]; 47 48__BEGIN_DECLS 49extern int hal_libinit(void); 50extern int hal_libfini(void); | 33 */ 34 35#ifndef _HAL_VAR_H_ 36#define _HAL_VAR_H_ 37 38#ifdef __amd64__ 39#define NDIS_BUS_SPACE_IO AMD64_BUS_SPACE_IO 40#define NDIS_BUS_SPACE_MEM AMD64_BUS_SPACE_MEM 41#else 42#define NDIS_BUS_SPACE_IO I386_BUS_SPACE_IO 43#define NDIS_BUS_SPACE_MEM I386_BUS_SPACE_MEM 44#endif 45 46extern image_patch_table hal_functbl[]; 47 48__BEGIN_DECLS 49extern int hal_libinit(void); 50extern int hal_libfini(void); |
51extern struct mtx *hal_getdisplock(void); |
|
51extern uint8_t KfAcquireSpinLock(kspin_lock *); 52extern void KfReleaseSpinLock(kspin_lock *, uint8_t); 53extern uint8_t KfRaiseIrql(uint8_t); 54extern void KfLowerIrql(uint8_t); 55extern uint8_t KeGetCurrentIrql(void); 56__END_DECLS 57 58#endif /* _HAL_VAR_H_ */ | 52extern uint8_t KfAcquireSpinLock(kspin_lock *); 53extern void KfReleaseSpinLock(kspin_lock *, uint8_t); 54extern uint8_t KfRaiseIrql(uint8_t); 55extern void KfLowerIrql(uint8_t); 56extern uint8_t KeGetCurrentIrql(void); 57__END_DECLS 58 59#endif /* _HAL_VAR_H_ */ |