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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc1/] [or1ksim/] [vapi/] [vapi.c] - Diff between revs 439 and 440

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

Rev 439 Rev 440
Line 121... Line 121...
/* Added by Erez 09/12/01 */
/* Added by Erez 09/12/01 */
void vapi_write_log_file(VAPI_COMMAND command, unsigned long devid, unsigned long data)
void vapi_write_log_file(VAPI_COMMAND command, unsigned long devid, unsigned long data)
{
{
  if (!runtime.vapi.vapi_file)
  if (!runtime.vapi.vapi_file)
    return;
    return;
  if (config.vapi.log_device_id)
  if (config.vapi.log_device_id && devid <= VAPI_MAX_DEVID)
    fprintf (runtime.vapi.vapi_file, "%08x", devid);
    fprintf (runtime.vapi.vapi_file, "%04x", devid);
  fprintf (runtime.vapi.vapi_file, "%1x%08x\n", command, data);
  fprintf (runtime.vapi.vapi_file, "%1x%08x\n", command, data);
}
}
 
 
static int vapi_write_stream(int fd, void* buf, int len)
static int vapi_write_stream(int fd, void* buf, int len)
{
{

powered by: WebSVN 2.1.0

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