1 /* 2 * Copyright (C) 2019 Red Hat 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 of the 7 * License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 17 * 02111-1307, USA. 18 */ 19 20 #ifndef META_KMS_IMPL_TYPES_H 21 #define META_KMS_IMPL_TYPES_H 22 23 #include <stdint.h> 24 25 typedef struct _MetaKms MetaKms; 26 typedef struct _MetaKmsDevice MetaKmsDevice; 27 28 typedef struct _MetaKmsPlane MetaKmsPlane; 29 typedef struct _MetaKmsCrtc MetaKmsCrtc; 30 typedef struct _MetaKmsConnector MetaKmsConnector; 31 32 typedef struct _MetaKmsUpdate MetaKmsUpdate; 33 typedef struct _MetaKmsPlaneAssignment MetaKmsPlaneAssignment; 34 typedef struct _MetaKmsModeSet MetaKmsModeSet; 35 36 typedef struct _MetaKmsMode MetaKmsMode; 37 38 typedef struct _MetaKmsFeedback MetaKmsFeedback; 39 40 typedef struct _MetaKmsPageFlipListenerVtable MetaKmsPageFlipListenerVtable; 41 typedef enum _MetaKmsPageFlipListenerFlag MetaKmsPageFlipListenerFlag; 42 43 typedef struct _MetaKmsImpl MetaKmsImpl; 44 typedef struct _MetaKmsImplDevice MetaKmsImplDevice; 45 46 /* 16:16 fixed point */ 47 typedef int32_t MetaFixed16; 48 49 typedef struct _MetaFixed16Rectangle 50 { 51 MetaFixed16 x; 52 MetaFixed16 y; 53 MetaFixed16 width; 54 MetaFixed16 height; 55 } MetaFixed16Rectangle; 56 57 typedef enum _MetaKmsDeviceFlag 58 { 59 META_KMS_DEVICE_FLAG_NONE = 0, 60 META_KMS_DEVICE_FLAG_BOOT_VGA = 1 << 0, 61 META_KMS_DEVICE_FLAG_PLATFORM_DEVICE = 1 << 1, 62 META_KMS_DEVICE_FLAG_DISABLE_MODIFIERS = 1 << 2, 63 META_KMS_DEVICE_FLAG_PREFERRED_PRIMARY = 1 << 3, 64 META_KMS_DEVICE_FLAG_NO_MODE_SETTING = 1 << 4, 65 } MetaKmsDeviceFlag; 66 67 typedef enum _MetaKmsUpdateChanges 68 { 69 META_KMS_UPDATE_CHANGE_NONE = 0, 70 META_KMS_UPDATE_CHANGE_GAMMA = 1 << 0, 71 META_KMS_UPDATE_CHANGE_NO_DEVICES = 1 << 1, 72 META_KMS_UPDATE_CHANGE_FULL = -1, 73 } MetaKmsUpdateChanges; 74 75 typedef enum _MetaKmsPlaneType MetaKmsPlaneType; 76 77 typedef enum _MetaKmsPropType 78 { 79 META_KMS_PROP_TYPE_RAW = 0, 80 META_KMS_PROP_TYPE_FIXED_16, 81 } MetaKmsPropType; 82 83 #endif /* META_KMS_IMPL_TYPES_H */ 84