Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
This commit is contained in:
parent
c98c1f9199
commit
7d0e6302b9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kb_hb.c,v 1.8 2005/12/11 12:18:23 christos Exp $ */
|
||||
/* $NetBSD: kb_hb.c,v 1.9 2007/02/16 21:52:47 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Izumi Tsutsui.
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.8 2005/12/11 12:18:23 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.9 2007/02/16 21:52:47 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -113,7 +113,7 @@ kb_hb_attach(struct device *parent, struct device *self, void *aux)
|
||||
|
||||
kb_hb_init(sc);
|
||||
|
||||
isrlink_autovec(kb_hb_intr, (void *)sc, ipl, ISRPRI_TTY);
|
||||
isrlink_autovec(kb_hb_intr, (void *)sc, ipl, IPL_TTY);
|
||||
|
||||
wsa.console = kb_hb_conssc.cs_isconsole;
|
||||
wsa.keymap = &kb_keymapdata;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kb_kbc.c,v 1.6 2005/12/11 12:18:23 christos Exp $ */
|
||||
/* $NetBSD: kb_kbc.c,v 1.7 2007/02/16 21:52:47 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Izumi Tsutsui.
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kb_kbc.c,v 1.6 2005/12/11 12:18:23 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kb_kbc.c,v 1.7 2007/02/16 21:52:47 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -89,7 +89,7 @@ kb_kbc_attach(struct device *parent, struct device *self, void *aux)
|
||||
|
||||
kb_kbc_init(sc);
|
||||
|
||||
isrlink_autovec(kb_kbc_intr, (void *)sc, ipl, ISRPRI_TTY);
|
||||
isrlink_autovec(kb_kbc_intr, (void *)sc, ipl, IPL_TTY);
|
||||
|
||||
wsa.console = kb_kbc_conssc.cs_isconsole;
|
||||
wsa.keymap = &kb_keymapdata;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ms_hb.c,v 1.8 2005/12/11 12:18:23 christos Exp $ */
|
||||
/* $NetBSD: ms_hb.c,v 1.9 2007/02/16 21:52:47 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 Izumi Tsutsui. All rights reserved.
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ms_hb.c,v 1.8 2005/12/11 12:18:23 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ms_hb.c,v 1.9 2007/02/16 21:52:47 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -114,7 +114,7 @@ ms_hb_attach(struct device *parent, struct device *self, void *aux)
|
||||
|
||||
ms_hb_init(sc);
|
||||
|
||||
isrlink_autovec(ms_hb_intr, (void *)sc, ipl, ISRPRI_TTY);
|
||||
isrlink_autovec(ms_hb_intr, (void *)sc, ipl, IPL_TTY);
|
||||
|
||||
wsa.accessops = &ms_hb_accessops;
|
||||
wsa.accesscookie = sc;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ms_kbc.c,v 1.7 2005/12/11 12:18:23 christos Exp $ */
|
||||
/* $NetBSD: ms_kbc.c,v 1.8 2007/02/16 21:52:47 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 Izumi Tsutsui. All rights reserved.
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ms_kbc.c,v 1.7 2005/12/11 12:18:23 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ms_kbc.c,v 1.8 2007/02/16 21:52:47 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -92,7 +92,7 @@ ms_kbc_attach(struct device *parent, struct device *self, void *aux)
|
||||
|
||||
ms_kbc_init(sc);
|
||||
|
||||
isrlink_autovec(ms_kbc_intr, (void *)sc, ipl, ISRPRI_TTY);
|
||||
isrlink_autovec(ms_kbc_intr, (void *)sc, ipl, IPL_TTY);
|
||||
|
||||
wsa.accessops = &ms_kbc_accessops;
|
||||
wsa.accesscookie = sc;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: isr.h,v 1.4 2003/01/06 13:05:04 wiz Exp $ */
|
||||
/* $NetBSD: isr.h,v 1.5 2007/02/16 21:52:47 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -78,14 +78,6 @@ struct isr_vectored {
|
||||
int isr_ipl;
|
||||
};
|
||||
|
||||
/*
|
||||
* Autovectored ISR priorities. These are not the same as interrupt levels.
|
||||
*/
|
||||
#define ISRPRI_BIO 0
|
||||
#define ISRPRI_NET 1
|
||||
#define ISRPRI_TTY 2
|
||||
#define ISRPRI_TTYNOBUF 3
|
||||
|
||||
void isrinit(void);
|
||||
void isrlink_autovec(int (*)(void *), void *, int, int);
|
||||
void isrlink_vectored(int (*)(void *), void *, int, int);
|
||||
|
Loading…
Reference in New Issue
Block a user