diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-11-26 15:33:53 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:36 -0600 |
commit | 0d65e1f856d6f5bd00cb90bcc394fbe95fe5d244 (patch) | |
tree | f5a3d5b46a6e13bb5e2367355f29764f10e6cfd5 /hw/scsi-generic.c | |
parent | b07995e3caa6252025a76772ed008cecaab5033a (diff) |
scsi: add scsi-defs.h
Largely based on <scsi/scsi.h> from linux. Added into the tree so we
can use the defines everywhere, not just in scsi-generic.c (which is
linux-specific).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r-- | hw/scsi-generic.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 053fb73c25..3f4f7f951d 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -34,13 +34,7 @@ do { fprintf(stderr, "scsi-generic: " fmt , ## __VA_ARGS__); } while (0) #include <sys/stat.h> #include <unistd.h> #include <scsi/sg.h> -#include <scsi/scsi.h> - -#define REWIND 0x01 -#define REPORT_DENSITY_SUPPORT 0x44 -#define LOAD_UNLOAD 0xa6 -#define SET_CD_SPEED 0xbb -#define BLANK 0xa1 +#include "scsi-defs.h" #define SCSI_SENSE_BUF_SIZE 96 |