diff options
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/uts/intel/io/aac/aac.c | 6 | ||||
| -rw-r--r-- | usr/src/uts/intel/io/aac/aac_regs.h | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/usr/src/uts/intel/io/aac/aac.c b/usr/src/uts/intel/io/aac/aac.c index 38ed4cd502..4871874ee5 100644 --- a/usr/src/uts/intel/io/aac/aac.c +++ b/usr/src/uts/intel/io/aac/aac.c @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1016,7 +1016,7 @@ aac_intr_new(caddr_t arg) if (index == 0xffffffff) return (DDI_INTR_UNCLAIMED); do { - if (index & 2) { + if (index & AAC_SENDERADDR_MASK_AIF) { int i; if (index == 0xfffffffe) @@ -1035,7 +1035,7 @@ aac_intr_new(caddr_t arg) AAC_OUTB_SET(softs, index); AAC_STATUS_CLR(softs, AAC_DB_RESPONSE_READY); } else { - fast = index & 1; + fast = index & AAC_SENDERADDR_MASK_FAST_RESPONSE; index >>= 2; /* Make sure firmware reported index is valid */ diff --git a/usr/src/uts/intel/io/aac/aac_regs.h b/usr/src/uts/intel/io/aac/aac_regs.h index 5cc41115b7..a04e6ddc13 100644 --- a/usr/src/uts/intel/io/aac/aac_regs.h +++ b/usr/src/uts/intel/io/aac/aac_regs.h @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -145,6 +145,11 @@ struct aac_fib_header { int next; }; +/* FIB completed without error or no data was transferred in the FIB */ +#define AAC_SENDERADDR_MASK_FAST_RESPONSE 0x01 +/* The received FIB is an AIF */ +#define AAC_SENDERADDR_MASK_AIF 0x02 + #define AAC_FIB_SIZE 512 /* size of a fib block in byte */ #define AAC_FIB_DATASIZE (AAC_FIB_SIZE - sizeof (struct aac_fib_header)) |
