diff options
author | 2009-10-12 00:30:15 +0000 | |
---|---|---|
committer | 2009-10-12 00:30:15 +0000 | |
commit | 26d2dbbd2668b94324cea7aa50aa3e0bc4cda6b4 (patch) | |
tree | 28ceb88edbfd7b6d1988eaa3377708e9ac0b63d0 | |
parent | fix support for 82543GC. as per intel driver acrds <=82543 need to have their (diff) | |
download | wireguard-openbsd-26d2dbbd2668b94324cea7aa50aa3e0bc4cda6b4.tar.xz wireguard-openbsd-26d2dbbd2668b94324cea7aa50aa3e0bc4cda6b4.zip |
mask bits correctly in devid vpd for the PI
-rw-r--r-- | sys/scsi/scsi_all.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h index 7d0395ec251..e272a9ac97d 100644 --- a/sys/scsi/scsi_all.h +++ b/sys/scsi/scsi_all.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_all.h,v 1.46 2008/06/02 15:43:59 krw Exp $ */ +/* $OpenBSD: scsi_all.h,v 1.47 2009/10/12 00:30:15 dlg Exp $ */ /* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */ /* @@ -284,7 +284,7 @@ struct scsi_vpd_serial { struct scsi_vpd_devid_hdr { u_int8_t pi_code; -#define VPD_DEVID_PI(_f) (((_f) >> 4) & 0xf0) +#define VPD_DEVID_PI(_f) (((_f) >> 4) & 0x0f) #define VPD_DEVID_CODE(_f) (((_f) >> 0) & 0x0f) #define VPD_DEVID_CODE_BINARY 0x1 #define VPD_DEVID_CODE_ASCII 0x2 |