vt.h (259882) | vt.h (261552) |
---|---|
1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/vt/vt.h 259882 2013-12-25 19:07:14Z ray $ | 32 * $FreeBSD: head/sys/dev/vt/vt.h 261552 2014-02-06 15:12:44Z ray $ |
33 */ 34 35#ifndef _DEV_VT_VT_H_ 36#define _DEV_VT_VT_H_ 37 38#include <sys/param.h> 39#include <sys/_lock.h> 40#include <sys/_mutex.h> --- 241 unchanged lines hidden (view full) --- 282typedef void vd_bitbltchr_t(struct vt_device *vd, const uint8_t *src, 283 const uint8_t *mask, int bpl, vt_axis_t top, vt_axis_t left, 284 unsigned int width, unsigned int height, term_color_t fg, term_color_t bg); 285typedef void vd_putchar_t(struct vt_device *vd, term_char_t, 286 vt_axis_t top, vt_axis_t left, term_color_t fg, term_color_t bg); 287typedef int vd_fb_ioctl_t(struct vt_device *, u_long, caddr_t, struct thread *); 288typedef int vd_fb_mmap_t(struct vt_device *, vm_ooffset_t, vm_paddr_t *, int, 289 vm_memattr_t *); | 33 */ 34 35#ifndef _DEV_VT_VT_H_ 36#define _DEV_VT_VT_H_ 37 38#include <sys/param.h> 39#include <sys/_lock.h> 40#include <sys/_mutex.h> --- 241 unchanged lines hidden (view full) --- 282typedef void vd_bitbltchr_t(struct vt_device *vd, const uint8_t *src, 283 const uint8_t *mask, int bpl, vt_axis_t top, vt_axis_t left, 284 unsigned int width, unsigned int height, term_color_t fg, term_color_t bg); 285typedef void vd_putchar_t(struct vt_device *vd, term_char_t, 286 vt_axis_t top, vt_axis_t left, term_color_t fg, term_color_t bg); 287typedef int vd_fb_ioctl_t(struct vt_device *, u_long, caddr_t, struct thread *); 288typedef int vd_fb_mmap_t(struct vt_device *, vm_ooffset_t, vm_paddr_t *, int, 289 vm_memattr_t *); |
290typedef void vd_drawrect_t(struct vt_device *, int, int, int, int, int, 291 term_color_t); 292typedef void vd_setpixel_t(struct vt_device *, int, int, term_color_t); |
|
290 291struct vt_driver { 292 /* Console attachment. */ 293 vd_init_t *vd_init; 294 295 /* Drawing. */ 296 vd_blank_t *vd_blank; 297 vd_bitbltchr_t *vd_bitbltchr; | 293 294struct vt_driver { 295 /* Console attachment. */ 296 vd_init_t *vd_init; 297 298 /* Drawing. */ 299 vd_blank_t *vd_blank; 300 vd_bitbltchr_t *vd_bitbltchr; |
301 vd_drawrect_t *vd_drawrect; 302 vd_setpixel_t *vd_setpixel; |
|
298 299 /* Framebuffer ioctls, if present. */ 300 vd_fb_ioctl_t *vd_fb_ioctl; 301 302 /* Framebuffer mmap, if present. */ 303 vd_fb_mmap_t *vd_fb_mmap; 304 305 /* Text mode operation. */ --- 128 unchanged lines hidden --- | 303 304 /* Framebuffer ioctls, if present. */ 305 vd_fb_ioctl_t *vd_fb_ioctl; 306 307 /* Framebuffer mmap, if present. */ 308 vd_fb_mmap_t *vd_fb_mmap; 309 310 /* Text mode operation. */ --- 128 unchanged lines hidden --- |