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

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

1.1       init        1: /*
1.9     ! nbrk        2:  * $Id: fconsvar.h,v 1.8 2007/10/29 12:27:19 init Exp $
1.1       init        3:  */
                      4: #ifndef _DEV_FCONS_FCONSVAR_H
                      5: #define _DEV_FCONS_FCONSVAR_H
1.9     ! nbrk        6: #include <sys/types.h>
        !             7: #include <libkern/queue.h>
1.1       init        8:
                      9: #define FCONS_WIDTH    80
                     10: #define FCONS_HEIGHT   25
                     11:
1.9     ! nbrk       12:
1.5       init       13: struct fcons_handle {
                     14:        void    *fh_ownerdd;    /* similar to bh_ownerdd in bus_handle; XXX kill this cause it is ugly */
1.1       init       15:
1.5       init       16:        char    (*getc)(void *);
                     17:        void    (*putc)(void *, char);
1.1       init       18: };
                     19:
                     20:
1.9     ! nbrk       21: struct fcons_char {
        !            22:        char fc_char;
        !            23: //     struct fcons_char *fc_next;
        !            24:        SIMPLEQ_ENTRY(fcons_char) fc_next;
        !            25: };
        !            26:
        !            27:
1.5       init       28: struct fcons_dd {
                     29:        /* current cursor position */
1.7       init       30:        uint8_t         fd_currow;
                     31:        uint8_t         fd_curcol;
1.9     ! nbrk       32:
        !            33:        /* input queue */
        !            34: //     struct fcons_char       *fd_iqueue;
        !            35:        SIMPLEQ_HEAD(head, fcons_char) fd_iqhead;
        !            36:        uint32_t                        fd_iqlength;
1.3       init       37:
1.8       init       38:        struct fcons_handle *fd_fh;
1.1       init       39: };
                     40:
                     41:
                     42: int    fcons_devctl(struct device *devp, uint8_t ctl, void *data);
1.6       init       43: char   fcons_getchar(void *ddp);
                     44: void   fcons_putchar(void *ddp, char ch);
1.1       init       45:
                     46: /* devctl stuff */
                     47: #define DCFCONS_GETCURROW      0
                     48: #define DCFCONS_GETCURCOL      1
                     49: #define DCFCONS_PUTCHAR        2
                     50: #define DCFCONS_GETCHAR        3
                     51:
                     52:
                     53: #endif /* _DEV_FCONS_FCONSVAR_H */
                     54:

CVSweb