cfi_unpack_1
((cfi_unpack_1(b1) << 8) | cfi_unpack_1(b0))
((cfi_unpack_1(b3) << 24) | \
(cfi_unpack_1(b2) << 16) | \
(cfi_unpack_1(b1) << 8) | \
(cfi_unpack_1(b0)))
(qryp)->qry[0] = cfi_unpack_1(data[0x10]); \
(qryp)->qry[1] = cfi_unpack_1(data[0x11]); \
(qryp)->qry[2] = cfi_unpack_1(data[0x12]); \
(qryp)->vcc_min = cfi_unpack_1(data[0x1b]); \
(qryp)->vcc_max = cfi_unpack_1(data[0x1c]); \
(qryp)->vpp_min = cfi_unpack_1(data[0x1d]); \
(qryp)->vpp_max = cfi_unpack_1(data[0x1e]); \
(qryp)->write_word_time_typ = cfi_unpack_1(data[0x1f]); \
(qryp)->write_nbyte_time_typ = cfi_unpack_1(data[0x20]); \
(qryp)->erase_blk_time_typ = cfi_unpack_1(data[0x21]); \
(qryp)->erase_chip_time_typ = cfi_unpack_1(data[0x22]); \
(qryp)->write_word_time_max = cfi_unpack_1(data[0x23]); \
(qryp)->write_nbyte_time_max = cfi_unpack_1(data[0x24]); \
(qryp)->erase_blk_time_max = cfi_unpack_1(data[0x25]); \
(qryp)->erase_chip_time_max = cfi_unpack_1(data[0x26]); \
(qryp)->device_size = cfi_unpack_1(data[0x27]); \
(qryp)->erase_blk_regions = cfi_unpack_1(data[0x2c]); \
(qryp)->pri.cmd_0002.pri[0] = cfi_unpack_1(data[0x00]); \
(qryp)->pri.cmd_0002.pri[1] = cfi_unpack_1(data[0x01]); \
(qryp)->pri.cmd_0002.pri[2] = cfi_unpack_1(data[0x02]); \
(qryp)->pri.cmd_0002.version_maj = cfi_unpack_1(data[0x03]); \
(qryp)->pri.cmd_0002.version_min = cfi_unpack_1(data[0x04]); \
(qryp)->pri.cmd_0002.asupt = cfi_unpack_1(data[0x05]); \
(qryp)->pri.cmd_0002.erase_susp = cfi_unpack_1(data[0x06]); \
(qryp)->pri.cmd_0002.sector_prot = cfi_unpack_1(data[0x07]); \
cfi_unpack_1(data[0x08]); \
cfi_unpack_1(data[0x09]); \
(qryp)->pri.cmd_0002.simul_op = cfi_unpack_1(data[0x0a]); \
(qryp)->pri.cmd_0002.burst_mode_type = cfi_unpack_1(data[0x0b]);\
(qryp)->pri.cmd_0002.page_mode_type = cfi_unpack_1(data[0x0c]); \
(qryp)->pri.cmd_0002.acc_min = cfi_unpack_1(data[0x0d]); \
(qryp)->pri.cmd_0002.acc_max = cfi_unpack_1(data[0x0e]); \
(qryp)->pri.cmd_0002.wp_prot = cfi_unpack_1(data[0x0f]); \
(qryp)->pri.cmd_0002.prog_susp = cfi_unpack_1(data[0x10]); \
(qryp)->pri.cmd_0002.unlock_bypass = cfi_unpack_1(data[0x11]); \
(qryp)->pri.cmd_0002.sss_size = cfi_unpack_1(data[0x12]); \
(qryp)->pri.cmd_0002.soft_feat = cfi_unpack_1(data[0x13]); \
(qryp)->pri.cmd_0002.page_size = cfi_unpack_1(data[0x14]); \
cfi_unpack_1(data[0x15]); \
cfi_unpack_1(data[0x16]); \
cfi_unpack_1(data[0x38]); \
cfi_unpack_1(data[0x39]); \
if ((cfi_unpack_1(data[qryp->addr_pri + 0]) == 'P') && \
(cfi_unpack_1(data[qryp->addr_pri + 1]) == 'R') && \
(cfi_unpack_1(data[qryp->addr_pri + 2]) == 'I')) { \