subr_hal.c (124501) | subr_hal.c (124504) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 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 33#include <sys/cdefs.h> | 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 --- 17 unchanged lines hidden (view full) --- 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 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_hal.c 124501 2004-01-13 22:23:47Z obrien $"); | 34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_hal.c 124504 2004-01-13 22:49:45Z obrien $"); |
35 36#include <sys/param.h> 37#include <sys/types.h> 38#include <sys/errno.h> 39 40#include <sys/callout.h> 41#include <sys/kernel.h> 42#include <sys/lock.h> --- 7 unchanged lines hidden (view full) --- 50 51#include <sys/bus.h> 52#include <sys/rman.h> 53 54#include <compat/ndis/pe_var.h> 55#include <compat/ndis/hal_var.h> 56#include <compat/ndis/ntoskrnl_var.h> 57 | 35 36#include <sys/param.h> 37#include <sys/types.h> 38#include <sys/errno.h> 39 40#include <sys/callout.h> 41#include <sys/kernel.h> 42#include <sys/lock.h> --- 7 unchanged lines hidden (view full) --- 50 51#include <sys/bus.h> 52#include <sys/rman.h> 53 54#include <compat/ndis/pe_var.h> 55#include <compat/ndis/hal_var.h> 56#include <compat/ndis/ntoskrnl_var.h> 57 |
58#ifdef __amd64__ 59#define __stdcall 60#else 61#define __stdcall __attribute__((__stdcall__)) 62#endif | |
63#define FUNC void(*)(void) 64 65__stdcall static void hal_stall_exec_cpu(uint32_t); 66__stdcall static void hal_writeport_buf_ulong(uint32_t *, 67 uint32_t *, uint32_t); 68__stdcall static void hal_writeport_buf_ushort(uint16_t *, 69 uint16_t *, uint32_t); 70__stdcall static void hal_writeport_buf_uchar(uint8_t *, --- 209 unchanged lines hidden --- | 58#define FUNC void(*)(void) 59 60__stdcall static void hal_stall_exec_cpu(uint32_t); 61__stdcall static void hal_writeport_buf_ulong(uint32_t *, 62 uint32_t *, uint32_t); 63__stdcall static void hal_writeport_buf_ushort(uint16_t *, 64 uint16_t *, uint32_t); 65__stdcall static void hal_writeport_buf_uchar(uint8_t *, --- 209 unchanged lines hidden --- |