hptproc.c (190809) | hptproc.c (219819) |
---|---|
1/* 2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc. 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc. 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/hptmv/hptproc.c 190809 2009-04-07 16:38:25Z delphij $ | 26 * $FreeBSD: head/sys/dev/hptmv/hptproc.c 219819 2011-03-21 09:40:01Z jeff $ |
27 */ 28/* 29 * hptproc.c sysctl support 30 */ 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/malloc.h> --- 11 unchanged lines hidden (view full) --- 46 47int hpt_rescan_all(void); 48 49/***************************************************************************/ 50 51static char hptproc_buffer[256]; 52extern char DRIVER_VERSION[]; 53 | 27 */ 28/* 29 * hptproc.c sysctl support 30 */ 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/malloc.h> --- 11 unchanged lines hidden (view full) --- 46 47int hpt_rescan_all(void); 48 49/***************************************************************************/ 50 51static char hptproc_buffer[256]; 52extern char DRIVER_VERSION[]; 53 |
54#define FORMAL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, int arg2, \ 55 struct sysctl_req *req | 54#define FORMAL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \ 55 intptr_t arg2, struct sysctl_req *req |
56#define REAL_HANDLER_ARGS oidp, arg1, arg2, req 57typedef struct sysctl_req HPT_GET_INFO; 58 59static int 60hpt_set_asc_info(IAL_ADAPTER_T *pAdapter, char *buffer,int length) 61{ 62 int orig_length = length+4; 63 PVBus _vbus_p = &pAdapter->VBus; --- 562 unchanged lines hidden --- | 56#define REAL_HANDLER_ARGS oidp, arg1, arg2, req 57typedef struct sysctl_req HPT_GET_INFO; 58 59static int 60hpt_set_asc_info(IAL_ADAPTER_T *pAdapter, char *buffer,int length) 61{ 62 int orig_length = length+4; 63 PVBus _vbus_p = &pAdapter->VBus; --- 562 unchanged lines hidden --- |