| * Copyright IBM, Corp. 2010 |
| * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> |
| * This work is licensed under the terms of the GNU GPL, version 2. See |
| * the COPYING file in the top-level directory. |
| #ifndef _QEMU_VIRTIO_SCSI_H |
| #define _QEMU_VIRTIO_SCSI_H |
| /* The ID for virtio_scsi */ |
| #define DEFINE_VIRTIO_SCSI_PROPERTIES(_state, _features_field, _conf_field) \ |
| DEFINE_VIRTIO_COMMON_FEATURES(_state, _features_field), \ |
| DEFINE_PROP_UINT32("num_queues", _state, _conf_field.num_queues, 1), \ |
| DEFINE_PROP_UINT32("max_sectors", _state, _conf_field.max_sectors, 0xFFFF), \ |
| DEFINE_PROP_UINT32("cmd_per_lun", _state, _conf_field.cmd_per_lun, 128) |
| #endif /* _QEMU_VIRTIO_SCSI_H */ |