Change device id mask (IPM_DEV_DEVICE_ID_REV_MASK) 0x07 for 0x0F.

As per in IPMI spec V2:

Table 20-2 Get Device Id command byte 3:

[7] 1 = device provides Device SDRs
    0 = device does not provide Device SDRs
[6:4] reserved. Return as 0.
[3:0] Device Revision, binary encoded.

The mask need to be done on 4 bits.
This commit is contained in:
Francois Isabelle 2009-04-20 15:08:44 +00:00
parent 0f1e92a450
commit ccb0aba6b9

View File

@ -65,7 +65,7 @@ struct ipm_devid_rsp {
} __attribute__ ((packed));
#define IPM_DEV_DEVICE_ID_SDR_MASK (0x80) /* 1 = provides SDRs */
#define IPM_DEV_DEVICE_ID_REV_MASK (0x07) /* BCD-enoded */
#define IPM_DEV_DEVICE_ID_REV_MASK (0x0F) /* BCD-enoded */
#define IPM_DEV_FWREV1_AVAIL_MASK (0x80) /* 0 = normal operation */
#define IPM_DEV_FWREV1_MAJOR_MASK (0x3f) /* Major rev, BCD-encoded */