de258bf5e6
Headers only patch. osd_protocol.h Contains a C-fied definition of the T10 OSD standard osd_types.h Contains CPU order common used types osd_initiator.h API definition of the osd_initiator library osd_sec.h Contains High level API for the security manager. [Note that checkpatch spews errors on things that are valid in this context and will not be fixed] Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Reviewed-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
41 lines
972 B
C
41 lines
972 B
C
/*
|
|
* 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__ */
|