8bcc50c336
which don't wait for a character, but return -1 when no character is available ATM. Implemented correctly for x86 only. * Changed the semantics of the debugger_module_info::debugger_getchar() hook. It is supposed to return immediately now. * Adjusted usb_keyboard accordingly. Hacked UHCI's debug_process_transfer() to achieve that. It does now start, check, or cancel a transfer. Split UHCI::ProcessDebugTransfer() into StartDebugTransfer(), and CheckDebugTransfer() accordingly, and also added a CancelDebugTransfer(). The latter seems to have issues. Michael, please have a look. I have no clue what I'm doing. :-) * Adjusted kgetc() to poll all possible inputs using the new functions/semantics. This allows to use any input (USB, PS/2, serial) in KDL. * Removed the no longer needed "serial_input" command. * read_line(): Also support 0x7f as backspace code. That's what xterm sends. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42126 a95241bf-73f2-0310-859d-f6bbb57e9c96
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/*
|
|
* Copyright 2002-2006, Axel Dörfler, axeld@pinc-software.de
|
|
* 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_ARCH_DEBUG_CONSOLE_H
|
|
#define KERNEL_ARCH_DEBUG_CONSOLE_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
struct kernel_args;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int arch_debug_blue_screen_try_getchar(void);
|
|
char arch_debug_blue_screen_getchar(void);
|
|
int arch_debug_serial_try_getchar(void);
|
|
char arch_debug_serial_getchar(void);
|
|
void arch_debug_serial_putchar(char c);
|
|
void arch_debug_serial_puts(const char *s);
|
|
void arch_debug_serial_early_boot_message(const char *string);
|
|
|
|
void arch_debug_remove_interrupt_handler(uint32 line);
|
|
void arch_debug_install_interrupt_handlers(void);
|
|
|
|
status_t arch_debug_console_init(struct kernel_args *args);
|
|
status_t arch_debug_console_init_settings(struct kernel_args *args);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* KERNEL_ARCH_DEBUG_CONSOLE_H */
|