mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
b07995e3ca
commit
0d65e1f856
3 changed files with 174 additions and 31 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue