Annotation of funnyos/dev/fcons/fconsvar.h, Revision 1.5
1.1 init 1: /*
1.5 ! init 2: * $Id: fconsvar.h,v 1.4 2007/10/16 20:51:32 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:
10: #define NFCONS 1
11:
1.5 ! init 12: struct fcons_handle {
! 13: void *fh_ownerdd; /* similar to bh_ownerdd in bus_handle; XXX kill this cause it is ugly */
1.1 init 14:
1.5 ! init 15: char (*getc)(void *);
! 16: void (*putc)(void *, char);
1.1 init 17: };
18:
19:
1.5 ! init 20: struct fcons_dd {
! 21: /* current cursor position */
! 22: uint8_t currow;
! 23: uint8_t curcol;
1.3 init 24:
1.5 ! init 25: struct fcons_handle fd_fh;
1.1 init 26: };
27:
28:
29: int fcons_devctl(struct device *devp, uint8_t ctl, void *data);
30: char fcons_getchar(struct device *devp);
31: void fcons_putchar(struct device *devp, char ch);
32:
33: /* XXX */
34: //#define putchar(x) fcons_putchar()
35:
36:
37: /* devctl stuff */
38: #define DCFCONS_GETCURROW 0
39: #define DCFCONS_GETCURCOL 1
40: #define DCFCONS_PUTCHAR 2
41: #define DCFCONS_GETCHAR 3
42:
43:
44: #endif /* _DEV_FCONS_FCONSVAR_H */
45:
CVSweb