[BACK]Return to fconsvar.h CVS log [TXT][DIR] Up to [local] / funnyos / dev / fcons

Annotation of funnyos/dev/fcons/fconsvar.h, Revision 1.8

1.1       init        1: /*
1.8     ! init        2:  * $Id: fconsvar.h,v 1.7 2007/10/16 21:10: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:
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 */
1.7       init       20:        uint8_t         fd_currow;
                     21:        uint8_t         fd_curcol;
1.3       init       22:
1.8     ! 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