Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/rpi add goop for hardware cursor handling



details:   https://anonhg.NetBSD.org/src/rev/4c0d5314325c
branches:  trunk
changeset: 802617:4c0d5314325c
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Sep 23 09:18:33 2014 +0000

description:
add goop for hardware cursor handling

diffstat:

 sys/arch/evbarm/rpi/vcprop.h |  22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r 477b8ddb5bec -r 4c0d5314325c sys/arch/evbarm/rpi/vcprop.h
--- a/sys/arch/evbarm/rpi/vcprop.h      Tue Sep 23 07:47:54 2014 +0000
+++ b/sys/arch/evbarm/rpi/vcprop.h      Tue Sep 23 09:18:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vcprop.h,v 1.9 2014/07/25 11:39:34 jmcneill Exp $      */
+/*     $NetBSD: vcprop.h,v 1.10 2014/09/23 09:18:33 macallan Exp $     */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -88,6 +88,8 @@
 
 #define        VCPROPTAG_GET_EDID_BLOCK        0x00030020
 
+#define        VCPROPTAG_SET_CURSOR_INFO       0x00008011
+#define        VCPROPTAG_SET_CURSOR_STATE      0x00008010
 
        uint32_t vpt_len;
        uint32_t vpt_rcode;
@@ -276,6 +278,24 @@
        uint8_t data[128];
 };
 
+struct vcprop_tag_cursorinfo {
+       struct vcprop_tag tag;
+       uint32_t width;
+       uint32_t height;
+       uint32_t __pad;         /* unused */
+       uint32_t pixels;
+       uint32_t hotspot_x;
+       uint32_t hotspot_y;
+};
+
+struct vcprop_tag_cursorstate {
+       struct vcprop_tag tag;
+       uint32_t enable;        /* 1 - visible */
+       uint32_t x;
+       uint32_t y;
+       uint32_t flags;         /* 0 - display coord. 1 - fb coord. */
+};
+
 struct vcprop_buffer_hdr {
        uint32_t vpb_len;
        uint32_t vpb_rcode;



Home | Main Index | Thread Index | Old Index