open-src/driver/xf86-video-intel/6810801.patch
changeset 705 24ca414edbff
parent 704 f9b973ecc909
child 706 43bb5cf562a2
equal deleted inserted replaced
704:f9b973ecc909 705:24ca414edbff
     1 --- src/i830_bios.c	Thu Feb 26 08:49:38 2009
       
     2 +++ src/i830_bios.c	Thu Feb 26 08:54:07 2009
       
     3 @@ -88,8 +88,8 @@
       
     4  parse_panel_data(I830Ptr pI830, struct bdb_header *bdb)
       
     5  {
       
     6      struct bdb_lvds_options *lvds_options;
       
     7 -    struct bdb_lvds_lfp_data *lvds_lfp_data;
       
     8 -    struct bdb_lvds_lfp_data_entry *entry;
       
     9 +    struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs;
       
    10 +    int timing_offset;
       
    11      DisplayModePtr fixed_mode;
       
    12      unsigned char *timing_ptr;
       
    13  
       
    14 @@ -104,12 +104,13 @@
       
    15      if (lvds_options->panel_type == 0xff)
       
    16  	return;
       
    17  
       
    18 -    lvds_lfp_data = find_section(bdb, BDB_LVDS_LFP_DATA);
       
    19 -    if (!lvds_lfp_data)
       
    20 +    lvds_lfp_data_ptrs = find_section(bdb, BDB_LVDS_LFP_DATA_PTRS);
       
    21 +    if (!lvds_lfp_data_ptrs)
       
    22  	return;
       
    23  
       
    24 -    entry = &lvds_lfp_data->data[lvds_options->panel_type];
       
    25 -    timing_ptr = (unsigned char *)&entry->dvo_timing;
       
    26 +    timing_offset =
       
    27 +	lvds_lfp_data_ptrs->ptr[lvds_options->panel_type].dvo_timing_offset;
       
    28 +    timing_ptr = (unsigned char *)bdb + timing_offset;
       
    29  
       
    30      fixed_mode = xnfalloc(sizeof(DisplayModeRec));
       
    31      memset(fixed_mode, 0, sizeof(*fixed_mode));