[BACK]Return to r128fb.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / pci

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/pci/r128fb.c between version 1.33 and 1.34

version 1.33, 2012/04/19 06:58:55 version 1.34, 2012/04/19 08:59:42
Line 224  r128fb_attach(device_t parent, device_t 
Line 224  r128fb_attach(device_t parent, device_t 
                 aprint_error("%s: no height property\n", device_xname(self));                  aprint_error("%s: no height property\n", device_xname(self));
                 return;                  return;
         }          }
   
   #ifdef GLYPHCACHE_DEBUG
           /* leave some visible VRAM unused so we can see the glyph cache */
           sc->sc_height -= 100;
   #endif
   
         if (!prop_dictionary_get_uint32(dict, "depth", &sc->sc_depth)) {          if (!prop_dictionary_get_uint32(dict, "depth", &sc->sc_depth)) {
                 aprint_error("%s: no depth property\n", device_xname(self));                  aprint_error("%s: no depth property\n", device_xname(self));
                 return;                  return;
Line 288  r128fb_attach(device_t parent, device_t 
Line 294  r128fb_attach(device_t parent, device_t 
                 sc->sc_defaultscreen_descr.nrows = ri->ri_rows;                  sc->sc_defaultscreen_descr.nrows = ri->ri_rows;
                 sc->sc_defaultscreen_descr.ncols = ri->ri_cols;                  sc->sc_defaultscreen_descr.ncols = ri->ri_cols;
                 glyphcache_init(&sc->sc_gc, sc->sc_height + 5,                  glyphcache_init(&sc->sc_gc, sc->sc_height + 5,
                                 sc->sc_width,  
                                 (0x800000 / sc->sc_stride) - sc->sc_height - 5,                                  (0x800000 / sc->sc_stride) - sc->sc_height - 5,
                                   sc->sc_width,
                                 ri->ri_font->fontwidth,                                  ri->ri_font->fontwidth,
                                 ri->ri_font->fontheight,                                  ri->ri_font->fontheight,
                                 defattr);                                  defattr);
Line 302  r128fb_attach(device_t parent, device_t 
Line 308  r128fb_attach(device_t parent, device_t 
                  * until someone actually allocates a screen for us                   * until someone actually allocates a screen for us
                  */                   */
                 (*ri->ri_ops.allocattr)(ri, 0, 0, 0, &defattr);                  (*ri->ri_ops.allocattr)(ri, 0, 0, 0, &defattr);
                 glyphcache_init(&sc->sc_gc, sc->sc_height,                  glyphcache_init(&sc->sc_gc, sc->sc_height + 5,
                                   (0x800000 / sc->sc_stride) - sc->sc_height - 5,
                                 sc->sc_width,                                  sc->sc_width,
                                 (0x800000 / sc->sc_stride) - sc->sc_height,  
                                 ri->ri_font->fontwidth,                                  ri->ri_font->fontwidth,
                                 ri->ri_font->fontheight,                                  ri->ri_font->fontheight,
                                 defattr);                                  defattr);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

CVSweb <webmaster@jp.NetBSD.org>