diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-07-27 19:58:23 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-07-27 19:58:23 +0000 |
commit | aac31a343f55c0b40b7d46ba453201fff3430acb (patch) | |
tree | c9e35ef76fc2f3130e116a9a06142b8866aace6b /src/sg_vpd_common.h | |
parent | 270cd7304dd379ee490df57120d281641c292398 (diff) | |
download | sg3_utils-aac31a343f55c0b40b7d46ba453201fff3430acb.tar.gz |
rescan-scsi-bus.sh: fix handling of '-I <secs>' 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
Diffstat (limited to 'src/sg_vpd_common.h')
-rw-r--r-- | src/sg_vpd_common.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdint.h> #include <stdbool.h> @@ -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); |