Deleted Added
full compact
bktr_os.h (74903) bktr_os.h (88088)
1/* $FreeBSD: head/sys/dev/bktr/bktr_os.h 74903 2001-03-28 03:06:10Z jhb $ */
1/* $FreeBSD: head/sys/dev/bktr/bktr_os.h 88088 2001-12-18 00:27:18Z 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.

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

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)
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.

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

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)
64#define DECLARE_INTR_MASK(s) /* no need to declare 's' */
65#define DISABLE_INTR(s) critical_enter()
66#define ENABLE_INTR(s) critical_exit()
67#else
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
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
67#else
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
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