xref: /openbmc/qemu/include/hw/remote/machine.h (revision 48b06f50d80b23d98fe602cadd38bacdfbe2ea84)
13f0e7e57SJagannathan Raman /*
23f0e7e57SJagannathan Raman  * Remote machine configuration
33f0e7e57SJagannathan Raman  *
43f0e7e57SJagannathan Raman  * Copyright © 2018, 2021 Oracle and/or its affiliates.
53f0e7e57SJagannathan Raman  *
63f0e7e57SJagannathan Raman  * This work is licensed under the terms of the GNU GPL, version 2 or later.
73f0e7e57SJagannathan Raman  * See the COPYING file in the top-level directory.
83f0e7e57SJagannathan Raman  *
93f0e7e57SJagannathan Raman  */
103f0e7e57SJagannathan Raman 
113f0e7e57SJagannathan Raman #ifndef REMOTE_MACHINE_H
123f0e7e57SJagannathan Raman #define REMOTE_MACHINE_H
133f0e7e57SJagannathan Raman 
143f0e7e57SJagannathan Raman #include "qom/object.h"
153f0e7e57SJagannathan Raman #include "hw/boards.h"
163f0e7e57SJagannathan Raman #include "hw/pci-host/remote.h"
17*48b06f50SJagannathan Raman #include "io/channel.h"
183f0e7e57SJagannathan Raman 
193f0e7e57SJagannathan Raman struct RemoteMachineState {
203f0e7e57SJagannathan Raman     MachineState parent_obj;
213f0e7e57SJagannathan Raman 
223f0e7e57SJagannathan Raman     RemotePCIHost *host;
233f0e7e57SJagannathan Raman };
243f0e7e57SJagannathan Raman 
25*48b06f50SJagannathan Raman /* Used to pass to co-routine device and ioc. */
26*48b06f50SJagannathan Raman typedef struct RemoteCommDev {
27*48b06f50SJagannathan Raman     PCIDevice *dev;
28*48b06f50SJagannathan Raman     QIOChannel *ioc;
29*48b06f50SJagannathan Raman } RemoteCommDev;
30*48b06f50SJagannathan Raman 
313f0e7e57SJagannathan Raman #define TYPE_REMOTE_MACHINE "x-remote-machine"
323f0e7e57SJagannathan Raman OBJECT_DECLARE_SIMPLE_TYPE(RemoteMachineState, REMOTE_MACHINE)
333f0e7e57SJagannathan Raman 
34*48b06f50SJagannathan Raman void coroutine_fn mpqemu_remote_msg_loop_co(void *data);
35*48b06f50SJagannathan Raman 
363f0e7e57SJagannathan Raman #endif
37