Line 939... |
Line 939... |
ERROR("invalid device number.");
|
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].base_vapi_id = tempUL;
|
else
|
else
|
ERROR("invalid device number.");
|
ERROR("invalid device number.");
|
}
|
}
|
|
|
void gpio_ngpios () {
|
void gpio_ngpios () {
|
Line 1458... |
Line 1458... |
fprintf (f, " nethernets:%i, ethernets:{", config.nethernets);
|
fprintf (f, " nethernets:%i, ethernets:{", config.nethernets);
|
comma = 0;
|
comma = 0;
|
for (i = 0; i < config.nethernets; i++) {
|
for (i = 0; i < config.nethernets; i++) {
|
fprintf (f, "%s\n {baseaddr:0x%08x, dma:%i, tx_channel:0x%08x, rx_channel:0x%08x, rxfile:\"%s\", txfile:\"%s\", vapi_id:0x%08x}",
|
fprintf (f, "%s\n {baseaddr:0x%08x, dma:%i, tx_channel:0x%08x, rx_channel:0x%08x, rxfile:\"%s\", txfile:\"%s\", vapi_id:0x%08x}",
|
comma ? "," :"", config.ethernets[i].baseaddr, config.ethernets[i].dma, config.ethernets[i].tx_channel, config.ethernets[i].rx_channel,
|
comma ? "," :"", config.ethernets[i].baseaddr, config.ethernets[i].dma, config.ethernets[i].tx_channel, config.ethernets[i].rx_channel,
|
config.ethernets[i].rxfile, config.ethernets[i].txfile, config.ethernets[i].vapi_id);
|
config.ethernets[i].rxfile, config.ethernets[i].txfile, config.ethernets[i].base_vapi_id);
|
comma = 1;
|
comma = 1;
|
}
|
}
|
fprintf (f, "},\n");
|
fprintf (f, "},\n");
|
|
|
fprintf (f, " ngpios:%i, gpios:{", config.ngpios);
|
fprintf (f, " ngpios:%i, gpios:{", config.ngpios);
|