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

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

1.1       init        1: /*
                      2:  * $Id: fconsvar.h,v 1.1.1.1 2007/10/12 08:40:38 init Exp $
                      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:
                     12: struct fcons_devdata {
                     13:        /* current cursor position */
                     14:        uint8_t currow;
                     15:        uint8_t curcol;
                     16:
                     17: };
                     18:
                     19:
                     20: struct consoleops {
                     21:        char    (*getc)(struct device *);
                     22:        void    (*putc)(struct device *, char);
                     23: };
                     24:
                     25:
                     26: int    fcons_devctl(struct device *devp, uint8_t ctl, void *data);
                     27: char   fcons_getchar(struct device *devp);
                     28: void   fcons_putchar(struct device *devp, char ch);
                     29:
                     30: /* XXX */
                     31: //#define putchar(x)   fcons_putchar()
                     32:
                     33:
                     34: /* devctl stuff */
                     35: #define DCFCONS_GETCURROW      0
                     36: #define DCFCONS_GETCURCOL      1
                     37: #define DCFCONS_PUTCHAR        2
                     38: #define DCFCONS_GETCHAR        3
                     39:
                     40:
                     41: #endif /* _DEV_FCONS_FCONSVAR_H */
                     42:

CVSweb