-/* $OpenBSD: apldc.c,v 1.4 2022/09/16 16:30:10 robert Exp $ */
+/* $OpenBSD: apldc.c,v 1.5 2023/03/05 14:45:07 patrick Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK);
ih->ih_func = func;
ih->ih_arg = arg;
- ih->ih_ipl = ipl;
+ ih->ih_ipl = ipl & IPL_IRQMASK;
ih->ih_irq = irq;
ih->ih_name = name;
ih->ih_level = level;
-/* $OpenBSD: aplpinctrl.c,v 1.5 2022/12/06 16:07:14 kettenis Exp $ */
+/* $OpenBSD: aplpinctrl.c,v 1.6 2023/03/05 14:45:07 patrick Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
*
ih->ih_arg = arg;
ih->ih_irq = pin;
ih->ih_type = type;
- ih->ih_ipl = ipl;
+ ih->ih_ipl = ipl & IPL_IRQMASK;
ih->ih_name = name;
ih->ih_sc = sc;
if (name != NULL)
-/* $OpenBSD: omgpio.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */
+/* $OpenBSD: omgpio.c,v 1.15 2023/03/05 14:45:07 patrick Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK);
ih->ih_func = func;
ih->ih_arg = arg;
- ih->ih_ipl = level;
+ ih->ih_ipl = level & IPL_IRQMASK;
ih->ih_gpio = gpio;
ih->ih_irq = gpio + 512;
ih->ih_name = name;
-/* $OpenBSD: imxgpio.c,v 1.6 2021/10/24 17:52:26 mpi Exp $ */
+/* $OpenBSD: imxgpio.c,v 1.7 2023/03/05 14:45:07 patrick Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK);
ih->ih_func = func;
ih->ih_arg = arg;
- ih->ih_ipl = ipl;
+ ih->ih_ipl = ipl & IPL_IRQMASK;
ih->ih_irq = irqno;
ih->ih_name = name;
ih->ih_level = level;
-/* $OpenBSD: rkgpio.c,v 1.9 2023/03/04 22:54:35 kettenis Exp $ */
+/* $OpenBSD: rkgpio.c,v 1.10 2023/03/05 14:45:07 patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2019 Patrick Wildt <patrick@blueri.se>
ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK);
ih->ih_func = func;
ih->ih_arg = arg;
- ih->ih_ipl = ipl;
+ ih->ih_ipl = ipl & IPL_IRQMASK;
ih->ih_irq = irqno;
ih->ih_name = name;
ih->ih_level = level;