2 #include "../drivers.h"
3 #include "../libdriver/driver.h"
4 #include <minix/type.h>
5 #include <minix/const.h>
10 /* Constants and types. */
12 #define LOG_SIZE (50*1024)
16 char log_buffer
[LOG_SIZE
];
17 int log_size
, /* no. of bytes in log buffer */
18 log_read
, /* read mark */
19 log_write
; /* write mark */
25 log_status
; /* proc that is blocking on read */
26 vir_bytes log_user_vir_g
, log_user_vir_offset
;
29 int log_selected
, log_select_proc
,
30 log_select_alerted
, log_select_ready_ops
;
33 /* Function prototypes. */
34 _PROTOTYPE( int do_new_kmess
, (endpoint_t from
) );
35 _PROTOTYPE( int do_diagnostics
, (message
*m
, int safe
) );
36 _PROTOTYPE( void log_append
, (char *buf
, int len
) );