2002-07-09 12:24:59 +00:00
|
|
|
/*
|
2005-04-27 01:08:35 +00:00
|
|
|
* Copyright 2002-2005, 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.
|
|
|
|
*/
|
2003-05-03 14:12:16 +00:00
|
|
|
#ifndef KERNEL_ARCH_INT_H
|
|
|
|
#define KERNEL_ARCH_INT_H
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2003-10-07 21:56:32 +00:00
|
|
|
|
|
|
|
#include <boot/kernel_args.h>
|
2005-04-27 01:08:35 +00:00
|
|
|
#include <arch_int.h>
|
2003-10-07 21:56:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2004-10-21 01:41:29 +00:00
|
|
|
status_t arch_int_init(kernel_args *args);
|
|
|
|
status_t arch_int_init_post_vm(kernel_args *args);
|
2002-07-09 12:24:59 +00:00
|
|
|
|
|
|
|
void arch_int_enable_interrupts(void);
|
|
|
|
int arch_int_disable_interrupts(void);
|
|
|
|
void arch_int_restore_interrupts(int oldstate);
|
|
|
|
void arch_int_enable_io_interrupt(int irq);
|
|
|
|
void arch_int_disable_io_interrupt(int irq);
|
2003-10-28 17:55:20 +00:00
|
|
|
bool arch_int_are_interrupts_enabled(void);
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2003-10-07 21:56:32 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-05-03 14:12:16 +00:00
|
|
|
#endif /* KERNEL_ARCH_INT_H */
|