summaryrefslogtreecommitdiff
path: root/include/scsi/osd_types.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2009-02-03 12:07:16 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2009-02-03 12:07:16 +1100
commitab9e4ebc3cc6524255b4fd7b342a8a82f2504c2f (patch)
treeff318d1136959d268784ffe58e8b7e68a878eaf4 /include/scsi/osd_types.h
parentb3406c1f450c1fa5836fe8f15fd2f48326acb8c9 (diff)
parentf09b7290fba1ce49a005957a9d88c78ab9a43f9a (diff)
Merge commit 'scsi/master'
Diffstat (limited to 'include/scsi/osd_types.h')
-rw-r--r--include/scsi/osd_types.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/scsi/osd_types.h b/include/scsi/osd_types.h
new file mode 100644
index 000000000000..3f5e88cc75c0
--- /dev/null
+++ b/include/scsi/osd_types.h
@@ -0,0 +1,40 @@
+/*
+ * osd_types.h - Types and constants which are not part of the protocol.
+ *
+ * Copyright (C) 2008 Panasas Inc. All rights reserved.
+ *
+ * Authors:
+ * Boaz Harrosh <bharrosh@panasas.com>
+ * Benny Halevy <bhalevy@panasas.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ *
+ * Contains types and constants that are implementation specific and are
+ * used by more than one part of the osd library.
+ * (Eg initiator/target/security_manager/...)
+ */
+#ifndef __OSD_TYPES_H__
+#define __OSD_TYPES_H__
+
+struct osd_systemid {
+ u8 data[OSD_SYSTEMID_LEN];
+};
+
+typedef u64 __bitwise osd_id;
+
+struct osd_obj_id {
+ osd_id partition;
+ osd_id id;
+};
+
+static const struct __weak osd_obj_id osd_root_object = {0, 0};
+
+struct osd_attr {
+ u32 attr_page;
+ u32 attr_id;
+ u16 len; /* byte count of operand */
+ void *val_ptr; /* in network order */
+};
+
+#endif /* ndef __OSD_TYPES_H__ */