Whamcloud - gitweb
LU-14487 modules: remove references to Sun Trademark.
[fs/lustre-release.git] / lustre / obdecho / echo_internal.h
index fdaa43c..158fc97 100644 (file)
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, Whamcloud, Inc.
+ * Copyright (c) 2012, 2014 Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  *
  * lustre/obdecho/echo_internal.h
  */
 /* block size to use for data verification */
 #define OBD_ECHO_BLOCK_SIZE    (4<<10)
 
-#ifdef __KERNEL__
-# ifdef HAVE_SERVER_SUPPORT
-extern struct obd_ops echo_obd_ops;
+#ifdef HAVE_SERVER_SUPPORT
+extern const struct obd_ops echo_obd_ops;
+extern struct lu_device_type echo_srv_type;
 int echo_persistent_pages_init(void);
 void echo_persistent_pages_fini(void);
-# endif
-#else /* ! __KERNEL__ */
-/* Kludge here, define some functions and macros needed by liblustre -jay */
+#endif /* HAVE_SERVER_SUPPORT */
 
-#define READ    0
-#define WRITE   1
+/* mapping value to tell page is not encrypted */
+#define ECHO_MAPPING_UNENCRYPTED ((void *)1)
 
-#endif /* ifdef __KERNEL__ */
+/* debug.c */
+int block_debug_setup(void *addr, int len, u64 off, u64 id);
+int block_debug_check(char *who, void *addr, int len, u64 off, u64 id);
 
 #endif