1*1cf4323eSThomas Huth /* 2*1cf4323eSThomas Huth * libqos driver framework 3*1cf4323eSThomas Huth * 4*1cf4323eSThomas Huth * Copyright (c) 2018 Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com> 5*1cf4323eSThomas Huth * 6*1cf4323eSThomas Huth * This library is free software; you can redistribute it and/or 7*1cf4323eSThomas Huth * modify it under the terms of the GNU Lesser General Public 8*1cf4323eSThomas Huth * License version 2 as published by the Free Software Foundation. 9*1cf4323eSThomas Huth * 10*1cf4323eSThomas Huth * This library is distributed in the hope that it will be useful, 11*1cf4323eSThomas Huth * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*1cf4323eSThomas Huth * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13*1cf4323eSThomas Huth * Lesser General Public License for more details. 14*1cf4323eSThomas Huth * 15*1cf4323eSThomas Huth * You should have received a copy of the GNU Lesser General Public 16*1cf4323eSThomas Huth * License along with this library; if not, see <http://www.gnu.org/licenses/> 17*1cf4323eSThomas Huth */ 18*1cf4323eSThomas Huth 19*1cf4323eSThomas Huth #ifndef TESTS_LIBQOS_VIRTIO_BLK_H 20*1cf4323eSThomas Huth #define TESTS_LIBQOS_VIRTIO_BLK_H 21*1cf4323eSThomas Huth 22*1cf4323eSThomas Huth #include "libqos/qgraph.h" 23*1cf4323eSThomas Huth #include "libqos/virtio.h" 24*1cf4323eSThomas Huth #include "libqos/virtio-pci.h" 25*1cf4323eSThomas Huth 26*1cf4323eSThomas Huth typedef struct QVirtioBlk QVirtioBlk; 27*1cf4323eSThomas Huth typedef struct QVirtioBlkPCI QVirtioBlkPCI; 28*1cf4323eSThomas Huth typedef struct QVirtioBlkDevice QVirtioBlkDevice; 29*1cf4323eSThomas Huth 30*1cf4323eSThomas Huth /* virtqueue is created in each test */ 31*1cf4323eSThomas Huth struct QVirtioBlk { 32*1cf4323eSThomas Huth QVirtioDevice *vdev; 33*1cf4323eSThomas Huth }; 34*1cf4323eSThomas Huth 35*1cf4323eSThomas Huth struct QVirtioBlkPCI { 36*1cf4323eSThomas Huth QVirtioPCIDevice pci_vdev; 37*1cf4323eSThomas Huth QVirtioBlk blk; 38*1cf4323eSThomas Huth }; 39*1cf4323eSThomas Huth 40*1cf4323eSThomas Huth struct QVirtioBlkDevice { 41*1cf4323eSThomas Huth QOSGraphObject obj; 42*1cf4323eSThomas Huth QVirtioBlk blk; 43*1cf4323eSThomas Huth }; 44*1cf4323eSThomas Huth 45*1cf4323eSThomas Huth #endif 46