2002-07-09 16:24:59 +04:00
|
|
|
/*
|
|
|
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
** Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2003-05-03 18:12:16 +04:00
|
|
|
#ifndef KERNEL_ARCH_INT_H
|
|
|
|
#define KERNEL_ARCH_INT_H
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-08 01:56:32 +04:00
|
|
|
|
|
|
|
#include <boot/kernel_args.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
int arch_int_init(kernel_args *ka);
|
|
|
|
int arch_int_init2(kernel_args *ka);
|
|
|
|
|
|
|
|
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 20:55:20 +03:00
|
|
|
bool arch_int_are_interrupts_enabled(void);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-08 01:56:32 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-05-03 18:12:16 +04:00
|
|
|
#endif /* KERNEL_ARCH_INT_H */
|