source: gpfs_3.1_ker2.6.20/lpp/mmfs/src/gpl-linux/Shark-gpl.h @ 177

Last change on this file since 177 was 16, checked in by rock, 17 years ago
File size: 3.3 KB
RevLine 
[16]1/***************************************************************************
2 *
3 * Copyright (C) 2001 International Business Machines
4 * All rights reserved.
5 *
6 * This file is part of the GPFS mmfslinux kernel module.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 *  1. Redistributions of source code must retain the above copyright notice,
13 *     this list of conditions and the following disclaimer.
14 *  2. Redistributions in binary form must reproduce the above copyright
15 *     notice, this list of conditions and the following disclaimer in the
16 *     documentation and/or other materials provided with the distribution.
17 *  3. The name of the author may not be used to endorse or promote products
18 *     derived from this software without specific prior written
19 *     permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *************************************************************************** */
33/* @(#)07       1.16  src/avs/fs/mmfs/ts/kernext/gpl-linux/Shark-gpl.h, mmfs, avs_rgpfs24, rgpfs240610b 9/9/04 10:19:51 */
34/*
35 * Portability layer equivalent of <Shark.h>.
36 *
37 */
38
39#ifndef _h_shark_gpl
40#define _h_shark_gpl
41
42/* Indicate portability source code */
43#define GPFS_GPL
44//#include "linux_config.h"
45
46/* Try to ensure that this is the first file included in source code */
47#ifdef _KERNEL
48#if defined(_LINUX_TYPES_H) || defined(_LINUX_KERNEL_H) || defined(_LINUX_MODULE_H)
49#error Shark-gpl.h must be included first; kernel file already seen
50#endif
51#else  /* !_KERNEL */
52#ifdef _FEATURES_H
53#error Shark-gpl.h must be included first; features.h already seen
54#endif
55#endif /* _KERNEL */
56
57#ifdef _KERNEL
58/* errno needs to be predeclared for kernel code */
59extern int errno;
60
61/* Include <linux/types.h> in kernel code for cxiTypes.h */
62#include <linux/types.h>
63/* need statfs stuff (fsid_t) */
64#include <linux/vfs.h>
65#endif /* _KERNEL */
66#include <cxiTypes.h>
67
68/* Avoid various AIX specific header includes */
69#define _H_BUF
70#define _H_XMEM
71#define _H_SLEEP
72#define _H_LOCKL
73#define _H_LOCK_DEFINE
74
75#ifdef _KERNEL
76/* Virtual memory page size.  Used for aligning I/O buffers. */
77#include <asm/page.h>     /* PAGE_SIZE */
78
79/* Note that the page size can be adjusted for the IA64 Linux kernel,
80 * but we can't allow folks to do this with GPFS. */
81#ifdef GPFS_ARCH_IA64
82#ifndef CONFIG_IA64_PAGE_SIZE_16KB
83#error Linux kernel must use CONFIG_IA64_PAGE_SIZE_16KB with GPFS
84#endif
85#endif /* GPFS_ARCH_IA64 */
86#endif /* _KERNEL */
87
88
89#ifndef NOOP
90#define NOOP ((void)0)
91#endif
92#endif /* _h_shark_gpl */
Note: See TracBrowser for help on using the repository browser.