diff options
author | Michele Paolino <m.paolino@virtualopensystems.com> | 2024-05-31 15:22:05 +0000 |
---|---|---|
committer | Michele Paolino <m.paolino@virtualopensystems.com> | 2024-06-03 13:59:48 +0000 |
commit | 9982da4e9ee4f920c51af694ca813a69979e58e8 (patch) | |
tree | 745e501a8ee65e8e871b2e055c62c295ca2d507a /adapter.h | |
parent | c6ee7a5bec9cfc7b5e0c6bb064d2e4d195b60557 (diff) |
New adapter version: code refactoringsalmon_18.90.0salmon/18.90.018.90.0
Small code refactoring and optimizations
v2: with copyright fixes
Bug-AGL: SPEC-4834
Change-Id: Icaee8121f367b21bbdb874a3bc5fc327c5a1ded1
Signed-off-by: Michele Paolino <m.paolino@virtualopensystems.com>
Diffstat (limited to 'adapter.h')
-rw-r--r-- | adapter.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/adapter.h b/adapter.h new file mode 100644 index 0000000..67a64df --- /dev/null +++ b/adapter.h @@ -0,0 +1,53 @@ +/* + * + * Copyright (c) 2022-2024 Virtual Open Systems SAS. + * + * Author: + * Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef ADAPTER +#define ADAPTER + +/* Project header files */ +#include "virtio_loopback.h" +#include "vhost_user_loopback.h" +#include "virtio_rng.h" +#include "vhost_user_rng.h" +#include "vhost_user_blk.h" +#include "vhost_user_input.h" +#include "vhost_user_gpio.h" +#include "vhost_user_sound.h" +#include "vhost_user_can.h" +#include "vhost_user_console.h" + +#ifdef DEBUG +#define DBG(...) printf("adapter: " __VA_ARGS__) +#else +#define DBG(...) +#endif /* DEBUG */ + +#define VHU_DEVS 8 +#define ADAPTER_DEVS (VHU_DEVS + 1) + +const char *adapter_devices[] = {"vrng", "vhurng", "vhublk", "vhuinput", + "vhusnd", "vhugpio", "vhucan", + "vhuconsole" }; +const char *vhu_devices[] = {"vhurng", "vhublk", "vhuinput", "vhusnd", + "vhugpio", "vhucan", "vhuconsole"}; + +#endif /* ADAPTER */ |