version 1.8, 2007/10/29 12:27:19 |
version 1.9, 2008/01/11 15:36:01 |
|
|
*/ |
*/ |
#ifndef _DEV_FCONS_FCONSVAR_H |
#ifndef _DEV_FCONS_FCONSVAR_H |
#define _DEV_FCONS_FCONSVAR_H |
#define _DEV_FCONS_FCONSVAR_H |
|
#include <sys/types.h> |
|
#include <libkern/queue.h> |
|
|
#define FCONS_WIDTH 80 |
#define FCONS_WIDTH 80 |
#define FCONS_HEIGHT 25 |
#define FCONS_HEIGHT 25 |
|
|
|
|
struct fcons_handle { |
struct fcons_handle { |
void *fh_ownerdd; /* similar to bh_ownerdd in bus_handle; XXX kill this cause it is ugly */ |
void *fh_ownerdd; /* similar to bh_ownerdd in bus_handle; XXX kill this cause it is ugly */ |
|
|
|
|
}; |
}; |
|
|
|
|
|
struct fcons_char { |
|
char fc_char; |
|
// struct fcons_char *fc_next; |
|
SIMPLEQ_ENTRY(fcons_char) fc_next; |
|
}; |
|
|
|
|
struct fcons_dd { |
struct fcons_dd { |
/* current cursor position */ |
/* current cursor position */ |
uint8_t fd_currow; |
uint8_t fd_currow; |
uint8_t fd_curcol; |
uint8_t fd_curcol; |
|
|
|
/* input queue */ |
|
// struct fcons_char *fd_iqueue; |
|
SIMPLEQ_HEAD(head, fcons_char) fd_iqhead; |
|
uint32_t fd_iqlength; |
|
|
struct fcons_handle *fd_fh; |
struct fcons_handle *fd_fh; |
}; |
}; |