From aac31a343f55c0b40b7d46ba453201fff3430acb Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Wed, 27 Jul 2022 19:58:23 +0000 Subject: rescan-scsi-bus.sh: fix handling of '-I ' option ; sg_inq+sg_vpd: more JSON work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@962 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_vpd_common.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/sg_vpd_common.h') diff --git a/src/sg_vpd_common.h b/src/sg_vpd_common.h index 3f182664..0571ece1 100644 --- a/src/sg_vpd_common.h +++ b/src/sg_vpd_common.h @@ -10,6 +10,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +/* This is a common header file for the sg_inq and sg_vpd utilities */ + #include #include @@ -154,6 +156,22 @@ void decode_power_consumption(uint8_t * buff, int len, struct opts_t * op, sgj_opaque_p jap); void decode_block_limits_vpd(const uint8_t * buff, int len, struct opts_t * op, sgj_opaque_p jop); +void decode_block_dev_ch_vpd(const uint8_t * buff, int len, + struct opts_t * op, sgj_opaque_p jop); +int decode_block_lb_prov_vpd(uint8_t * buff, int len, + struct opts_t * op, sgj_opaque_p jop); +void decode_referrals_vpd(uint8_t * buff, int len, struct opts_t * op, + sgj_opaque_p jop); +void decode_sup_block_lens_vpd(uint8_t * buff, int len, struct opts_t * op, + sgj_opaque_p jap); +void decode_block_dev_char_ext_vpd(uint8_t * buff, int len, + struct opts_t * op, sgj_opaque_p jop); +void decode_zbdch_vpd(uint8_t * buff, int len, struct opts_t * op, + sgj_opaque_p jop); +void decode_block_limits_ext_vpd(uint8_t * buff, int len, struct opts_t * op, + sgj_opaque_p jop); +void decode_format_presets_vpd(uint8_t * buff, int len, struct opts_t * op, + sgj_opaque_p jap); const char * pqual_str(int pqual); void svpd_enumerate_vendor(int vend_prod_num); -- cgit v1.2.3