Commit 9e42b25d authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Richard Henderson

[PATCH] alpha console callbacks

From Jeff.Wiedemeier@hp.com:

Add open_console / close_console callback definitions.
parent 589ba3d8
...@@ -78,6 +78,8 @@ CALLBACK(puts, CCB_PUTS, 4) ...@@ -78,6 +78,8 @@ CALLBACK(puts, CCB_PUTS, 4)
CALLBACK(open, CCB_OPEN, 3) CALLBACK(open, CCB_OPEN, 3)
CALLBACK(close, CCB_CLOSE, 2) CALLBACK(close, CCB_CLOSE, 2)
CALLBACK(read, CCB_READ, 5) CALLBACK(read, CCB_READ, 5)
CALLBACK(open_console, CCB_OPEN_CONSOLE, 1)
CALLBACK(close_console, CCB_CLOSE_CONSOLE, 1)
CALLBACK(getenv, CCB_GET_ENV, 4) CALLBACK(getenv, CCB_GET_ENV, 4)
CALLBACK(setenv, CCB_SET_ENV, 4) CALLBACK(setenv, CCB_SET_ENV, 4)
CALLBACK(getc, CCB_GETC, 2) CALLBACK(getc, CCB_GETC, 2)
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#define CCB_SET_TERM_INT 0x04 #define CCB_SET_TERM_INT 0x04
#define CCB_SET_TERM_CTL 0x05 #define CCB_SET_TERM_CTL 0x05
#define CCB_PROCESS_KEYCODE 0x06 #define CCB_PROCESS_KEYCODE 0x06
#define CCB_OPEN_CONSOLE 0x07
#define CCB_CLOSE_CONSOLE 0x08
#define CCB_OPEN 0x10 #define CCB_OPEN 0x10
#define CCB_CLOSE 0x11 #define CCB_CLOSE 0x11
...@@ -47,6 +49,9 @@ ...@@ -47,6 +49,9 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
extern long callback_puts(long unit, const char *s, long length); extern long callback_puts(long unit, const char *s, long length);
extern long callback_getc(long unit);
extern long callback_open_console(void);
extern long callback_close_console(void);
extern long callback_open(const char *device, long length); extern long callback_open(const char *device, long length);
extern long callback_close(long unit); extern long callback_close(long unit);
extern long callback_read(long channel, long count, const char *buf, long lbn); extern long callback_read(long channel, long count, const char *buf, long lbn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment