hal_var.h revision 285830
11539Srgrimes/*- 21539Srgrimes * Copyright (c) 2003 31539Srgrimes * Bill Paul <wpaul@windriver.com>. All rights reserved. 41539Srgrimes * 51539Srgrimes * Redistribution and use in source and binary forms, with or without 61539Srgrimes * modification, are permitted provided that the following conditions 71539Srgrimes * are met: 81539Srgrimes * 1. Redistributions of source code must retain the above copyright 91539Srgrimes * notice, this list of conditions and the following disclaimer. 101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111539Srgrimes * notice, this list of conditions and the following disclaimer in the 121539Srgrimes * documentation and/or other materials provided with the distribution. 131539Srgrimes * 3. All advertising materials mentioning features or use of this software 141539Srgrimes * must display the following acknowledgement: 151539Srgrimes * This product includes software developed by Bill Paul. 161539Srgrimes * 4. Neither the name of the author nor the names of any co-contributors 171539Srgrimes * may be used to endorse or promote products derived from this software 181539Srgrimes * without specific prior written permission. 191539Srgrimes * 201539Srgrimes * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 211539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 221539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 231539Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 241539Srgrimes * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 251539Srgrimes * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 261539Srgrimes * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 271539Srgrimes * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 281539Srgrimes * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 291539Srgrimes * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 3050473Speter * THE POSSIBILITY OF SUCH DAMAGE. 311539Srgrimes * 321539Srgrimes * $FreeBSD: releng/10.2/sys/compat/ndis/hal_var.h 216592 2010-12-20 16:39:43Z tijl $ 331539Srgrimes */ 341539Srgrimes 351539Srgrimes#ifndef _HAL_VAR_H_ 3645513Sbde#define _HAL_VAR_H_ 37249355Sglebius 3845513Sbde#define NDIS_BUS_SPACE_IO X86_BUS_SPACE_IO 3945513Sbde#define NDIS_BUS_SPACE_MEM X86_BUS_SPACE_MEM 401539Srgrimes 411539Srgrimesextern image_patch_table hal_functbl[]; 421539Srgrimes 431539Srgrimes__BEGIN_DECLS 44102227Smikeextern int hal_libinit(void); 45102227Smikeextern int hal_libfini(void); 46102227Smikeextern uint8_t KfAcquireSpinLock(kspin_lock *); 4741882Sbdeextern void KfReleaseSpinLock(kspin_lock *, uint8_t); 481539Srgrimesextern uint8_t KfRaiseIrql(uint8_t); 49102227Smikeextern void KfLowerIrql(uint8_t); 50102227Smikeextern uint8_t KeGetCurrentIrql(void); 51102227Smike__END_DECLS 5241882Sbde 5341882Sbde#endif /* _HAL_VAR_H_ */ 541539Srgrimes