diff options
Diffstat (limited to 'include/xen/interface/io')
| -rw-r--r-- | include/xen/interface/io/displif.h | 8 | ||||
| -rw-r--r-- | include/xen/interface/io/kbdif.h | 78 | ||||
| -rw-r--r-- | include/xen/interface/io/sndif.h | 10 |
3 files changed, 71 insertions, 25 deletions
diff --git a/include/xen/interface/io/displif.h b/include/xen/interface/io/displif.h index 596578d9be3e..fdc279dc4a88 100644 --- a/include/xen/interface/io/displif.h +++ b/include/xen/interface/io/displif.h | |||
| @@ -189,6 +189,13 @@ | |||
| 189 | * | 189 | * |
| 190 | *----------------------------- Connector settings ---------------------------- | 190 | *----------------------------- Connector settings ---------------------------- |
| 191 | * | 191 | * |
| 192 | * unique-id | ||
| 193 | * Values: <string> | ||
| 194 | * | ||
| 195 | * After device instance initialization each connector is assigned a | ||
| 196 | * unique ID, so it can be identified by the backend by this ID. | ||
| 197 | * This can be UUID or such. | ||
| 198 | * | ||
| 192 | * resolution | 199 | * resolution |
| 193 | * Values: <width, uint32_t>x<height, uint32_t> | 200 | * Values: <width, uint32_t>x<height, uint32_t> |
| 194 | * | 201 | * |
| @@ -368,6 +375,7 @@ | |||
| 368 | #define XENDISPL_FIELD_EVT_CHANNEL "evt-event-channel" | 375 | #define XENDISPL_FIELD_EVT_CHANNEL "evt-event-channel" |
| 369 | #define XENDISPL_FIELD_RESOLUTION "resolution" | 376 | #define XENDISPL_FIELD_RESOLUTION "resolution" |
| 370 | #define XENDISPL_FIELD_BE_ALLOC "be-alloc" | 377 | #define XENDISPL_FIELD_BE_ALLOC "be-alloc" |
| 378 | #define XENDISPL_FIELD_UNIQUE_ID "unique-id" | ||
| 371 | 379 | ||
| 372 | /* | 380 | /* |
| 373 | ****************************************************************************** | 381 | ****************************************************************************** |
diff --git a/include/xen/interface/io/kbdif.h b/include/xen/interface/io/kbdif.h index e2340a4130cf..5c7630d7376e 100644 --- a/include/xen/interface/io/kbdif.h +++ b/include/xen/interface/io/kbdif.h | |||
| @@ -51,6 +51,18 @@ | |||
| 51 | * corresponding entries in XenStore and puts 1 as the value of the entry. | 51 | * corresponding entries in XenStore and puts 1 as the value of the entry. |
| 52 | * If a feature is not supported then 0 must be set or feature entry omitted. | 52 | * If a feature is not supported then 0 must be set or feature entry omitted. |
| 53 | * | 53 | * |
| 54 | * feature-disable-keyboard | ||
| 55 | * Values: <uint> | ||
| 56 | * | ||
| 57 | * If there is no need to expose a virtual keyboard device by the | ||
| 58 | * frontend then this must be set to 1. | ||
| 59 | * | ||
| 60 | * feature-disable-pointer | ||
| 61 | * Values: <uint> | ||
| 62 | * | ||
| 63 | * If there is no need to expose a virtual pointer device by the | ||
| 64 | * frontend then this must be set to 1. | ||
| 65 | * | ||
| 54 | * feature-abs-pointer | 66 | * feature-abs-pointer |
| 55 | * Values: <uint> | 67 | * Values: <uint> |
| 56 | * | 68 | * |
| @@ -63,6 +75,22 @@ | |||
| 63 | * Backends, which support reporting of multi-touch events | 75 | * Backends, which support reporting of multi-touch events |
| 64 | * should set this to 1. | 76 | * should set this to 1. |
| 65 | * | 77 | * |
| 78 | * feature-raw-pointer | ||
| 79 | * Values: <uint> | ||
| 80 | * | ||
| 81 | * Backends, which support reporting raw (unscaled) absolute coordinates | ||
| 82 | * for pointer devices should set this to 1. Raw (unscaled) values have | ||
| 83 | * a range of [0, 0x7fff]. | ||
| 84 | * | ||
| 85 | *----------------------- Device Instance Parameters ------------------------ | ||
| 86 | * | ||
| 87 | * unique-id | ||
| 88 | * Values: <string> | ||
| 89 | * | ||
| 90 | * After device instance initialization it is assigned a unique ID, | ||
| 91 | * so every instance of the frontend can be identified by the backend | ||
| 92 | * by this ID. This can be UUID or such. | ||
| 93 | * | ||
| 66 | *------------------------- Pointer Device Parameters ------------------------ | 94 | *------------------------- Pointer Device Parameters ------------------------ |
| 67 | * | 95 | * |
| 68 | * width | 96 | * width |
| @@ -77,6 +105,25 @@ | |||
| 77 | * Maximum Y coordinate (height) to be used by the frontend | 105 | * Maximum Y coordinate (height) to be used by the frontend |
| 78 | * while reporting input events, pixels, [0; UINT32_MAX]. | 106 | * while reporting input events, pixels, [0; UINT32_MAX]. |
| 79 | * | 107 | * |
| 108 | *----------------------- Multi-touch Device Parameters ---------------------- | ||
| 109 | * | ||
| 110 | * multi-touch-num-contacts | ||
| 111 | * Values: <uint> | ||
| 112 | * | ||
| 113 | * Number of simultaneous touches reported. | ||
| 114 | * | ||
| 115 | * multi-touch-width | ||
| 116 | * Values: <uint> | ||
| 117 | * | ||
| 118 | * Width of the touch area to be used by the frontend | ||
| 119 | * while reporting input events, pixels, [0; UINT32_MAX]. | ||
| 120 | * | ||
| 121 | * multi-touch-height | ||
| 122 | * Values: <uint> | ||
| 123 | * | ||
| 124 | * Height of the touch area to be used by the frontend | ||
| 125 | * while reporting input events, pixels, [0; UINT32_MAX]. | ||
| 126 | * | ||
| 80 | ***************************************************************************** | 127 | ***************************************************************************** |
| 81 | * Frontend XenBus Nodes | 128 | * Frontend XenBus Nodes |
| 82 | ***************************************************************************** | 129 | ***************************************************************************** |
| @@ -98,6 +145,13 @@ | |||
| 98 | * | 145 | * |
| 99 | * Request backend to report multi-touch events. | 146 | * Request backend to report multi-touch events. |
| 100 | * | 147 | * |
| 148 | * request-raw-pointer | ||
| 149 | * Values: <uint> | ||
| 150 | * | ||
| 151 | * Request backend to report raw unscaled absolute pointer coordinates. | ||
| 152 | * This option is only valid if request-abs-pointer is also set. | ||
| 153 | * Raw unscaled coordinates have the range [0, 0x7fff] | ||
| 154 | * | ||
| 101 | *----------------------- Request Transport Parameters ----------------------- | 155 | *----------------------- Request Transport Parameters ----------------------- |
| 102 | * | 156 | * |
| 103 | * event-channel | 157 | * event-channel |
| @@ -117,25 +171,6 @@ | |||
| 117 | * | 171 | * |
| 118 | * OBSOLETE, not recommended for use. | 172 | * OBSOLETE, not recommended for use. |
| 119 | * PFN of the shared page. | 173 | * PFN of the shared page. |
| 120 | * | ||
| 121 | *----------------------- Multi-touch Device Parameters ----------------------- | ||
| 122 | * | ||
| 123 | * multi-touch-num-contacts | ||
| 124 | * Values: <uint> | ||
| 125 | * | ||
| 126 | * Number of simultaneous touches reported. | ||
| 127 | * | ||
| 128 | * multi-touch-width | ||
| 129 | * Values: <uint> | ||
| 130 | * | ||
| 131 | * Width of the touch area to be used by the frontend | ||
| 132 | * while reporting input events, pixels, [0; UINT32_MAX]. | ||
| 133 | * | ||
| 134 | * multi-touch-height | ||
| 135 | * Values: <uint> | ||
| 136 | * | ||
| 137 | * Height of the touch area to be used by the frontend | ||
| 138 | * while reporting input events, pixels, [0; UINT32_MAX]. | ||
| 139 | */ | 174 | */ |
| 140 | 175 | ||
| 141 | /* | 176 | /* |
| @@ -163,9 +198,13 @@ | |||
| 163 | 198 | ||
| 164 | #define XENKBD_DRIVER_NAME "vkbd" | 199 | #define XENKBD_DRIVER_NAME "vkbd" |
| 165 | 200 | ||
| 201 | #define XENKBD_FIELD_FEAT_DSBL_KEYBRD "feature-disable-keyboard" | ||
| 202 | #define XENKBD_FIELD_FEAT_DSBL_POINTER "feature-disable-pointer" | ||
| 166 | #define XENKBD_FIELD_FEAT_ABS_POINTER "feature-abs-pointer" | 203 | #define XENKBD_FIELD_FEAT_ABS_POINTER "feature-abs-pointer" |
| 204 | #define XENKBD_FIELD_FEAT_RAW_POINTER "feature-raw-pointer" | ||
| 167 | #define XENKBD_FIELD_FEAT_MTOUCH "feature-multi-touch" | 205 | #define XENKBD_FIELD_FEAT_MTOUCH "feature-multi-touch" |
| 168 | #define XENKBD_FIELD_REQ_ABS_POINTER "request-abs-pointer" | 206 | #define XENKBD_FIELD_REQ_ABS_POINTER "request-abs-pointer" |
| 207 | #define XENKBD_FIELD_REQ_RAW_POINTER "request-raw-pointer" | ||
| 169 | #define XENKBD_FIELD_REQ_MTOUCH "request-multi-touch" | 208 | #define XENKBD_FIELD_REQ_MTOUCH "request-multi-touch" |
| 170 | #define XENKBD_FIELD_RING_GREF "page-gref" | 209 | #define XENKBD_FIELD_RING_GREF "page-gref" |
| 171 | #define XENKBD_FIELD_EVT_CHANNEL "event-channel" | 210 | #define XENKBD_FIELD_EVT_CHANNEL "event-channel" |
| @@ -174,6 +213,7 @@ | |||
| 174 | #define XENKBD_FIELD_MT_WIDTH "multi-touch-width" | 213 | #define XENKBD_FIELD_MT_WIDTH "multi-touch-width" |
| 175 | #define XENKBD_FIELD_MT_HEIGHT "multi-touch-height" | 214 | #define XENKBD_FIELD_MT_HEIGHT "multi-touch-height" |
| 176 | #define XENKBD_FIELD_MT_NUM_CONTACTS "multi-touch-num-contacts" | 215 | #define XENKBD_FIELD_MT_NUM_CONTACTS "multi-touch-num-contacts" |
| 216 | #define XENKBD_FIELD_UNIQUE_ID "unique-id" | ||
| 177 | 217 | ||
| 178 | /* OBSOLETE, not recommended for use */ | 218 | /* OBSOLETE, not recommended for use */ |
| 179 | #define XENKBD_FIELD_RING_REF "page-ref" | 219 | #define XENKBD_FIELD_RING_REF "page-ref" |
diff --git a/include/xen/interface/io/sndif.h b/include/xen/interface/io/sndif.h index 78bb5d9f8d83..2aac8f73614c 100644 --- a/include/xen/interface/io/sndif.h +++ b/include/xen/interface/io/sndif.h | |||
| @@ -278,13 +278,11 @@ | |||
| 278 | * defined under the same device. | 278 | * defined under the same device. |
| 279 | * | 279 | * |
| 280 | * unique-id | 280 | * unique-id |
| 281 | * Values: <uint32_t> | 281 | * Values: <string> |
| 282 | * | 282 | * |
| 283 | * After stream initialization it is assigned a unique ID (within the front | 283 | * After stream initialization it is assigned a unique ID, so every |
| 284 | * driver), so every stream of the frontend can be identified by the | 284 | * stream of the frontend can be identified by the backend by this ID. |
| 285 | * backend by this ID. This is not equal to stream-idx as the later is | 285 | * This can be UUID or such. |
| 286 | * zero based within the device, but this index is contigous within the | ||
| 287 | * driver. | ||
| 288 | * | 286 | * |
| 289 | *-------------------- Stream Request Transport Parameters -------------------- | 287 | *-------------------- Stream Request Transport Parameters -------------------- |
| 290 | * | 288 | * |
