OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [fb.c] - Diff between revs 1350 and 1358

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1350 Rev 1358
Line 293... Line 293...
      register_memoryarea(config.fb.baseaddr, FB_PAL + 256*4, 4, 0, fb_read32, fb_write32);
      register_memoryarea(config.fb.baseaddr, FB_PAL + 256*4, 4, 0, fb_read32, fb_write32);
    SCHED_ADD(fb_job, 0, runtime.sim.cycles + config.fb.refresh_rate);
    SCHED_ADD(fb_job, 0, runtime.sim.cycles + config.fb.refresh_rate);
  }
  }
}
}
 
 
 No newline at end of file
 No newline at end of file
 
/*-----------------------------------------------------[ FB configuration ]---*/
 
void fb_enabled(union param_val val, void *dat)
 
{
 
  config.fb.enabled = val.int_val;
 
}
 
 
 
void fb_baseaddr(union param_val val, void *dat)
 
{
 
  config.fb.baseaddr = val.addr_val;
 
}
 
 
 
void fb_refresh_rate(union param_val val, void *dat)
 
{
 
  config.fb.refresh_rate = val.int_val;
 
}
 
 
 
void fb_filename(union param_val val, void *dat)
 
{
 
  strcpy(config.fb.filename, val.str_val);
 
}
 
 
 
void reg_fb_sec(void)
 
{
 
  struct config_section *sec = reg_config_sec("fb", NULL, NULL);
 
 
 
  reg_config_param(sec, "enabled", paramt_int, fb_enabled);
 
  reg_config_param(sec, "baseaddr", paramt_addr, fb_baseaddr);
 
  reg_config_param(sec, "refresh_rate", paramt_int, fb_refresh_rate);
 
  reg_config_param(sec, "filename", paramt_str, fb_filename);
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.