Print this page
SKU fix for 5094

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/smbios_impl.h
          +++ new/usr/src/uts/common/sys/smbios_impl.h
↓ open down ↓ 105 lines elided ↑ open up ↑
 106  106          uint8_t smbch_bustate;          /* boot-up state */
 107  107          uint8_t smbch_psstate;          /* power supply state */
 108  108          uint8_t smbch_thstate;          /* thermal state */
 109  109          uint8_t smbch_security;         /* security state */
 110  110          uint32_t smbch_oemdata;         /* OEM-specific data */
 111  111          uint8_t smbch_uheight;          /* enclosure height */
 112  112          uint8_t smbch_cords;            /* number of power cords */
 113  113          uint8_t smbch_cn;               /* number of contained records */
 114  114          uint8_t smbch_cm;               /* size of contained records */
 115  115          uint8_t smbch_cv[1];            /* array of contained records */
 116      -        uint8_t smbch_sku;              /* SKU number */
 117  116  } smb_chassis_t;
 118  117  
      118 +/* WARNING: the argument is evaluated three times! */
      119 +#define SMB_CH_SKU(smbcp) ((char *) \
      120 +        (smbcp)->smbch_cv + ((smbcp)->smbch_cn * (smbcp)->smbch_cm))
 119  121  #define SMB_CHT_LOCK    0x80            /* lock bit within smbch_type */
 120  122  
 121  123  typedef struct smb_processor {
 122  124          smb_header_t smbpr_hdr;         /* structure header */
 123  125          uint8_t smbpr_socket;           /* socket designation */
 124  126          uint8_t smbpr_type;             /* processor type (see <smbios.h>) */
 125  127          uint8_t smbpr_family;           /* processor family (see <smbios.h>) */
 126  128          uint8_t smbpr_manufacturer;     /* manufacturer */
 127  129          uint64_t smbpr_cpuid;           /* processor cpuid information */
 128  130          uint8_t smbpr_version;          /* version */
↓ open down ↓ 383 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX