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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_61/] [or1ksim/] [sim-config.c] - Diff between revs 713 and 723

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

Rev 713 Rev 723
Line 391... Line 391...
void memory_delayr ();
void memory_delayr ();
void memory_delayw ();
void memory_delayw ();
void cpu_sbuf_len ();
void cpu_sbuf_len ();
void eth_nethernets ();
void eth_nethernets ();
void eth_baseaddr ();
void eth_baseaddr ();
 
void eth_irq ();
void eth_dma ();
void eth_dma ();
void eth_rx_channel ();
void eth_rx_channel ();
void eth_tx_channel ();
void eth_tx_channel ();
void eth_rxfile ();
void eth_rxfile ();
void eth_txfile ();
void eth_txfile ();
 
void eth_sockif ();
void eth_vapi_id ();
void eth_vapi_id ();
void gpio_ngpios ();
void gpio_ngpios ();
void gpio_baseaddr ();
void gpio_baseaddr ();
void gpio_irq ();
void gpio_irq ();
void gpio_base_vapi_id ();
void gpio_base_vapi_id ();
Line 553... Line 555...
{8, "hide_device_id",     "=%i",         NULL,          (void *)(&config.vapi.hide_device_id), 0},
{8, "hide_device_id",     "=%i",         NULL,          (void *)(&config.vapi.hide_device_id), 0},
{8, "vapi_log_fn",        "=\"%s\"",     NULL,          (void *)(&config.vapi.vapi_fn[0]), 0},
{8, "vapi_log_fn",        "=\"%s\"",     NULL,          (void *)(&config.vapi.vapi_fn[0]), 0},
 
 
{9, "nethernets",         "=%i",         eth_nethernets,(void *)(&tempL), CPF_GLOBAL},
{9, "nethernets",         "=%i",         eth_nethernets,(void *)(&tempL), CPF_GLOBAL},
{9, "device",             "%i",          change_device, (void *)(&tempL), 0},
{9, "device",             "%i",          change_device, (void *)(&tempL), 0},
 
{9, "irq",                "%i",          eth_irq,       (void *)(&tempUL), 15},
{9, "enddevice",          "",            end_device,    NULL, 0},
{9, "enddevice",          "",            end_device,    NULL, 0},
{9, "baseaddr",           "=0x%x",       eth_baseaddr,  (void *)(&tempUL), 0},
{9, "baseaddr",           "=0x%x",       eth_baseaddr,  (void *)(&tempUL), 0},
{9, "dma",                "=%i",         eth_dma,       (void *)(&tempL), 0},
{9, "dma",                "=%i",         eth_dma,       (void *)(&tempL), 0},
{9, "rx_channel",         "=%i",         eth_rx_channel,(void *)(&tempL), 0},
{9, "rx_channel",         "=%i",         eth_rx_channel,(void *)(&tempL), 0},
{9, "tx_channel",         "=%i",         eth_tx_channel,(void *)(&tempL), 0},
{9, "tx_channel",         "=%i",         eth_tx_channel,(void *)(&tempL), 0},
{9, "rxfile",             "=\"%s\"",     eth_rxfile,    (void *)(&tempS[0]), 0},
{9, "rxfile",             "=\"%s\"",     eth_rxfile,    (void *)(&tempS[0]), 0},
{9, "txfile",             "=\"%s\"",     eth_txfile,    (void *)(&tempS[0]), 0},
{9, "txfile",             "=\"%s\"",     eth_txfile,    (void *)(&tempS[0]), 0},
 
{9, "sockif",             "=\"%s\"",     eth_sockif,    (void *)(&tempS[0]), 0},
{9, "vapi_id",            "=0x%x",       eth_vapi_id,   (void *)(&tempUL), 0},
{9, "vapi_id",            "=0x%x",       eth_vapi_id,   (void *)(&tempUL), 0},
 
 
{10, "enabled",           "=%i",         NULL,          (void *)(&config.tick.enabled), 0},
{10, "enabled",           "=%i",         NULL,          (void *)(&config.tick.enabled), 0},
 
 
{11, "enabled",           "=%i",         immu_enabled,  (void *)(&tempL), 0},
{11, "enabled",           "=%i",         immu_enabled,  (void *)(&tempL), 0},
Line 904... Line 908...
    strcpy (config.ethernets[current_device].txfile, tempS);
    strcpy (config.ethernets[current_device].txfile, tempS);
  else
  else
    ERROR("invalid device number.");
    ERROR("invalid device number.");
}
}
 
 
 
void eth_sockif () {
 
  if (current_device >= 0 && current_device < config.nethernets)
 
    strcpy (config.ethernets[current_device].sockif, tempS);
 
  else
 
    ERROR("invalid device number.");
 
}
 
 
 
void eth_irq () {
 
  if (current_device >= 0 && current_device < config.nethernets)
 
    config.ethernets[current_device].irq = tempUL;
 
  else
 
    ERROR("invalid device number.");
 
}
 
 
void eth_vapi_id () {
void eth_vapi_id () {
  if (current_device >= 0 && current_device < config.nethernets)
  if (current_device >= 0 && current_device < config.nethernets)
    config.ethernets[current_device].vapi_id = tempUL;
    config.ethernets[current_device].vapi_id = tempUL;
  else
  else
    ERROR("invalid device number.");
    ERROR("invalid device number.");

powered by: WebSVN 2.1.0

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