1*433d6423SLionel Sambuc /* Includes. */ 2*433d6423SLionel Sambuc #include <minix/drivers.h> 3*433d6423SLionel Sambuc #include <minix/chardriver.h> 4*433d6423SLionel Sambuc #include <minix/type.h> 5*433d6423SLionel Sambuc #include <minix/const.h> 6*433d6423SLionel Sambuc #include <minix/com.h> 7*433d6423SLionel Sambuc #include <sys/types.h> 8*433d6423SLionel Sambuc #include <minix/ipc.h> 9*433d6423SLionel Sambuc 10*433d6423SLionel Sambuc /* Constants and types. */ 11*433d6423SLionel Sambuc 12*433d6423SLionel Sambuc #define LOG_SIZE (50*1024) 13*433d6423SLionel Sambuc 14*433d6423SLionel Sambuc struct logdevice { 15*433d6423SLionel Sambuc char log_buffer[LOG_SIZE]; 16*433d6423SLionel Sambuc int log_size, /* no. of bytes in log buffer */ 17*433d6423SLionel Sambuc log_read, /* read mark */ 18*433d6423SLionel Sambuc log_write; /* write mark */ 19*433d6423SLionel Sambuc endpoint_t log_source; 20*433d6423SLionel Sambuc cdev_id_t log_id; 21*433d6423SLionel Sambuc int log_iosize, 22*433d6423SLionel Sambuc log_status; 23*433d6423SLionel Sambuc cp_grant_id_t log_grant; 24*433d6423SLionel Sambuc int log_selected, log_select_proc; 25*433d6423SLionel Sambuc }; 26*433d6423SLionel Sambuc 27*433d6423SLionel Sambuc /* Function prototypes. */ 28*433d6423SLionel Sambuc void do_new_kmess(void); 29*433d6423SLionel Sambuc void log_append(char *buf, int len); 30*433d6423SLionel Sambuc 31