Deleted Added
full compact
hpt27xx_os_bsd.c (252867) hpt27xx_os_bsd.c (267290)
1/*-
2 * Copyright (c) 2011 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) 2011 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/hpt27xx/hpt27xx_os_bsd.c 252867 2013-07-06 07:49:41Z delphij $
26 * $FreeBSD: head/sys/dev/hpt27xx/hpt27xx_os_bsd.c 267290 2014-06-09 18:15:05Z jhb $
27 */
28
29#include <dev/hpt27xx/hpt27xx_config.h>
30
31#include <dev/hpt27xx/os_bsd.h>
32
33/* hardware access */
34HPT_U8 os_inb (void *port) { return inb((unsigned)(HPT_UPTR)port); }

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

283 ldm_on_timer((PVBUS)vbus_ext->vbus);
284}
285
286void os_request_timer(void * osext, HPT_U32 interval)
287{
288 PVBUS_EXT vbus_ext = osext;
289
290 HPT_ASSERT(vbus_ext->ext_type==EXT_TYPE_VBUS);
27 */
28
29#include <dev/hpt27xx/hpt27xx_config.h>
30
31#include <dev/hpt27xx/os_bsd.h>
32
33/* hardware access */
34HPT_U8 os_inb (void *port) { return inb((unsigned)(HPT_UPTR)port); }

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

283 ldm_on_timer((PVBUS)vbus_ext->vbus);
284}
285
286void os_request_timer(void * osext, HPT_U32 interval)
287{
288 PVBUS_EXT vbus_ext = osext;
289
290 HPT_ASSERT(vbus_ext->ext_type==EXT_TYPE_VBUS);
291
292 untimeout(os_timer_for_ldm, vbus_ext, vbus_ext->timer);
293 vbus_ext->timer = timeout(os_timer_for_ldm, vbus_ext, interval * hz / 1000000);
291
292 callout_reset(&vbus_ext->timer, interval * hz / 1000000,
293 os_timer_for_ldm, vbus_ext);
294}
295
296HPT_TIME os_query_time(void)
297{
298 return ticks * (1000000 / hz);
299}
300
301void os_schedule_task(void *osext, OSM_TASK *task)

--- 69 unchanged lines hidden ---
294}
295
296HPT_TIME os_query_time(void)
297{
298 return ticks * (1000000 / hz);
299}
300
301void os_schedule_task(void *osext, OSM_TASK *task)

--- 69 unchanged lines hidden ---