summaryrefslogtreecommitdiffstats
path: root/sys/sys/interrupt.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-06-01 16:05:14 +0000
committerpeter <peter@FreeBSD.org>1997-06-01 16:05:14 +0000
commit2bd86002940242337411d0d4913c56ac516fc671 (patch)
treeee951eb21e5d555e53d116182892ecb809503d22 /sys/sys/interrupt.h
parent21260a709da4bca5e550812c416b27274dea1a53 (diff)
downloadFreeBSD-src-2bd86002940242337411d0d4913c56ac516fc671.zip
FreeBSD-src-2bd86002940242337411d0d4913c56ac516fc671.tar.gz
Move "typedef struct intrec {} intrec" from sys/interrupt.h to kern_intr.c
since that's the only place that it's used. Submitted by: se (apparently on suggestion from dfr)
Diffstat (limited to 'sys/sys/interrupt.h')
-rw-r--r--sys/sys/interrupt.h27
1 files changed, 7 insertions, 20 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index 7e7fcb1..10082f8 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -23,30 +23,17 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: interrupt.h,v 1.1 1997/05/26 14:37:31 se Exp $
- *
+ * $Id: interrupt.h,v 1.2 1997/05/31 09:33:29 peter Exp $
*/
-typedef struct intrec {
- intrmask_t mask;
- inthand2_t *handler;
- void *argument;
- struct intrec *next;
- void *devdata;
- int intr;
- intrmask_t *maskptr;
- int flags;
-#define INTR_FAST 0x00000001 /* fast interrupt handler */
-#define INTR_EXCL 0x00010000 /* excl. intr, default is shared */
-} intrec;
-
/* XXX currently dev_instance must be set to the ISA device_id or -1 for PCI */
-intrec *intr_create(void *dev_instance, int irq, inthand2_t handler,
- void *arg, intrmask_t *maskptr, int flags);
-int intr_destroy(intrec *idesc);
+struct intrec *intr_create(void *dev_instance, int irq, inthand2_t handler,
+ void *arg, intrmask_t *maskptr, int flags);
+
+int intr_destroy(struct intrec *idesc);
-int intr_connect(intrec *idesc);
-int intr_disconnect(intrec *idesc);
+int intr_connect(struct intrec *idesc);
+int intr_disconnect(struct intrec *idesc);
/* XXX emulate old interface for now ... */
int register_intr __P((int intr, int device_id, u_int flags,
OpenPOWER on IntegriCloud