diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2009-11-01 23:06:04 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2009-11-01 23:06:04 +0000 |
commit | 4deda1b87a5fba9d18b16318ddd5f8f0770bc42a (patch) | |
tree | 1bb6fc2c26e4d2b6f16161d1bd36c0eccae58358 /sys/scsi | |
parent | 5ab4240e0f94125c81a2e37984de55d5a8f4549e (diff) |
Move IS[12]BYTEMSG and ISEXTMSG defines to a common place.
Pointed out by miod@. krw@ miod@ ok.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsi_message.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/scsi/scsi_message.h b/sys/scsi/scsi_message.h index 0bb8a2c958a..6c49879eb21 100644 --- a/sys/scsi/scsi_message.h +++ b/sys/scsi/scsi_message.h @@ -1,4 +1,8 @@ -/* $OpenBSD: scsi_message.h,v 1.8 2006/05/11 00:45:59 krw Exp $ */ +/* $OpenBSD: scsi_message.h,v 1.9 2009/11/01 23:06:03 fgsch Exp $ */ + +#define IS1BYTEMSG(m) (((m) != 0x01 && (m) < 0x20) || (m) >= 0x80) +#define IS2BYTEMSG(m) (((m) & 0xf0) == 0x20) +#define ISEXTMSG(m) ((m) == 0x01) /* Messages (1 byte) */ /* I/T (M)andatory or (O)ptional */ #define MSG_CMDCOMPLETE 0x00 /* M/M */ |