2002-07-09 12:24:59 +00:00
|
|
|
/*
|
2006-04-30 13:56:21 +00:00
|
|
|
* Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2005-04-12 06:09:13 +00:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
* Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2002-07-09 12:24:59 +00:00
|
|
|
#ifndef _KERNEL_INT_H
|
|
|
|
#define _KERNEL_INT_H
|
|
|
|
|
|
|
|
|
2005-04-12 06:09:13 +00:00
|
|
|
#include <KernelExport.h>
|
2003-05-03 16:03:26 +00:00
|
|
|
#include <arch/int.h>
|
2002-07-19 18:28:57 +00:00
|
|
|
|
2003-05-03 16:03:26 +00:00
|
|
|
struct kernel_args;
|
2002-07-19 18:28:57 +00:00
|
|
|
|
2005-04-12 06:09:13 +00:00
|
|
|
|
2003-10-28 17:55:20 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-10-21 01:41:29 +00:00
|
|
|
status_t int_init(struct kernel_args *args);
|
|
|
|
status_t int_init_post_vm(struct kernel_args *args);
|
2006-02-07 02:50:32 +00:00
|
|
|
status_t int_init_post_device_manager(struct kernel_args *args);
|
2006-04-30 13:56:21 +00:00
|
|
|
int int_io_interrupt_handler(int vector, bool levelTriggered);
|
2005-04-27 01:08:35 +00:00
|
|
|
|
|
|
|
bool interrupts_enabled(void);
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2003-10-28 17:55:20 +00:00
|
|
|
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
|
2002-11-28 02:25:04 +00:00
|
|
|
|
2002-07-19 16:00:17 +00:00
|
|
|
#endif /* _KERNEL_INT_H */
|