Module Name: src Committed By: riastradh Date: Sat Oct 15 20:00:35 UTC 2022
Modified Files: src/sys/dev/pci: virtioreg.h Log Message: virtio(4): Use __BIT, not inline shift. Reduces need for cast. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/virtioreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/virtioreg.h diff -u src/sys/dev/pci/virtioreg.h:1.10 src/sys/dev/pci/virtioreg.h:1.11 --- src/sys/dev/pci/virtioreg.h:1.10 Wed Apr 13 10:56:11 2022 +++ src/sys/dev/pci/virtioreg.h Sat Oct 15 20:00:35 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: virtioreg.h,v 1.10 2022/04/13 10:56:11 uwe Exp $ */ +/* $NetBSD: virtioreg.h,v 1.11 2022/10/15 20:00:35 riastradh Exp $ */ /* * Copyright (c) 2010 Minoura Makoto. @@ -79,11 +79,11 @@ #define VIRTIO_DEVICE_ID_9P 9 /* common device/guest features */ -#define VIRTIO_F_NOTIFY_ON_EMPTY (1<<24) -#define VIRTIO_F_RING_INDIRECT_DESC (1<<28) -#define VIRTIO_F_RING_EVENT_IDX (1<<29) -#define VIRTIO_F_BAD_FEATURE (1<<30) -#define VIRTIO_F_VERSION_1 (UINT64_C(1) << 32) +#define VIRTIO_F_NOTIFY_ON_EMPTY __BIT(24) +#define VIRTIO_F_RING_INDIRECT_DESC __BIT(28) +#define VIRTIO_F_RING_EVENT_IDX __BIT(29) +#define VIRTIO_F_BAD_FEATURE __BIT(30) +#define VIRTIO_F_VERSION_1 __BIT(32) /* common device status flags */ #define VIRTIO_CONFIG_DEVICE_STATUS_RESET 0