Commit 56b0939e authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Move scsi_command_size from winescsi.h to SCSI_Fix_CMD_LEN(), its only

user.
parent 6c7d5f50
...@@ -306,6 +306,13 @@ linux_hack: ...@@ -306,6 +306,13 @@ linux_hack:
void void
SCSI_Fix_CMD_LEN(int fd, int cmd, int len) SCSI_Fix_CMD_LEN(int fd, int cmd, int len)
{ {
/* This is what the linux kernel thinks.... */
static const unsigned char scsi_command_size[8] =
{
6, 10, 10, 12,
12, 12, 10, 10
};
int index=(cmd>>5)&7; int index=(cmd>>5)&7;
if (len!=scsi_command_size[index]) if (len!=scsi_command_size[index])
......
...@@ -26,13 +26,6 @@ ...@@ -26,13 +26,6 @@
#define SG_NEXT_CMD_LEN 0x2283 /* override SCSI command length with given #define SG_NEXT_CMD_LEN 0x2283 /* override SCSI command length with given
number on the next write() on this file descriptor */ number on the next write() on this file descriptor */
/* This is what the linux kernel thinks.... */
static const unsigned char scsi_command_size[8] =
{
6, 10, 10, 12,
12, 12, 10, 10
};
struct sg_header struct sg_header
{ {
int pack_len; /* [o] reply_len (ie useless), ignored as input */ int pack_len; /* [o] reply_len (ie useless), ignored as input */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment