diff --git a/headers/os/add-ons/graphics/Accelerant.h b/headers/os/add-ons/graphics/Accelerant.h
index 1322c35..f7bcff5 100644
a
|
b
|
|
1 | 1 | /* |
2 | | * Copyright 2009-2012, Haiku, Inc. All rights reserved. |
| 2 | * Copyright 2009-2014, Haiku, Inc. All rights reserved. |
3 | 3 | * Distributed under the terms of the MIT License. |
4 | 4 | */ |
5 | 5 | #ifndef _ACCELERANT_H_ |
… |
… |
enum {
|
34 | 34 | B_GET_ACCELERANT_DEVICE_INFO, /* required */ |
35 | 35 | B_ACCELERANT_RETRACE_SEMAPHORE, /* optional */ |
36 | 36 | |
| 37 | B_GET_DISPLAY_COUNT, /* optional */ |
| 38 | B_SET_DISPLAY_INDEX, /* optional */ |
| 39 | |
37 | 40 | /* mode configuration */ |
38 | 41 | B_ACCELERANT_MODE_COUNT = 0x100, /* required */ |
39 | 42 | B_GET_MODE_LIST, /* required */ |
… |
… |
typedef struct {
|
168 | 171 | struct { |
169 | 172 | uint16 week; |
170 | 173 | uint16 year; |
171 | | } produced; |
| 174 | } produced; |
172 | 175 | float width; |
173 | 176 | float height; |
174 | 177 | uint32 min_horizontal_frequency; /* in kHz */ |
… |
… |
typedef struct {
|
176 | 179 | uint32 min_vertical_frequency; /* in Hz */ |
177 | 180 | uint32 max_vertical_frequency; |
178 | 181 | uint32 max_pixel_clock; /* in kHz */ |
| 182 | struct { |
| 183 | uint32 connector_type; |
| 184 | uint32 encoder_type; |
| 185 | uint32 dpcm; /* in cm */ |
| 186 | uint32 reserved; /* for future use */ |
| 187 | } hardware; |
179 | 188 | } monitor_info; |
180 | 189 | |
181 | 190 | |
… |
… |
typedef struct {
|
261 | 270 | |
262 | 271 | enum { /* engine capabilities */ |
263 | 272 | B_2D_ACCELERATION = 1 << 0, |
264 | | B_3D_ACCELERATION = 1 << 1 |
| 273 | B_3D_ACCELERATION = 1 << 1, |
| 274 | B_COMPUTE_ACCELERATION = 1 << 2 |
265 | 275 | }; |
266 | 276 | |
267 | 277 | |
… |
… |
typedef void (*get_accelerant_clone_info)(void* data);
|
284 | 294 | typedef status_t (*clone_accelerant)(void* data); |
285 | 295 | typedef void (*uninit_accelerant)(void); |
286 | 296 | typedef status_t (*get_accelerant_device_info)(accelerant_device_info* adi); |
| 297 | typedef uint32 (*get_display_count(void)); |
| 298 | typedef status_t (*set_display_index(uint32 index)); |
287 | 299 | |
288 | 300 | typedef uint32 (*accelerant_mode_count)(void); |
289 | 301 | typedef status_t (*get_mode_list)(display_mode*); |