bus: Change a few bus drivers to use consistent IVAR ranges

A few bus drivers used 1 instead of 0 as the starting index of their
private IVARs.  Fix those drivers to start at BUS_IVARS_PRIVATE for
consistency.

Differential Revision:	https://reviews.freebsd.org/D54934
This commit is contained in:
John Baldwin
2026-02-17 15:45:25 -05:00
parent 6cf4e30252
commit e3d2108a6e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
#define _DEV_QUICC_BUS_H_
enum {
QUICC_IVAR_CLOCK = BUS_IVARS_PRIVATE + 1, /* The CPM clock. */
QUICC_IVAR_CLOCK = BUS_IVARS_PRIVATE, /* The CPM clock. */
QUICC_IVAR_BRGCLK, /* The BRG clock affected by SCCR. */
QUICC_IVAR_DEVTYPE
};
+1 -1
View File
@@ -54,7 +54,7 @@ struct vq_alloc_info;
* VirtIO instance variables indices.
*/
enum {
VIRTIO_IVAR_DEVTYPE = BUS_IVARS_PRIVATE + 1,
VIRTIO_IVAR_DEVTYPE = BUS_IVARS_PRIVATE,
VIRTIO_IVAR_FEATURE_DESC,
VIRTIO_IVAR_VENDOR,
VIRTIO_IVAR_DEVICE,
+1 -1
View File
@@ -36,7 +36,7 @@
*/
enum {
CPU_IVAR_PCPU = BUS_IVARS_PRIVATE + 1,
CPU_IVAR_PCPU = BUS_IVARS_PRIVATE,
CPU_IVAR_NOMINAL_MHZ,
CPU_IVAR_CPUID_SIZE,
CPU_IVAR_CPUID