summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2022-04-13 13:50:37 +0000
committeruwe <uwe@NetBSD.org>2022-04-13 13:50:37 +0000
commit4dd8dfd3a832c7bfe998caf05888a081810d1e06 (patch)
treeb2d64ee9db5397d88e4af5fbf63e99570f75508f /sys/dev
parenta03c70654eb63c2a7f288fd47a714ccaf2060d56 (diff)
vio9p: Add definition for the MOUNT_TAG feature bit.
From QEMU sources.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/vio9p.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/pci/vio9p.c b/sys/dev/pci/vio9p.c
index 06d90e41d26..c9db434fc1b 100644
--- a/sys/dev/pci/vio9p.c
+++ b/sys/dev/pci/vio9p.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vio9p.c,v 1.5 2022/03/31 19:30:16 pgoyette Exp $ */
+/* $NetBSD: vio9p.c,v 1.6 2022/04/13 13:50:37 uwe Exp $ */
/*
* Copyright (c) 2019 Internet Initiative Japan, Inc.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vio9p.c,v 1.5 2022/03/31 19:30:16 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vio9p.c,v 1.6 2022/04/13 13:50:37 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,11 +60,17 @@ __KERNEL_RCSID(0, "$NetBSD: vio9p.c,v 1.5 2022/03/31 19:30:16 pgoyette Exp $");
#define DLOG(fmt, args...) __nothing
#endif
+/* Device-specific feature bits */
+#define VIO9P_F_MOUNT_TAG (UINT64_C(1) << 0) /* mount tag specified */
+
/* Configuration registers */
#define VIO9P_CONFIG_TAG_LEN 0 /* 16bit */
#define VIO9P_CONFIG_TAG 2
-#define VIO9P_FLAG_BITS VIRTIO_COMMON_FLAG_BITS
+#define VIO9P_FLAG_BITS \
+ VIRTIO_COMMON_FLAG_BITS \
+ "b\x00" "MOUNT_TAG\0"
+
// Must be the same as P9P_DEFREQLEN of usr.sbin/puffs/mount_9p/ninepuffs.h
#define VIO9P_MAX_REQLEN (16 * 1024)