diff usr/src/uts/sun4v/sys/vdc.h @ 9889:68d0fe4c716e

PSARC 2008/769 Multiple disk sector size support. 6710930 Solaris needs to support large sector size hard drive disk
author yu, larry liu - Sun Microsystems - Beijing China <Larry.Liu@Sun.COM>
date Wed, 17 Jun 2009 19:20:05 +0800
parents 84ec90ffc3f7
children c6175c150216
line wrap: on
line diff
--- a/usr/src/uts/sun4v/sys/vdc.h	Wed Jun 17 10:42:08 2009 +0200
+++ b/usr/src/uts/sun4v/sys/vdc.h	Wed Jun 17 19:20:05 2009 +0800
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -98,6 +98,10 @@
  */
 #define	VD_MAKE_DEV(instance, minor)	((instance << VDCUNIT_SHIFT) | minor)
 
+#define	VDC_EFI_DEV_SET(dev, vdsk, ioctl)	\
+	VDSK_EFI_DEV_SET(dev, vdsk, ioctl,	\
+	    (vdsk)->vdisk_bsize, (vdsk)->vdisk_size)
+
 /*
  * variables controlling how long to wait before timing out and how many
  * retries to attempt before giving up when communicating with vds.
@@ -302,7 +306,9 @@
 	uint32_t	vdisk_media;	/* physical media type of vDisk */
 	uint64_t	vdisk_size;	/* device size in blocks */
 	uint64_t	max_xfer_sz;	/* maximum block size of a descriptor */
-	uint64_t	block_size;	/* device block size used */
+	uint64_t	vdisk_bsize;	/* blk size for the virtual disk */
+	uint32_t	vio_bmask;	/* mask to check vio blk alignment */
+	int		vio_bshift;	/* shift for vio blk conversion */
 	uint64_t	operations;	/* bitmask of ops. server supports */
 	struct dk_cinfo	*cinfo;		/* structure to store DKIOCINFO data */
 	struct dk_minfo	*minfo;		/* structure for DKIOCGMEDIAINFO data */