summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/xen/io/xdf.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/xen/io/xdf.h')
-rw-r--r--usr/src/uts/common/xen/io/xdf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/uts/common/xen/io/xdf.h b/usr/src/uts/common/xen/io/xdf.h
index f2a2a82dd5..8010e3817b 100644
--- a/usr/src/uts/common/xen/io/xdf.h
+++ b/usr/src/uts/common/xen/io/xdf.h
@@ -55,6 +55,11 @@ extern "C" {
#define XB_MAX_XFER (XB_MAX_SEGLEN * BLKIF_MAX_SEGMENTS_PER_REQUEST)
#define XB_MAXPHYS (XB_MAX_XFER * BLKIF_RING_SIZE)
+/* Number of sectors per segement */
+#define XB_NUM_SECTORS_PER_SEG (PAGESIZE / XB_BSIZE)
+/* sectors are number 0 through XB_NUM_SECTORS_PER_SEG - 1 */
+#define XB_LAST_SECTOR_IN_SEG (XB_NUM_SECTORS_PER_SEG - 1)
+
/*
* Slice for absolute disk transaction.