src/device

This commit is contained in:
Jasmine Iwanek
2022-03-13 09:28:28 -04:00
parent a52f0cca79
commit a7edaf0608
21 changed files with 1047 additions and 781 deletions

View File

@@ -592,7 +592,6 @@ isartc_close(void *priv)
free(dev);
}
static const device_config_t ev170_config[] = {
// clang-format off
{
@@ -618,16 +617,19 @@ static const device_config_t ev170_config[] = {
};
static const device_t ev170_device = {
"Everex EV-170 Magic I/O",
"ev170",
DEVICE_ISA,
ISARTC_EV170,
isartc_init, isartc_close, NULL,
{ NULL }, NULL, NULL,
ev170_config
.name = "Everex EV-170 Magic I/O",
.internal_name = "ev170",
.flags = DEVICE_ISA,
.local = ISARTC_EV170,
.init = isartc_init,
.close = isartc_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = ev170_config
};
static const device_config_t pii147_config[] = {
// clang-format off
{
@@ -643,16 +645,19 @@ static const device_config_t pii147_config[] = {
};
static const device_t pii147_device = {
"DTK PII-147 Hexa I/O Plus",
"pii147",
DEVICE_ISA,
ISARTC_DTK,
isartc_init, isartc_close, NULL,
{ NULL }, NULL, NULL,
pii147_config
.name = "DTK PII-147 Hexa I/O Plus",
.internal_name = "pii147",
.flags = DEVICE_ISA,
.local = ISARTC_DTK,
.init = isartc_init,
.close = isartc_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = pii147_config
};
static const device_config_t p5pak_config[] = {
// clang-format off
{
@@ -670,16 +675,19 @@ static const device_config_t p5pak_config[] = {
};
static const device_t p5pak_device = {
"Paradise Systems 5-PAK",
"p5pak",
DEVICE_ISA,
ISARTC_P5PAK,
isartc_init, isartc_close, NULL,
{ NULL }, NULL, NULL,
p5pak_config
.name = "Paradise Systems 5-PAK",
.internal_name = "p5pak",
.flags = DEVICE_ISA,
.local = ISARTC_P5PAK,
.init = isartc_init,
.close = isartc_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = p5pak_config
};
static const device_config_t a6pak_config[] = {
// clang-format off
{
@@ -697,22 +705,31 @@ static const device_config_t a6pak_config[] = {
};
static const device_t a6pak_device = {
"AST SixPakPlus",
"a6pak",
DEVICE_ISA,
ISARTC_A6PAK,
isartc_init, isartc_close, NULL,
{ NULL }, NULL, NULL,
a6pak_config
.name = "AST SixPakPlus",
.internal_name = "a6pak",
.flags = DEVICE_ISA,
.local = ISARTC_A6PAK,
.init = isartc_init,
.close = isartc_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = a6pak_config
};
static const device_t isartc_none_device = {
"None",
"none",
0, 0,
NULL, NULL, NULL,
{ NULL }, NULL, NULL,
NULL
.name = "None",
.internal_name = "none",
.flags = 0,
.local = 0,
.init = NULL,
.close = NULL,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
static const struct {