haiku/headers/private/kernel/int.h
Axel Dörfler 77a08c68e8 Changed the way handlers for edge triggered interrupt are called: now, we
always call all handlers in this case, but we still try to return the correct
return code (ie. B_HANDLED_INTERRUPT and B_INVOKE_SCHEDULER).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-30 13:56:21 +00:00

46 lines
911 B
C

/*
* Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_INT_H
#define _KERNEL_INT_H
#include <KernelExport.h>
#include <arch/int.h>
struct kernel_args;
#ifdef __cplusplus
extern "C" {
#endif
status_t int_init(struct kernel_args *args);
status_t int_init_post_vm(struct kernel_args *args);
status_t int_init_post_device_manager(struct kernel_args *args);
int int_io_interrupt_handler(int vector, bool levelTriggered);
bool interrupts_enabled(void);
static inline void
enable_interrupts(void)
{
arch_int_enable_interrupts();
}
static inline bool
are_interrupts_enabled(void)
{
return arch_int_are_interrupts_enabled();
}
#ifdef __cplusplus
}
#endif
#endif /* _KERNEL_INT_H */