src/network

This commit is contained in:
Jasmine Iwanek
2022-04-02 22:23:57 -04:00
parent 036f1ce74b
commit d1b274ace2
6 changed files with 471 additions and 240 deletions

View File

@@ -635,59 +635,88 @@ threec503_nic_close(void *priv)
free(dev); free(dev);
} }
static const device_config_t threec503_config[] = { static const device_config_t threec503_config[] = {
// clang-format off // clang-format off
{ {
"base", "Address", CONFIG_HEX16, "", 0x300, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x250", 0x250 }, .type = CONFIG_HEX16,
{ "0x280", 0x280 }, .default_string = "",
{ "0x2a0", 0x2a0 }, .default_int = 0x300,
{ "0x2e0", 0x2e0 }, .file_filter = "",
{ "0x300", 0x300 }, .spinner = { 0 },
{ "0x310", 0x310 }, .selection = {
{ "0x330", 0x330 }, { .description = "0x250", .value = 0x250 },
{ "0x350", 0x350 }, { .description = "0x280", .value = 0x280 },
{ "", 0 } { .description = "0x2a0", .value = 0x2a0 },
{ .description = "0x2e0", .value = 0x2e0 },
{ .description = "0x300", .value = 0x300 },
{ .description = "0x310", .value = 0x310 },
{ .description = "0x330", .value = 0x330 },
{ .description = "0x350", .value = 0x350 },
{ .description = "", .value = 0 }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
{ .description = "IRQ",
{ "IRQ 2", 2 }, .type = CONFIG_SELECTION,
{ "IRQ 3", 3 }, .default_string = "",
{ "IRQ 4", 4 }, .default_int = 3,
{ "IRQ 5", 5 }, .file_filter = "",
{ "", 0 } .spinner = { 0 },
.selection = {
{ .description = "IRQ 2", .value = 2 },
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "", .value = 0 }
}, },
}, },
{ {
"dma", "DMA", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "dma",
{ .description = "DMA",
{ "DMA 1", 1 }, .type = CONFIG_SELECTION,
{ "DMA 2", 2 }, .default_string = "",
{ "DMA 3", 3 }, .default_int = 3,
{ "", 0 } .file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "DMA 1", .value = 1 },
{ .description = "DMA 2", .value = 2 },
{ .description = "DMA 3", .value = 3 },
{ .description = "", .value = 0 }
}, },
}, },
{ {
"mac", "MAC Address", CONFIG_MAC, "", -1, "", { 0 }, .name = "mac",
{ .description = "MAC Address",
{ "", 0 } .type = CONFIG_MAC,
.default_string = "",
.default_int = -1,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "", .value = 0 }
}, },
}, },
{ {
"bios_addr", "BIOS address", CONFIG_HEX20, "", 0xCC000, "", { 0 }, .name = "bios_addr",
{ .description = "BIOS address",
{ "DC00", 0xDC000 }, .type = CONFIG_HEX20,
{ "D800", 0xD8000 }, .default_string = "",
{ "C800", 0xC8000 }, .default_int = 0xCC000,
{ "CC00", 0xCC000 }, .file_filter = "",
{ "", 0 } .spinner = { 0 },
.selection = {
{ .description = "DC00", .value = 0xDC000 },
{ .description = "D800", .value = 0xD8000 },
{ .description = "C800", .value = 0xC8000 },
{ .description = "CC00", .value = 0xCC000 },
{ .description = "", .value = 0 }
}, },
}, },
{ "", "", -1 } { .name = "", .description = "", .type = CONFIG_END }
// clang-format off // clang-format off
}; };

View File

@@ -1110,7 +1110,6 @@ dp8390_close(void *priv)
} }
} }
const device_t dp8390_device = { const device_t dp8390_device = {
.name = "DP8390 Network Interface Controller", .name = "DP8390 Network Interface Controller",
.internal_name = "dp8390", .internal_name = "dp8390",

View File

@@ -1142,86 +1142,152 @@ nic_close(void *priv)
// clang-format off // clang-format off
static const device_config_t ne1000_config[] = { static const device_config_t ne1000_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x300, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x280", 0x280 }, .type = CONFIG_HEX16,
{ "0x300", 0x300 }, .default_string = "",
{ "0x320", 0x320 }, .default_int = 0x300,
{ "0x340", 0x340 }, .file_filter = "",
{ "0x360", 0x360 }, .spinner = { 0 },
{ "0x380", 0x380 }, .selection = {
{ "" } { .description = "0x280", .value = 0x280 },
{ .description = "0x300", .value = 0x300 },
{ .description = "0x320", .value = 0x320 },
{ .description = "0x340", .value = 0x340 },
{ .description = "0x360", .value = 0x360 },
{ .description = "0x380", .value = 0x380 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
.description = "IRQ",
.type = CONFIG_SELECTION,
.default_string = "",
.default_int = 3,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "IRQ 2", .value = 2 },
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 7", .value = 7 },
{ .description = "IRQ 10", .value = 10 },
{ .description = "IRQ 11", .value = 11 },
{ .description = "" }
},
},
{ {
{ "IRQ 2", 2 }, .name = "mac",
{ "IRQ 3", 3 }, .description = "MAC Address",
{ "IRQ 5", 5 }, .type = CONFIG_MAC,
{ "IRQ 7", 7 }, .default_string = "",
{ "IRQ 10", 10 }, .default_int = -1
{ "IRQ 11", 11 },
{ "" }
}, },
}, { .name = "", .description = "", .type = CONFIG_END }
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ "", "", -1 }
}; };
static const device_config_t ne2000_config[] = { static const device_config_t ne2000_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x300, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x280", 0x280 }, .type = CONFIG_HEX16,
{ "0x300", 0x300 }, .default_string = "",
{ "0x320", 0x320 }, .default_int = 0x300,
{ "0x340", 0x340 }, .file_filter = "",
{ "0x360", 0x360 }, .spinner = { 0 },
{ "0x380", 0x380 }, .selection = {
{ "" } { .description = "0x280", .value = 0x280 },
{ .description = "0x300", .value = 0x300 },
{ .description = "0x320", .value = 0x320 },
{ .description = "0x340", .value = 0x340 },
{ .description = "0x360", .value = 0x360 },
{ .description = "0x380", .value = 0x380 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 10, "", { 0 }, .name = "irq",
.description = "IRQ",
.type = CONFIG_SELECTION,
.default_string = "",
.default_int = 10,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "IRQ 2", .value = 2 },
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 7", .value = 7 },
{ .description = "IRQ 10", .value = 10 },
{ .description = "IRQ 11", .value = 11 },
{ .description = "" }
},
},
{ {
{ "IRQ 2", 2 }, .name = "mac",
{ "IRQ 3", 3 }, .description = "MAC Address",
{ "IRQ 5", 5 }, .type = CONFIG_MAC,
{ "IRQ 7", 7 }, .default_string = "",
{ "IRQ 10", 10 }, .default_int = -1
{ "IRQ 11", 11 },
{ "" }
}, },
},
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ {
"bios_addr", "BIOS address", CONFIG_HEX20, "", 0, "", { 0 }, .name = "bios_addr",
{ .description = "BIOS address",
{ "Disabled", 0x00000 }, .type = CONFIG_HEX20,
{ "D000", 0xD0000 }, .default_string = "",
{ "D800", 0xD8000 }, .default_int = 0,
{ "C800", 0xC8000 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "Disabled", .value = 0x00000 },
{ .description = "D000", .value = 0xD0000 },
{ .description = "D800", .value = 0xD8000 },
{ .description = "C800", .value = 0xC8000 },
{ .description = "" }
}, },
}, },
{ "", "", -1 } { .name = "", .description = "", .type = CONFIG_END }
}; };
static const device_config_t rtl8019as_config[] = { static const device_config_t rtl8019as_config[] = {
{ "mac", "MAC Address", CONFIG_MAC, "", -1 }, {
{ "", "", -1 } .name = "mac",
.description = "MAC Address",
.type = CONFIG_MAC,
.default_string = "",
.default_int = -1
},
{ .name = "", .description = "", .type = CONFIG_END }
}; };
static const device_config_t rtl8029as_config[] = { static const device_config_t rtl8029as_config[] = {
{ "bios", "Enable BIOS", CONFIG_BINARY, "", 0 }, {
{ "mac", "MAC Address", CONFIG_MAC, "", -1 }, .name = "bios",
{ "", "", -1 } .description = "Enable BIOS",
.type = CONFIG_BINARY,
.default_string = "",
.default_int = 0
},
{
.name = "mac",
.description = "MAC Address",
.type = CONFIG_MAC,
.default_string = "",
.default_int = -1
},
{ .name = "", .description = "", .type = CONFIG_END }
}; };
static const device_config_t mca_mac_config[] = { static const device_config_t mca_mac_config[] = {
{ "mac", "MAC Address", CONFIG_MAC, "", -1 }, {
{ "", "", -1 } .name = "mac",
.description = "MAC Address",
.type = CONFIG_MAC,
.default_string = "",
.default_int = -1
},
{ .name = "", .description = "", .type = CONFIG_END }
}; };
// clang-format on // clang-format on

View File

@@ -3078,68 +3078,116 @@ pcnet_close(void *priv)
// clang-format off // clang-format off
static const device_config_t pcnet_pci_config[] = { static const device_config_t pcnet_pci_config[] = {
{ "mac", "MAC Address", CONFIG_MAC, "", -1 }, {
{ "", "", -1 } .name = "mac",
.description = "MAC Address",
.type = CONFIG_MAC,
.default_string = "",
.default_int = -1
},
{ .name = "", .description = "", .type = CONFIG_END }
}; };
static const device_config_t pcnet_isa_config[] = { static const device_config_t pcnet_isa_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x300, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x300", 0x300 }, .type = CONFIG_HEX16,
{ "0x320", 0x320 }, .default_string = "",
{ "0x340", 0x340 }, .default_int = 0x300,
{ "0x360", 0x360 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "0x300", .value = 0x300 },
{ .description = "0x320", .value = 0x320 },
{ .description = "0x340", .value = 0x340 },
{ .description = "0x360", .value = 0x360 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
{ .description = "IRQ",
{ "IRQ 3", 3 }, .type = CONFIG_SELECTION,
{ "IRQ 4", 4 }, .default_string = "",
{ "IRQ 5", 5 }, .default_int = 3,
{ "IRQ 9", 9 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 9", .value = 9 },
{ .description = "" }
}, },
}, },
{ {
"dma", "DMA channel", CONFIG_SELECTION, "", 5, "", { 0 }, .name = "dma",
.description = "DMA channel",
.type = CONFIG_SELECTION,
.default_string = "",
.default_int = 5,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "DMA 3", .value = 3 },
{ .description = "DMA 5", .value = 5 },
{ .description = "DMA 6", .value = 6 },
{ .description = "DMA 7", .value = 7 },
{ .description = "" }
},
},
{ {
{ "DMA 3", 3 }, .name = "mac",
{ "DMA 5", 5 }, .description = "MAC Address",
{ "DMA 6", 6 }, .type = CONFIG_MAC,
{ "DMA 7", 7 }, .default_string = "",
{ "" } .default_int = -1
}, },
}, { .name = "", .description = "", .type = CONFIG_END }
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ "", "", -1 }
}; };
static const device_config_t pcnet_vlb_config[] = { static const device_config_t pcnet_vlb_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x300, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x300", 0x300 }, .type = CONFIG_HEX16,
{ "0x320", 0x320 }, .default_string = "",
{ "0x340", 0x340 }, .default_int = 0x300,
{ "0x360", 0x360 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "0x300", .value = 0x300 },
{ .description = "0x320", .value = 0x320 },
{ .description = "0x340", .value = 0x340 },
{ .description = "0x360", .value = 0x360 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
.description = "IRQ",
.type = CONFIG_SELECTION,
.default_string = "",
.default_int = 3,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 9", .value = 9 },
{ .description = "" }
},
},
{ {
{ "IRQ 3", 3 }, .name = "mac",
{ "IRQ 4", 4 }, .description = "MAC Address",
{ "IRQ 5", 5 }, .type = CONFIG_MAC,
{ "IRQ 9", 9 }, .default_string = "",
{ "" } .default_int = -1
}, },
}, { .name = "", .description = "", .type = CONFIG_END }
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ "", "", -1 }
}; };
// clang-format on // clang-format on

View File

@@ -490,7 +490,6 @@ plip_close(void *priv)
free(priv); free(priv);
} }
const lpt_device_t lpt_plip_device = { const lpt_device_t lpt_plip_device = {
.name = "Parallel Line Internet Protocol", .name = "Parallel Line Internet Protocol",
.internal_name = "plip", .internal_name = "plip",

View File

@@ -738,156 +738,246 @@ wd_close(void *priv)
// clang-format off // clang-format off
static const device_config_t wd8003_config[] = { static const device_config_t wd8003_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x300, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x240", 0x240 }, .type = CONFIG_HEX16,
{ "0x280", 0x280 }, .default_string = "",
{ "0x300", 0x300 }, .default_int = 0x300,
{ "0x380", 0x380 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "0x240", .value = 0x240 },
{ .description = "0x280", .value = 0x280 },
{ .description = "0x300", .value = 0x300 },
{ .description = "0x380", .value = 0x380 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
{ .description = "IRQ",
{ "IRQ 2", 2 }, .type = CONFIG_SELECTION,
{ "IRQ 3", 3 }, .default_string = "",
{ "IRQ 5", 5 }, .default_int = 3,
{ "IRQ 7", 7 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "IRQ 2", .value = 2 },
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 7", .value = 7 },
{ .description = "" }
}, },
}, },
{ {
"ram_addr", "RAM address", CONFIG_HEX20, "", 0xD0000, "", { 0 }, .name = "ram_addr",
.description = "RAM address",
.type = CONFIG_HEX20,
.default_string = "",
.default_int = 0xD0000,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "C800", .value = 0xC8000 },
{ .description = "CC00", .value = 0xCC000 },
{ .description = "D000", .value = 0xD0000 },
{ .description = "D400", .value = 0xD4000 },
{ .description = "D800", .value = 0xD8000 },
{ .description = "DC00", .value = 0xDC000 },
{ .description = "" }
},
},
{ {
{ "C800", 0xC8000 }, .name = "mac",
{ "CC00", 0xCC000 }, .description = "MAC Address",
{ "D000", 0xD0000 }, .type = CONFIG_MAC,
{ "D400", 0xD4000 }, .default_string = "",
{ "D800", 0xD8000 }, .default_int = -1
{ "DC00", 0xDC000 },
{ "" }
}, },
}, { .name = "", .description = "", .type = CONFIG_END }
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ "", "", -1 }
}; };
static const device_config_t wd8003eb_config[] = { static const device_config_t wd8003eb_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x280, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x200", 0x200 }, .type = CONFIG_HEX16,
{ "0x220", 0x220 }, .default_string = "",
{ "0x240", 0x240 }, .default_int = 0x280,
{ "0x260", 0x260 }, .file_filter = "",
{ "0x280", 0x280 }, .spinner = { 0 },
{ "0x2A0", 0x2A0 }, .selection = {
{ "0x2C0", 0x2C0 }, { .description = "0x200", .value = 0x200 },
{ "0x300", 0x300 }, { .description = "0x220", .value = 0x220 },
{ "0x340", 0x340 }, { .description = "0x240", .value = 0x240 },
{ "0x380", 0x380 }, { .description = "0x260", .value = 0x260 },
{ "" } { .description = "0x280", .value = 0x280 },
{ .description = "0x2A0", .value = 0x2A0 },
{ .description = "0x2C0", .value = 0x2C0 },
{ .description = "0x300", .value = 0x300 },
{ .description = "0x340", .value = 0x340 },
{ .description = "0x380", .value = 0x380 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
{ .description = "IRQ",
{ "IRQ 2/9", 9 }, .type = CONFIG_SELECTION,
{ "IRQ 3", 3 }, .default_string = "",
{ "IRQ 4", 4 }, .default_int = 3,
{ "IRQ 7", 7 }, .file_filter = "",
{ "" } .spinner = { 0 },
.selection = {
{ .description = "IRQ 2/9", .value = 9 },
{ .description = "IRQ 3", .value = 3 },
{ .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 7", .value = 7 },
{ .description = "" }
}, },
}, },
{ {
"ram_addr", "RAM address", CONFIG_HEX20, "", 0xD0000, "", { 0 }, .name = "ram_addr",
{ .description = "RAM address",
{ "C000", 0xC0000 }, .type = CONFIG_HEX20,
{ "C400", 0xC4000 }, .default_string = "",
{ "C800", 0xC8000 }, .default_int = 0xD0000,
{ "CC00", 0xCC000 }, .file_filter = "",
{ "D000", 0xD0000 }, .spinner = { 0 },
{ "D400", 0xD4000 }, .selection = {
{ "D800", 0xD8000 }, { .description = "C000", .value = 0xC0000 },
{ "DC00", 0xDC000 }, { .description = "C400", .value = 0xC4000 },
{ "" } { .description = "C800", .value = 0xC8000 },
{ .description = "CC00", .value = 0xCC000 },
{ .description = "D000", .value = 0xD0000 },
{ .description = "D400", .value = 0xD4000 },
{ .description = "D800", .value = 0xD8000 },
{ .description = "DC00", .value = 0xDC000 },
{ .description = "" }
}, },
}, },
{ {
"ram_size", "RAM size", CONFIG_SELECTION, "", 8192, "", { 0 }, .name = "ram_size",
.description = "RAM size",
.type = CONFIG_SELECTION,
.default_string = "",
.default_int = 8192,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "8 kB", .value = 8192 },
{ .description = "32 kB", .value = 32768 },
{ .description = "" }
},
},
{ {
{ "8 kB", 8192 }, .name = "mac",
{ "32 kB", 32768 }, .description = "MAC Address",
{ "" } .type = CONFIG_MAC,
.default_string = "",
.default_int = -1
}, },
}, { .name = "", .description = "", .type = CONFIG_END }
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ "", "", -1 }
}; };
/* WD8013EBT configuration and defaults set according to this site: /* WD8013EBT configuration and defaults set according to this site:
http://www.stack.nl/~marcolz/network/wd80x3.html#WD8013EBT */ http://www.stack.nl/~marcolz/network/wd80x3.html#WD8013EBT */
static const device_config_t wd8013_config[] = { static const device_config_t wd8013_config[] = {
{ {
"base", "Address", CONFIG_HEX16, "", 0x280, "", { 0 }, .name = "base",
{ .description = "Address",
{ "0x200", 0x200 }, .type = CONFIG_HEX16,
{ "0x220", 0x220 }, .default_string = "",
{ "0x240", 0x240 }, .default_int = 0x280,
{ "0x260", 0x260 }, .file_filter = "",
{ "0x280", 0x280 }, .spinner = { 0 },
{ "0x2A0", 0x2A0 }, .selection = {
{ "0x2C0", 0x2C0 }, { .description = "0x200", .value = 0x200 },
{ "0x300", 0x300 }, { .description = "0x220", .value = 0x220 },
{ "0x340", 0x340 }, { .description = "0x240", .value = 0x240 },
{ "0x380", 0x380 }, { .description = "0x260", .value = 0x260 },
{ "" } { .description = "0x280", .value = 0x280 },
{ .description = "0x2A0", .value = 0x2A0 },
{ .description = "0x2C0", .value = 0x2C0 },
{ .description = "0x300", .value = 0x300 },
{ .description = "0x340", .value = 0x340 },
{ .description = "0x380", .value = 0x380 },
{ .description = "" }
}, },
}, },
{ {
"irq", "IRQ", CONFIG_SELECTION, "", 3, "", { 0 }, .name = "irq",
{ .description = "IRQ",
{ "IRQ 2/9", 9 }, .type = CONFIG_SELECTION,
{ "IRQ 3", 3 }, .default_string = "",
{ "IRQ 4", 4 }, .default_int = 3,
{ "IRQ 5", 5 }, .file_filter = "",
{ "IRQ 7", 7 }, .spinner = { 0 },
{ "IRQ 10", 10 }, .selection = {
{ "IRQ 11", 11 }, { .description = "IRQ 2/9", .value = 9 },
{ "IRQ 15", 15 }, { .description = "IRQ 3", .value = 3 },
{ "" } { .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 7", .value = 7 },
{ .description = "IRQ 10", .value = 10 },
{ .description = "IRQ 11", .value = 11 },
{ .description = "IRQ 15", .value = 15 },
{ .description = "" }
}, },
}, },
{ {
"ram_addr", "RAM address", CONFIG_HEX20, "", 0xD0000, "", { 0 }, .name = "ram_addr",
{ .description = "RAM address",
{ "C000", 0xC0000 }, .type = CONFIG_HEX20,
{ "C400", 0xC4000 }, .default_string = "",
{ "C800", 0xC8000 }, .default_int = 0xD0000,
{ "CC00", 0xCC000 }, .file_filter = "",
{ "D000", 0xD0000 }, .spinner = { 0 },
{ "D400", 0xD4000 }, .selection = {
{ "D800", 0xD8000 }, { .description = "C000", .value = 0xC0000 },
{ "DC00", 0xDC000 }, { .description = "C400", .value = 0xC4000 },
{ "" } { .description = "C800", .value = 0xC8000 },
{ .description = "CC00", .value = 0xCC000 },
{ .description = "D000", .value = 0xD0000 },
{ .description = "D400", .value = 0xD4000 },
{ .description = "D800", .value = 0xD8000 },
{ .description = "DC00", .value = 0xDC000 },
{ .description = "" }
}, },
}, },
{ {
"ram_size", "RAM size", CONFIG_SELECTION, "", 16384, "", { 0 }, .name = "ram_size",
.description = "RAM size",
.type = CONFIG_SELECTION,
.default_string = "",
.default_int = 16384,
.file_filter = "",
.spinner = { 0 },
.selection = {
{ .description = "16 kB", .value = 16384 },
{ .description = "64 kB", .value = 65536 },
{ .description = "" }
},
},
{ {
{ "16 kB", 16384 }, .name = "mac",
{ "64 kB", 65536 }, .description = "MAC Address",
{ "" } .type = CONFIG_MAC,
.default_string = "",
.default_int = -1
}, },
}, { .name = "", .description = "", .type = CONFIG_END }
{ "mac", "MAC Address", CONFIG_MAC, "", -1 },
{ "", "", -1 }
}; };
static const device_config_t mca_mac_config[] = { static const device_config_t mca_mac_config[] = {
{ "mac", "MAC Address", CONFIG_MAC, "", -1 }, {
{ "", "", -1 } .name = "mac",
.description = "MAC Address",
.type = CONFIG_MAC,
.default_string = "",
.default_int = -1
},
{ .name = "", .description = "", .type = CONFIG_END }
}; };
// clang-format on // clang-format on