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

Subversion Repositories or1k

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

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

Rev 723 Rev 725
Line 393... Line 393...
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_irq ();
void eth_dma ();
void eth_dma ();
 
void eth_rtx_type ();
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_sockif ();
Line 559... Line 560...
{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, "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},
 
{,  "rtx_type",           "=%i",         eth_rtx_type,  (void *)(&tempUL), 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, "sockif",             "=\"%s\"",     eth_sockif,    (void *)(&tempS[0]), 0},
Line 880... Line 882...
    config.ethernets[current_device].dma = tempL;
    config.ethernets[current_device].dma = tempL;
  else
  else
    ERROR("invalid device number.");
    ERROR("invalid device number.");
}
}
 
 
 
void eth_rtx_type () {
 
  if (current_device >= 0 && current_device < config.nethernets)
 
    config.ethernets[current_device].rtx_type = tempUL;
 
  else
 
    ERROR("invalid device number.");
 
}
 
 
void eth_rx_channel () {
void eth_rx_channel () {
  if (current_device >= 0 && current_device < config.nethernets)
  if (current_device >= 0 && current_device < config.nethernets)
    config.ethernets[current_device].rx_channel = tempL;
    config.ethernets[current_device].rx_channel = tempL;
  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.