| * libqos PCI bindings for PC |
| * Copyright IBM, Corp. 2012-2013 |
| * Anthony Liguori <aliguori@us.ibm.com> |
| * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| * See the COPYING file in the top-level directory. |
| #include "libqos-malloc.h" |
| typedef struct QPCIBusPC { |
| * @ret: A valid QPCIBusPC * pointer |
| * @qts: The %QTestState for this PC machine |
| * @alloc: A previously initialized @alloc providing memory for @qts |
| * This function initializes an already allocated |
| void qpci_init_pc(QPCIBusPC *ret, QTestState *qts, QGuestAllocator *alloc); |
| * @qts: The %QTestState for this PC machine |
| * @alloc: A previously initialized @alloc providing memory for @qts |
| * This function creates a new QPCIBusPC object, |
| * and properly initialize its fields. |
| * Returns the QPCIBus *bus field of a newly |
| QPCIBus *qpci_new_pc(QTestState *qts, QGuestAllocator *alloc); |
| void qpci_free_pc(QPCIBus *bus); |