Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/vt.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
#define DPRINTF(_l, ...) if (vt_debug > (_l)) printf( __VA_ARGS__ ) | #define DPRINTF(_l, ...) if (vt_debug > (_l)) printf( __VA_ARGS__ ) | ||||
#define VT_CONSOLECTL_DEBUG | #define VT_CONSOLECTL_DEBUG | ||||
#define VT_SYSMOUSE_DEBUG | #define VT_SYSMOUSE_DEBUG | ||||
#else | #else | ||||
#define DPRINTF(_l, ...) do {} while (0) | #define DPRINTF(_l, ...) do {} while (0) | ||||
#endif | #endif | ||||
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG) | #define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG) | ||||
SYSCTL_DECL(_kern_vt); | |||||
#define VT_SYSCTL_INT(_name, _default, _descr) \ | #define VT_SYSCTL_INT(_name, _default, _descr) \ | ||||
int vt_##_name = (_default); \ | int vt_##_name = (_default); \ | ||||
SYSCTL_INT(_kern_vt, OID_AUTO, _name, CTLFLAG_RWTUN, &vt_##_name, 0, _descr) | SYSCTL_INT(_kern_vt, OID_AUTO, _name, CTLFLAG_RWTUN, &vt_##_name, 0, _descr) | ||||
struct vt_driver; | struct vt_driver; | ||||
void vt_allocate(const struct vt_driver *, void *); | void vt_allocate(const struct vt_driver *, void *); | ||||
void vt_deallocate(const struct vt_driver *, void *); | void vt_deallocate(const struct vt_driver *, void *); | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | #define VDF_DOWNGRADE 0x8000 /* The driver is being downgraded. */ | ||||
unsigned int vd_kbstate; /* (?) Device unit. */ | unsigned int vd_kbstate; /* (?) Device unit. */ | ||||
unsigned int vd_unit; /* (c) Device unit. */ | unsigned int vd_unit; /* (c) Device unit. */ | ||||
int vd_altbrk; /* (?) Alt break seq. state */ | int vd_altbrk; /* (?) Alt break seq. state */ | ||||
term_char_t *vd_drawn; /* (?) Most recent char drawn. */ | term_char_t *vd_drawn; /* (?) Most recent char drawn. */ | ||||
term_color_t *vd_drawnfg; /* (?) Most recent fg color drawn. */ | term_color_t *vd_drawnfg; /* (?) Most recent fg color drawn. */ | ||||
term_color_t *vd_drawnbg; /* (?) Most recent bg color drawn. */ | term_color_t *vd_drawnbg; /* (?) Most recent bg color drawn. */ | ||||
}; | }; | ||||
extern struct vt_device *main_vd; | |||||
#define VD_PASTEBUF(vd) ((vd)->vd_pastebuf.vpb_buf) | #define VD_PASTEBUF(vd) ((vd)->vd_pastebuf.vpb_buf) | ||||
#define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz) | #define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz) | ||||
#define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len) | #define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len) | ||||
#define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock) | #define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock) | ||||
#define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock) | #define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock) | ||||
#define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what) | #define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what) | ||||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
void vtbuf_clearhistory(struct vt_buf *); | void vtbuf_clearhistory(struct vt_buf *); | ||||
int vtbuf_iscursor(const struct vt_buf *vb, int row, int col); | int vtbuf_iscursor(const struct vt_buf *vb, int row, int col); | ||||
void vtbuf_cursor_visibility(struct vt_buf *, int); | void vtbuf_cursor_visibility(struct vt_buf *, int); | ||||
#ifndef SC_NO_CUTPASTE | #ifndef SC_NO_CUTPASTE | ||||
int vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row); | int vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row); | ||||
int vtbuf_get_marked_len(struct vt_buf *vb); | int vtbuf_get_marked_len(struct vt_buf *vb); | ||||
void vtbuf_extract_marked(struct vt_buf *vb, term_char_t *buf, int sz, int mark); | void vtbuf_extract_marked(struct vt_buf *vb, term_char_t *buf, int sz, int mark); | ||||
#endif | #endif | ||||
int vtbuf_extract_screen_reader(char *buf, size_t *, term_pos_t *, size_t lines, size_t bufsz); | |||||
markj: This line is too long. | |||||
#define VTB_MARK_NONE 0 | #define VTB_MARK_NONE 0 | ||||
#define VTB_MARK_END 1 | #define VTB_MARK_END 1 | ||||
#define VTB_MARK_START 2 | #define VTB_MARK_START 2 | ||||
#define VTB_MARK_WORD 3 | #define VTB_MARK_WORD 3 | ||||
#define VTB_MARK_ROW 4 | #define VTB_MARK_ROW 4 | ||||
#define VTB_MARK_EXTEND 5 | #define VTB_MARK_EXTEND 5 | ||||
#define VTB_MARK_MOVE 6 | #define VTB_MARK_MOVE 6 | ||||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | |||||
extern int vt_splash_ncpu; | extern int vt_splash_ncpu; | ||||
extern int vt_splash_cpu_style; | extern int vt_splash_cpu_style; | ||||
extern int vt_splash_cpu_duration; | extern int vt_splash_cpu_duration; | ||||
extern const unsigned int vt_logo_sprite_height; | extern const unsigned int vt_logo_sprite_height; | ||||
extern const unsigned int vt_logo_sprite_width; | extern const unsigned int vt_logo_sprite_width; | ||||
void vtterm_draw_cpu_logos(struct vt_device *); | void vtterm_draw_cpu_logos(struct vt_device *); | ||||
/* Prototypes for screen reader layer. */ | |||||
void vt_screen_reader_hup(void); | |||||
#endif /* !_DEV_VT_VT_H_ */ | #endif /* !_DEV_VT_VT_H_ */ |
This line is too long.