board/io4.c: add configuration section to enable/disable emulation

This commit is contained in:
2020-10-07 17:26:12 +00:00
parent e677a1b4f3
commit cd5ae172b8
9 changed files with 36 additions and 6 deletions

View File

@ -16,13 +16,13 @@ static const struct io4_ops mu3_io4_ops = {
.poll = mu3_io4_poll,
};
HRESULT mu3_io4_hook_init(void)
HRESULT mu3_io4_hook_init(const struct io4_config *cfg)
{
HRESULT hr;
assert(mu3_dll.init != NULL);
hr = io4_hook_init(&mu3_io4_ops, NULL);
hr = io4_hook_init(cfg, &mu3_io4_ops, NULL);
if (FAILED(hr)) {
return hr;