Annotation of funnyos/dev/fcons/fconsvar.h, Revision 1.6
1.1 init 1: /*
1.6 ! init 2: * $Id: fconsvar.h,v 1.5 2007/10/16 21:04:52 init Exp $
1.1 init 3: */
4: #ifndef _DEV_FCONS_FCONSVAR_H
5: #define _DEV_FCONS_FCONSVAR_H
6:
7: #define FCONS_WIDTH 80
8: #define FCONS_HEIGHT 25
9:
1.5 init 10: struct fcons_handle {
11: void *fh_ownerdd; /* similar to bh_ownerdd in bus_handle; XXX kill this cause it is ugly */
1.1 init 12:
1.5 init 13: char (*getc)(void *);
14: void (*putc)(void *, char);
1.1 init 15: };
16:
17:
1.5 init 18: struct fcons_dd {
19: /* current cursor position */
20: uint8_t currow;
21: uint8_t curcol;
1.3 init 22:
1.5 init 23: struct fcons_handle fd_fh;
1.1 init 24: };
25:
26:
27: int fcons_devctl(struct device *devp, uint8_t ctl, void *data);
1.6 ! init 28: char fcons_getchar(void *ddp);
! 29: void fcons_putchar(void *ddp, char ch);
1.1 init 30:
31: /* devctl stuff */
32: #define DCFCONS_GETCURROW 0
33: #define DCFCONS_GETCURCOL 1
34: #define DCFCONS_PUTCHAR 2
35: #define DCFCONS_GETCHAR 3
36:
37:
38: #endif /* _DEV_FCONS_FCONSVAR_H */
39:
CVSweb