Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/vt/vt.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
#define VDF_TEXTMODE 0x01 /* Do text mode rendering. */ | #define VDF_TEXTMODE 0x01 /* Do text mode rendering. */ | ||||
#define VDF_SPLASH 0x02 /* Splash screen active. */ | #define VDF_SPLASH 0x02 /* Splash screen active. */ | ||||
#define VDF_ASYNC 0x04 /* vt_timer() running. */ | #define VDF_ASYNC 0x04 /* vt_timer() running. */ | ||||
#define VDF_INVALID 0x08 /* Entire screen should be re-rendered. */ | #define VDF_INVALID 0x08 /* Entire screen should be re-rendered. */ | ||||
#define VDF_DEAD 0x10 /* Early probing found nothing. */ | #define VDF_DEAD 0x10 /* Early probing found nothing. */ | ||||
#define VDF_INITIALIZED 0x20 /* vtterm_cnprobe already done. */ | #define VDF_INITIALIZED 0x20 /* vtterm_cnprobe already done. */ | ||||
#define VDF_MOUSECURSOR 0x40 /* Mouse cursor visible. */ | #define VDF_MOUSECURSOR 0x40 /* Mouse cursor visible. */ | ||||
#define VDF_QUIET_BELL 0x80 /* Disable bell. */ | #define VDF_QUIET_BELL 0x80 /* Disable bell. */ | ||||
#define VDF_SUSPENDED 0x100 /* Device has been suspended. */ | |||||
#define VDF_DOWNGRADE 0x8000 /* The driver is being downgraded. */ | #define VDF_DOWNGRADE 0x8000 /* The driver is being downgraded. */ | ||||
int vd_keyboard; /* (G) Keyboard index. */ | int vd_keyboard; /* (G) Keyboard index. */ | ||||
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_color_t *vd_drawnfg; /* (?) Most recent fg color drawn. */ | |||||
term_color_t *vd_drawnbg; /* (?) Most recent bg color drawn. */ | |||||
}; | }; | ||||
#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) | ||||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
typedef int vd_init_t(struct vt_device *vd); | typedef int vd_init_t(struct vt_device *vd); | ||||
typedef int vd_probe_t(struct vt_device *vd); | typedef int vd_probe_t(struct vt_device *vd); | ||||
typedef void vd_fini_t(struct vt_device *vd, void *softc); | typedef void vd_fini_t(struct vt_device *vd, void *softc); | ||||
typedef void vd_postswitch_t(struct vt_device *vd); | typedef void vd_postswitch_t(struct vt_device *vd); | ||||
typedef void vd_blank_t(struct vt_device *vd, term_color_t color); | typedef void vd_blank_t(struct vt_device *vd, term_color_t color); | ||||
typedef void vd_bitblt_text_t(struct vt_device *vd, const struct vt_window *vw, | typedef void vd_bitblt_text_t(struct vt_device *vd, const struct vt_window *vw, | ||||
const term_rect_t *area); | const term_rect_t *area); | ||||
typedef void vd_invalidate_text_t(struct vt_device *vd, | |||||
const term_rect_t *area); | |||||
typedef void vd_bitblt_bmp_t(struct vt_device *vd, const struct vt_window *vw, | typedef void vd_bitblt_bmp_t(struct vt_device *vd, const struct vt_window *vw, | ||||
const uint8_t *pattern, const uint8_t *mask, | const uint8_t *pattern, const uint8_t *mask, | ||||
unsigned int width, unsigned int height, | unsigned int width, unsigned int height, | ||||
unsigned int x, unsigned int y, term_color_t fg, term_color_t bg); | unsigned int x, unsigned int y, term_color_t fg, term_color_t bg); | ||||
typedef int vd_fb_ioctl_t(struct vt_device *, u_long, caddr_t, struct thread *); | typedef int vd_fb_ioctl_t(struct vt_device *, u_long, caddr_t, struct thread *); | ||||
typedef int vd_fb_mmap_t(struct vt_device *, vm_ooffset_t, vm_paddr_t *, int, | typedef int vd_fb_mmap_t(struct vt_device *, vm_ooffset_t, vm_paddr_t *, int, | ||||
vm_memattr_t *); | vm_memattr_t *); | ||||
typedef void vd_drawrect_t(struct vt_device *, int, int, int, int, int, | typedef void vd_drawrect_t(struct vt_device *, int, int, int, int, int, | ||||
Show All 9 Lines | struct vt_driver { | ||||
vd_init_t *vd_init; | vd_init_t *vd_init; | ||||
vd_fini_t *vd_fini; | vd_fini_t *vd_fini; | ||||
/* Drawing. */ | /* Drawing. */ | ||||
vd_blank_t *vd_blank; | vd_blank_t *vd_blank; | ||||
vd_drawrect_t *vd_drawrect; | vd_drawrect_t *vd_drawrect; | ||||
vd_setpixel_t *vd_setpixel; | vd_setpixel_t *vd_setpixel; | ||||
vd_bitblt_text_t *vd_bitblt_text; | vd_bitblt_text_t *vd_bitblt_text; | ||||
vd_invalidate_text_t *vd_invalidate_text; | |||||
vd_bitblt_bmp_t *vd_bitblt_bmp; | vd_bitblt_bmp_t *vd_bitblt_bmp; | ||||
/* Framebuffer ioctls, if present. */ | /* Framebuffer ioctls, if present. */ | ||||
vd_fb_ioctl_t *vd_fb_ioctl; | vd_fb_ioctl_t *vd_fb_ioctl; | ||||
/* Framebuffer mmap, if present. */ | /* Framebuffer mmap, if present. */ | ||||
vd_fb_mmap_t *vd_fb_mmap; | vd_fb_mmap_t *vd_fb_mmap; | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |