Home | History | Annotate | Line # | Download | only in drm
drm_displayid.h revision 1.2.2.2
      1 /*	$NetBSD: drm_displayid.h,v 1.2.2.2 2018/09/06 06:56:35 pgoyette Exp $	*/
      2 
      3 /*
      4  * Copyright  2014 Red Hat Inc.
      5  *
      6  * Permission is hereby granted, free of charge, to any person obtaining a
      7  * copy of this software and associated documentation files (the "Software"),
      8  * to deal in the Software without restriction, including without limitation
      9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     10  * and/or sell copies of the Software, and to permit persons to whom the
     11  * Software is furnished to do so, subject to the following conditions:
     12  *
     13  * The above copyright notice and this permission notice shall be included in
     14  * all copies or substantial portions of the Software.
     15  *
     16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     19  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     20  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     21  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     22  * OTHER DEALINGS IN THE SOFTWARE.
     23  */
     24 #ifndef DRM_DISPLAYID_H
     25 #define DRM_DISPLAYID_H
     26 
     27 #define DATA_BLOCK_PRODUCT_ID 0x00
     28 #define DATA_BLOCK_DISPLAY_PARAMETERS 0x01
     29 #define DATA_BLOCK_COLOR_CHARACTERISTICS 0x02
     30 #define DATA_BLOCK_TYPE_1_DETAILED_TIMING 0x03
     31 #define DATA_BLOCK_TYPE_2_DETAILED_TIMING 0x04
     32 #define DATA_BLOCK_TYPE_3_SHORT_TIMING 0x05
     33 #define DATA_BLOCK_TYPE_4_DMT_TIMING 0x06
     34 #define DATA_BLOCK_VESA_TIMING 0x07
     35 #define DATA_BLOCK_CEA_TIMING 0x08
     36 #define DATA_BLOCK_VIDEO_TIMING_RANGE 0x09
     37 #define DATA_BLOCK_PRODUCT_SERIAL_NUMBER 0x0a
     38 #define DATA_BLOCK_GP_ASCII_STRING 0x0b
     39 #define DATA_BLOCK_DISPLAY_DEVICE_DATA 0x0c
     40 #define DATA_BLOCK_INTERFACE_POWER_SEQUENCING 0x0d
     41 #define DATA_BLOCK_TRANSFER_CHARACTERISTICS 0x0e
     42 #define DATA_BLOCK_DISPLAY_INTERFACE 0x0f
     43 #define DATA_BLOCK_STEREO_DISPLAY_INTERFACE 0x10
     44 #define DATA_BLOCK_TILED_DISPLAY 0x12
     45 
     46 #define DATA_BLOCK_VENDOR_SPECIFIC 0x7f
     47 
     48 #define PRODUCT_TYPE_EXTENSION 0
     49 #define PRODUCT_TYPE_TEST 1
     50 #define PRODUCT_TYPE_PANEL 2
     51 #define PRODUCT_TYPE_MONITOR 3
     52 #define PRODUCT_TYPE_TV 4
     53 #define PRODUCT_TYPE_REPEATER 5
     54 #define PRODUCT_TYPE_DIRECT_DRIVE 6
     55 
     56 struct displayid_hdr {
     57 	u8 rev;
     58 	u8 bytes;
     59 	u8 prod_id;
     60 	u8 ext_count;
     61 } __packed;
     62 
     63 struct displayid_block {
     64 	u8 tag;
     65 	u8 rev;
     66 	u8 num_bytes;
     67 } __packed;
     68 
     69 struct displayid_tiled_block {
     70 	struct displayid_block base;
     71 	u8 tile_cap;
     72 	u8 topo[3];
     73 	u8 tile_size[4];
     74 	u8 tile_pixel_bezel[5];
     75 	u8 topology_id[8];
     76 } __packed;
     77 
     78 #endif
     79