Deleted Added
full compact
interrupt.h (83045) interrupt.h (83366)
1/*
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/sys/interrupt.h 83045 2001-09-05 01:22:14Z obrien $
26 * $FreeBSD: head/sys/sys/interrupt.h 83366 2001-09-12 08:38:13Z julian $
27 */
28
29#ifndef _SYS_INTERRUPT_H_
30#define _SYS_INTERRUPT_H_
31
32#include <sys/_lock.h>
33#include <sys/_mutex.h>
34

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

58
59/*
60 * Describe an interrupt thread. There is one of these per interrupt vector.
61 * Note that this actually describes an interrupt source. There may or may
62 * not be an actual kernel thread attached to a given source.
63 */
64struct ithd {
65 struct mtx it_lock;
27 */
28
29#ifndef _SYS_INTERRUPT_H_
30#define _SYS_INTERRUPT_H_
31
32#include <sys/_lock.h>
33#include <sys/_mutex.h>
34

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

58
59/*
60 * Describe an interrupt thread. There is one of these per interrupt vector.
61 * Note that this actually describes an interrupt source. There may or may
62 * not be an actual kernel thread attached to a given source.
63 */
64struct ithd {
65 struct mtx it_lock;
66 struct proc *it_proc; /* Interrupt process. */
66 struct thread *it_td; /* Interrupt process. */
67 LIST_ENTRY(ithd) it_list; /* All interrupt threads. */
68 TAILQ_HEAD(, intrhand) it_handlers; /* Interrupt handlers. */
69 struct ithd *it_interrupted; /* Who we interrupted. */
70 void (*it_disable)(int); /* Enable interrupt source. */
71 void (*it_enable)(int); /* Disable interrupt source. */
72 void *it_md; /* Hook for MD interrupt code. */
73 int it_flags; /* Interrupt-specific flags. */
74 int it_need; /* Needs service. */

--- 55 unchanged lines hidden ---
67 LIST_ENTRY(ithd) it_list; /* All interrupt threads. */
68 TAILQ_HEAD(, intrhand) it_handlers; /* Interrupt handlers. */
69 struct ithd *it_interrupted; /* Who we interrupted. */
70 void (*it_disable)(int); /* Enable interrupt source. */
71 void (*it_enable)(int); /* Disable interrupt source. */
72 void *it_md; /* Hook for MD interrupt code. */
73 int it_flags; /* Interrupt-specific flags. */
74 int it_need; /* Needs service. */

--- 55 unchanged lines hidden ---