diff options
author | Paolo Bonzini | 2017-08-22 07:08:27 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-09-19 14:09:11 +0200 |
commit | e5b5728cd330f533e02e483af8973ad7ffccce8b (patch) | |
tree | f47dcecd074391ef42adfeae7d8d4fda94c69bcf /include/scsi/scsi.h | |
parent | scsi: rename scsi_build_sense to scsi_convert_sense (diff) | |
download | qemu-e5b5728cd330f533e02e483af8973ad7ffccce8b.tar.gz qemu-e5b5728cd330f533e02e483af8973ad7ffccce8b.tar.xz qemu-e5b5728cd330f533e02e483af8973ad7ffccce8b.zip |
scsi: move non-emulation specific code to scsi/
util/scsi.c includes some SCSI code that is shared by block/iscsi.c and
hw/scsi, but the introduction of the persistent reservation helper
will add many more instances of this. There is also include/block/scsi.h,
which actually is not part of the core block layer.
The persistent reservation manager will also need a home. A scsi/
directory provides one for both the aforementioned shared code and
the PR manager code.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r-- | include/scsi/scsi.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h deleted file mode 100644 index fe330385d8..0000000000 --- a/include/scsi/scsi.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * SCSI helpers - * - * Copyright 2017 Red Hat, Inc. - * - * Authors: - * Fam Zheng <famz@redhat.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. - */ -#ifndef QEMU_SCSI_H -#define QEMU_SCSI_H - -int scsi_sense_to_errno(int key, int asc, int ascq); -int scsi_sense_buf_to_errno(const uint8_t *sense, size_t sense_size); - -#endif |