Deleted Added
full compact
bktr_os.h (59278) bktr_os.h (74903)
1/* $FreeBSD: head/sys/dev/bktr/bktr_os.h 59278 2000-04-16 07:56:58Z roger $ */
1/* $FreeBSD: head/sys/dev/bktr/bktr_os.h 74903 2001-03-28 03:06:10Z jhb $ */
2
3/*
4 * This is part of the Driver for Video Capture Cards (Frame grabbers)
5 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
6 * chipset.
7 * Copyright Roger Hardiman and Amancio Hasty.
8 *
9 * bktr_os : This has all the Operating System dependant code.

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

55vm_offset_t get_bktr_mem(bktr_ptr_t, bus_dmamap_t *, unsigned size);
56void free_bktr_mem(bktr_ptr_t, bus_dmamap_t, vm_offset_t);
57#endif
58
59/************************************/
60/* *** Interrupt Enable/Disable *** */
61/************************************/
62#if defined(__FreeBSD__)
2
3/*
4 * This is part of the Driver for Video Capture Cards (Frame grabbers)
5 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
6 * chipset.
7 * Copyright Roger Hardiman and Amancio Hasty.
8 *
9 * bktr_os : This has all the Operating System dependant code.

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

55vm_offset_t get_bktr_mem(bktr_ptr_t, bus_dmamap_t *, unsigned size);
56void free_bktr_mem(bktr_ptr_t, bus_dmamap_t, vm_offset_t);
57#endif
58
59/************************************/
60/* *** Interrupt Enable/Disable *** */
61/************************************/
62#if defined(__FreeBSD__)
63#if (__FreeBSD_version >=500000)
64#define DECLARE_INTR_MASK(s) critical_t s
65#define DISABLE_INTR(s) s = critical_enter()
66#define ENABLE_INTR(s) critical_exit(s)
67#else
63#define DECLARE_INTR_MASK(s) intrmask_t s
64#define DISABLE_INTR(s) s=spltty()
65#define ENABLE_INTR(s) splx(s)
68#define DECLARE_INTR_MASK(s) intrmask_t s
69#define DISABLE_INTR(s) s=spltty()
70#define ENABLE_INTR(s) splx(s)
71#endif
66#else
67#define DECLARE_INTR_MASK(s) /* no need to declare 's' */
68#define DISABLE_INTR(s) disable_intr()
69#define ENABLE_INTR(s) enable_intr()
70#endif
71
72
72#else
73#define DECLARE_INTR_MASK(s) /* no need to declare 's' */
74#define DISABLE_INTR(s) disable_intr()
75#define ENABLE_INTR(s) enable_intr()
76#endif
77
78