Print this page
SKU fix for 5094
@@ -111,13 +111,15 @@
uint8_t smbch_uheight; /* enclosure height */
uint8_t smbch_cords; /* number of power cords */
uint8_t smbch_cn; /* number of contained records */
uint8_t smbch_cm; /* size of contained records */
uint8_t smbch_cv[1]; /* array of contained records */
- uint8_t smbch_sku; /* SKU number */
} smb_chassis_t;
+/* WARNING: the argument is evaluated three times! */
+#define SMB_CH_SKU(smbcp) ((char *) \
+ (smbcp)->smbch_cv + ((smbcp)->smbch_cn * (smbcp)->smbch_cm))
#define SMB_CHT_LOCK 0x80 /* lock bit within smbch_type */
typedef struct smb_processor {
smb_header_t smbpr_hdr; /* structure header */
uint8_t smbpr_socket; /* socket designation */