Ticket #12773: monitor.diff

File monitor.diff, 1.1 KB (added by kallisti5, 8 years ago)

revision 2, using monitor_info.

  • headers/os/add-ons/graphics/Accelerant.h

    diff --git a/headers/os/add-ons/graphics/Accelerant.h b/headers/os/add-ons/graphics/Accelerant.h
    index 1322c35..ba089d9 100644
    a b typedef struct {  
    9090    uint32  memory;                     /* amount of memory on the device, */
    9191                                        /* in bytes */
    9292    uint32  dac_speed;                  /* nominal DAC speed, in MHz */
     93
     94    uint32  max_monitor;                /* max monitors supported by device */
    9395} accelerant_device_info;
    9496
    9597
    typedef struct {  
    158160} display_timing_constraints;
    159161
    160162
     163enum monitor_connector_type {
     164    B_CONNECTOR_UNKNOWN = 0,
     165    B_CONNECTOR_VGA,
     166    B_CONNECTOR_LVDS,
     167    B_CONNECTOR_DVI,
     168    B_CONNECTOR_HDMI,
     169    B_CONNECTOR_COMPOSITE,
     170    B_CONNECTOR_COMPONENT,
     171    B_CONNECTOR_SVIDEO,
     172    B_CONNECTOR_9DIN,
     173    B_CONNECTOR_DP,
     174    B_CONNECTOR_EDP,
     175};
     176
     177
    161178// WARNING: This is experimental new Haiku API
    162179typedef struct {
    163180    uint32  version;
    typedef struct {  
    176193    uint32  min_vertical_frequency;     /* in Hz */
    177194    uint32  max_vertical_frequency;
    178195    uint32  max_pixel_clock;            /* in kHz */
     196
     197    monitor_connector_type type;
    179198} monitor_info;
    180199
    181200