From 2875135807771a0d07ba1c878c20b757ed7adffb Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Mon, 21 Aug 2017 22:10:05 +0800 Subject: scsi: Refactor scsi sense interpreting code So that it can be reused outside of iscsi.c. Also update MAINTAINERS to include the new files in SCSI section. Signed-off-by: Fam Zheng Message-Id: <20170821141008.19383-2-famz@redhat.com> Signed-off-by: Paolo Bonzini --- include/scsi/scsi.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/scsi/scsi.h (limited to 'include/scsi') diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h new file mode 100644 index 0000000..f894ace --- /dev/null +++ b/include/scsi/scsi.h @@ -0,0 +1,19 @@ +/* + * SCSI helpers + * + * Copyright 2017 Red Hat, Inc. + * + * Authors: + * Fam Zheng + * + * 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); + +#endif -- cgit v1.1