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

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

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

CVSweb