Module Name: src Committed By: uwe Date: Wed Apr 13 13:50:37 UTC 2022
Modified Files: src/sys/dev/pci: vio9p.c Log Message: vio9p: Add definition for the MOUNT_TAG feature bit. >From QEMU sources. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/vio9p.c 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/vio9p.c diff -u src/sys/dev/pci/vio9p.c:1.5 src/sys/dev/pci/vio9p.c:1.6 --- src/sys/dev/pci/vio9p.c:1.5 Thu Mar 31 19:30:16 2022 +++ src/sys/dev/pci/vio9p.c Wed Apr 13 13:50:37 2022 @@ -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. #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)