mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 10:19:07 +00:00
Move scsi_command_size from winescsi.h to SCSI_Fix_CMD_LEN(), its only
user.
This commit is contained in:
parent
6c7d5f500a
commit
56b0939efe
|
@ -306,6 +306,13 @@ linux_hack:
|
|||
void
|
||||
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;
|
||||
|
||||
if (len!=scsi_command_size[index])
|
||||
|
|
|
@ -26,13 +26,6 @@
|
|||
#define SG_NEXT_CMD_LEN 0x2283 /* override SCSI command length with given
|
||||
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
|
||||
{
|
||||
int pack_len; /* [o] reply_len (ie useless), ignored as input */
|
||||
|
|
Loading…
Reference in a new issue