=================================================================== RCS file: /cvs/funnyos/dev/fcons/fconsvar.h,v retrieving revision 1.4 retrieving revision 1.6 diff -u -r1.4 -r1.6 --- funnyos/dev/fcons/fconsvar.h 2007/10/16 21:51:32 1.4 +++ funnyos/dev/fcons/fconsvar.h 2007/10/16 22:07:19 1.6 @@ -1,5 +1,5 @@ /* - * $Id: fconsvar.h,v 1.4 2007/10/16 20:51:32 init Exp $ + * $Id: fconsvar.h,v 1.6 2007/10/16 21:07:19 init Exp $ */ #ifndef _DEV_FCONS_FCONSVAR_H #define _DEV_FCONS_FCONSVAR_H @@ -7,16 +7,6 @@ #define FCONS_WIDTH 80 #define FCONS_HEIGHT 25 -#define NFCONS 1 - -struct fcons_devdata { - /* current cursor position */ - uint8_t currow; - uint8_t curcol; - -}; - - struct fcons_handle { void *fh_ownerdd; /* similar to bh_ownerdd in bus_handle; XXX kill this cause it is ugly */ @@ -25,13 +15,18 @@ }; -int fcons_devctl(struct device *devp, uint8_t ctl, void *data); -char fcons_getchar(struct device *devp); -void fcons_putchar(struct device *devp, char ch); +struct fcons_dd { + /* current cursor position */ + uint8_t currow; + uint8_t curcol; -/* XXX */ -//#define putchar(x) fcons_putchar() + struct fcons_handle fd_fh; +}; + +int fcons_devctl(struct device *devp, uint8_t ctl, void *data); +char fcons_getchar(void *ddp); +void fcons_putchar(void *ddp, char ch); /* devctl stuff */ #define DCFCONS_GETCURROW 0