Skip to content

Commit 7e76063

Browse files
Tom Rixmartinkpetersen
authored andcommitted
scsi: aic7xxx: Restore several defines for aic7xxx firmware build
With CONFIG_AIC7XXX_BUILD_FIRMWARE, there is this representative error: aicasm: Stopped at file ./drivers/scsi/aic7xxx/aic7xxx.seq, line 271 - Undefined symbol MSG_SIMPLE_Q_TAG referenced MSG_SIMPLE_Q_TAG used to be defined in drivers/scsi/aic7xxx/scsi_message.h as: #define MSG_SIMPLE_Q_TAG 0x20 /* O/O */ The new definition in include/scsi/scsi.h is: #define SIMPLE_QUEUE_TAG 0x20 But aicasm can not handle the all the preprocessor directives in scsi.h, so add MSG_SIMPLE_Q_TAB and other required defines back to scsi_message.h. Link: https://lore.kernel.org/r/[email protected] Fixes: d8cd784 ("scsi: aic7xxx: aic79xx: Drop internal SCSI message definition" Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 5aaeca2 commit 7e76063

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/scsi/aic7xxx/scsi_message.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
* $FreeBSD: src/sys/cam/scsi/scsi_message.h,v 1.2 2000/05/01 20:21:29 peter Exp $
44
*/
55

6+
/* Messages (1 byte) */ /* I/T (M)andatory or (O)ptional */
7+
#define MSG_SAVEDATAPOINTER 0x02 /* O/O */
8+
#define MSG_RESTOREPOINTERS 0x03 /* O/O */
9+
#define MSG_DISCONNECT 0x04 /* O/O */
10+
#define MSG_MESSAGE_REJECT 0x07 /* M/M */
11+
#define MSG_NOOP 0x08 /* M/M */
12+
13+
/* Messages (2 byte) */
14+
#define MSG_SIMPLE_Q_TAG 0x20 /* O/O */
15+
#define MSG_IGN_WIDE_RESIDUE 0x23 /* O/O */
16+
617
/* Identify message */ /* M/M */
718
#define MSG_IDENTIFYFLAG 0x80
819
#define MSG_IDENTIFY_DISCFLAG 0x40

0 commit comments

Comments
 (0)