diff options
Diffstat (limited to 'sys/dev/ppc/ppcreg.h')
-rw-r--r-- | sys/dev/ppc/ppcreg.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/ppc/ppcreg.h b/sys/dev/ppc/ppcreg.h index 0e69dd9..a729503 100644 --- a/sys/dev/ppc/ppcreg.h +++ b/sys/dev/ppc/ppcreg.h @@ -29,6 +29,9 @@ #ifndef __PPCREG_H #define __PPCREG_H +#include <sys/_lock.h> +#include <sys/_mutex.h> + /* * Parallel Port Chipset type. */ @@ -108,10 +111,16 @@ struct ppc_data { void *intr_cookie; - struct intr_event *ppc_intr_event; - int ppc_child_handlers; + ppc_intr_handler ppc_intr_hook; + void *ppc_intr_arg; + + struct mtx ppc_lock; }; +#define PPC_LOCK(data) mtx_lock(&(data)->ppc_lock) +#define PPC_UNLOCK(data) mtx_unlock(&(data)->ppc_lock) +#define PPC_ASSERT_LOCKED(data) mtx_assert(&(data)->ppc_lock, MA_OWNED) + /* * Parallel Port Chipset registers. */ |