mm-only debug patch...
[mmotm.git] / include / scsi / osd_types.h
blob3f5e88cc75c0b8a1d54b25902e82017f5bfd51f5
1 /*
2 * osd_types.h - Types and constants which are not part of the protocol.
4 * Copyright (C) 2008 Panasas Inc. All rights reserved.
6 * Authors:
7 * Boaz Harrosh <bharrosh@panasas.com>
8 * Benny Halevy <bhalevy@panasas.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2
13 * Contains types and constants that are implementation specific and are
14 * used by more than one part of the osd library.
15 * (Eg initiator/target/security_manager/...)
17 #ifndef __OSD_TYPES_H__
18 #define __OSD_TYPES_H__
20 struct osd_systemid {
21 u8 data[OSD_SYSTEMID_LEN];
24 typedef u64 __bitwise osd_id;
26 struct osd_obj_id {
27 osd_id partition;
28 osd_id id;
31 static const struct __weak osd_obj_id osd_root_object = {0, 0};
33 struct osd_attr {
34 u32 attr_page;
35 u32 attr_id;
36 u16 len; /* byte count of operand */
37 void *val_ptr; /* in network order */
40 #endif /* ndef __OSD_TYPES_H__ */