Deleted Added
full compact
os_bsd.h (269613) os_bsd.h (281387)
1/* $Id: os_bsd.h,v 1.20 2010/05/11 03:12:11 lcn Exp $ */
2/*-
3 * HighPoint RAID Driver for FreeBSD
4 * Copyright (C) 2005-2011 HighPoint Technologies, Inc. All Rights Reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/* $Id: os_bsd.h,v 1.20 2010/05/11 03:12:11 lcn Exp $ */
2/*-
3 * HighPoint RAID Driver for FreeBSD
4 * Copyright (C) 2005-2011 HighPoint Technologies, Inc. All Rights Reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/hptnr/os_bsd.h 269613 2014-08-05 23:39:35Z jhb $
28 * $FreeBSD: head/sys/dev/hptnr/os_bsd.h 281387 2015-04-11 00:45:03Z delphij $
29 */
30
31#include <dev/hptnr/hptnr_config.h>
32
33#ifndef _OS_BSD_H
34#define _OS_BSD_H
35
36#ifndef DBG

--- 149 unchanged lines hidden (view full) ---

186}
187VBUS_EXT, *PVBUS_EXT;
188
189#define hpt_lock_vbus(vbus_ext) mtx_lock(&(vbus_ext)->lock)
190#define hpt_unlock_vbus(vbus_ext) mtx_unlock(&(vbus_ext)->lock)
191#define hpt_assert_vbus_locked(vbus_ext) mtx_assert(&(vbus_ext)->lock, MA_OWNED)
192
193
29 */
30
31#include <dev/hptnr/hptnr_config.h>
32
33#ifndef _OS_BSD_H
34#define _OS_BSD_H
35
36#ifndef DBG

--- 149 unchanged lines hidden (view full) ---

186}
187VBUS_EXT, *PVBUS_EXT;
188
189#define hpt_lock_vbus(vbus_ext) mtx_lock(&(vbus_ext)->lock)
190#define hpt_unlock_vbus(vbus_ext) mtx_unlock(&(vbus_ext)->lock)
191#define hpt_assert_vbus_locked(vbus_ext) mtx_assert(&(vbus_ext)->lock, MA_OWNED)
192
193
194#define HPT_OSM_TIMEOUT (20*hz) /* timeout value for OS commands */
194#define HPT_OSM_TIMEOUT (120*hz) /* timeout value for OS commands */
195
196#define HPT_DO_IOCONTROL _IOW('H', 0, HPT_IOCTL_PARAM)
197
198#define HPT_SCAN_BUS _IO('H', 1)
199
200#define TASK_ENQUEUE(task) taskqueue_enqueue(taskqueue_swi,(task));
201
202static __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int timo)
203{
204 return msleep(ident, &vbus_ext->lock, priority, wmesg, timo);
205}
195
196#define HPT_DO_IOCONTROL _IOW('H', 0, HPT_IOCTL_PARAM)
197
198#define HPT_SCAN_BUS _IO('H', 1)
199
200#define TASK_ENQUEUE(task) taskqueue_enqueue(taskqueue_swi,(task));
201
202static __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int timo)
203{
204 return msleep(ident, &vbus_ext->lock, priority, wmesg, timo);
205}