As used in the provisions listed in Section 16580, an offense that involves the violent use of a firearm includes any of the following:
A violation of paragraph (2) or (3) of subdivision (a) of Section 245 or a violation of subdivision (d) of Section 245.
A violation of Section 246.
A violation of paragraph (2) of subdivision (a) of Section 417.
A violation of subdivision (c) of Section 417.