diff options
Diffstat (limited to 'device/ds_routines.c')
-rw-r--r-- | device/ds_routines.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/device/ds_routines.c b/device/ds_routines.c index d866acc..ec26044 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -326,7 +326,6 @@ experimental_device_intr_register (ipc_port_t master_port, int line, #ifdef MACH_XEN return D_INVALID_OPERATION; #else /* MACH_XEN */ - struct intr_entry *entry; io_return_t ret; /* Open must be called on the master device port. */ @@ -336,15 +335,7 @@ experimental_device_intr_register (ipc_port_t master_port, int line, if (receive_port == IP_NULL) return D_INVALID_OPERATION; - /* XXX: move to arch-specific */ - if (line < 0 || line >= 16) - return D_INVALID_OPERATION; - - ret = insert_intr_entry (line, receive_port, &entry); - if (ret) - return ret; - - return install_user_intr_handler (line, flags, entry); + return insert_intr_entry (line, receive_port); #endif /* MACH_XEN */ } @@ -1832,18 +1823,6 @@ kern_return_t experimental_device_intr_enable(ipc_port_t master_port, int line, char status) { return D_INVALID_OPERATION; -#ifdef MACH_XEN - return D_INVALID_OPERATION; -#else /* MACH_XEN */ - if (master_port != master_device_port) - return D_INVALID_OPERATION; - - if (! status) - return D_INVALID_OPERATION; - - enable_irq (line); - return 0; -#endif /* MACH_XEN */ } struct device_emulation_ops mach_device_emulation_ops = |