acdos16.h revision 347:04ff98e42cf2
1239313Sdim/******************************************************************************
2239313Sdim *
3239313Sdim * Name: acdos16.h - DOS specific defines, etc.
4239313Sdim *       $Revision: 12 $
5239313Sdim *
6239313Sdim *****************************************************************************/
7239313Sdim
8239313Sdim/******************************************************************************
9239313Sdim *
10239313Sdim * 1. Copyright Notice
11239313Sdim *
12239313Sdim * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
13249423Sdim * All rights reserved.
14249423Sdim *
15239313Sdim * 2. License
16249423Sdim *
17239313Sdim * 2.1. This is your license from Intel Corp. under its intellectual property
18239313Sdim * rights.  You may have additional license terms from the party that provided
19239313Sdim * you this software, covering your right to use that party's intellectual
20239313Sdim * property rights.
21239313Sdim *
22239313Sdim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23239313Sdim * copy of the source code appearing in this file ("Covered Code") an
24251662Sdim * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25251662Sdim * base code distributed originally by Intel ("Original Intel Code") to copy,
26251662Sdim * make derivatives, distribute, use and display any portion of the Covered
27251662Sdim * Code in any form, with the right to sublicense such rights; and
28239313Sdim *
29239313Sdim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30239313Sdim * license (with the right to sublicense), under only those claims of Intel
31239313Sdim * patents that are infringed by the Original Intel Code, to make, use, sell,
32239313Sdim * offer to sell, and import the Covered Code and derivative works thereof
33239313Sdim * solely to the minimum extent necessary to exercise the above copyright
34239313Sdim * license, and in no event shall the patent license extend to any additions
35239313Sdim * to or modifications of the Original Intel Code.  No other license or right
36239313Sdim * is granted directly or by implication, estoppel or otherwise;
37239313Sdim *
38239313Sdim * The above copyright and patent license is granted only if the following
39239313Sdim * conditions are met:
40239313Sdim *
41239313Sdim * 3. Conditions
42239313Sdim *
43239313Sdim * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44239313Sdim * Redistribution of source code of any substantial portion of the Covered
45239313Sdim * Code or modification with rights to further distribute source must include
46239313Sdim * the above Copyright Notice, the above License, this list of Conditions,
47239313Sdim * and the following Disclaimer and Export Compliance provision.  In addition,
48239313Sdim * Licensee must cause all Covered Code to which Licensee contributes to
49239313Sdim * contain a file documenting the changes Licensee made to create that Covered
50239313Sdim * Code and the date of any change.  Licensee must include in that file the
51239313Sdim * documentation of any changes made by any predecessor Licensee.  Licensee
52239313Sdim * must include a prominent statement that the modification is derived,
53239313Sdim * directly or indirectly, from Original Intel Code.
54239313Sdim *
55239313Sdim * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56239313Sdim * Redistribution of source code of any substantial portion of the Covered
57239313Sdim * Code or modification without rights to further distribute source must
58239313Sdim * include the following Disclaimer and Export Compliance provision in the
59239313Sdim * documentation and/or other materials provided with distribution.  In
60239313Sdim * addition, Licensee may not authorize further sublicense of source of any
61239313Sdim * portion of the Covered Code, and must include terms to the effect that the
62239313Sdim * license from Licensee to its licensee is limited to the intellectual
63239313Sdim * property embodied in the software Licensee provides to its licensee, and
64239313Sdim * not to intellectual property embodied in modifications its licensee may
65239313Sdim * make.
66239313Sdim *
67239313Sdim * 3.3. Redistribution of Executable. Redistribution in executable form of any
68251662Sdim * substantial portion of the Covered Code or modification must reproduce the
69239313Sdim * above Copyright Notice, and the following Disclaimer and Export Compliance
70239462Sdim * provision in the documentation and/or other materials provided with the
71263508Sdim * distribution.
72239313Sdim *
73239313Sdim * 3.4. Intel retains all right, title, and interest in and to the Original
74239313Sdim * Intel Code.
75239313Sdim *
76239313Sdim * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77239313Sdim * Intel shall be used in advertising or otherwise to promote the sale, use or
78239313Sdim * other dealings in products derived from or relating to the Covered Code
79239313Sdim * without prior written authorization from Intel.
80251662Sdim *
81239313Sdim * 4. Disclaimer and Export Compliance
82239313Sdim *
83239313Sdim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84239313Sdim * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85239313Sdim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86239313Sdim * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87239313Sdim * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88239313Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89239313Sdim * PARTICULAR PURPOSE.
90239313Sdim *
91239313Sdim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92239313Sdim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93239313Sdim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94239313Sdim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95239313Sdim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96239313Sdim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97239313Sdim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98239313Sdim * LIMITED REMEDY.
99239313Sdim *
100239313Sdim * 4.3. Licensee shall not export, either directly or indirectly, any of this
101239313Sdim * software or system incorporating such software without first obtaining any
102239313Sdim * required license or other approval from the U. S. Department of Commerce or
103239313Sdim * any other agency or department of the United States Government.  In the
104239313Sdim * event Licensee exports any such software from the United States or
105239313Sdim * re-exports any such software from a foreign destination, Licensee shall
106239313Sdim * ensure that the distribution and export/re-export of the software is in
107239313Sdim * compliance with all laws, regulations, orders, or other restrictions of the
108239313Sdim * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109239313Sdim * any of its subsidiaries will export/re-export any technical data, process,
110239313Sdim * software, or service, directly or indirectly, to any country for which the
111239313Sdim * United States government or any agency thereof requires an export license,
112239313Sdim * other governmental approval, or letter of assurance, without first obtaining
113239313Sdim * such license, approval or letter.
114239313Sdim *
115239313Sdim *****************************************************************************/
116239313Sdim
117239313Sdim#ifndef __ACDOS16_H__
118239313Sdim#define __ACDOS16_H__
119239313Sdim
120239313Sdim#define ACPI_USE_STANDARD_HEADERS
121239313Sdim#define ACPI_MACHINE_WIDTH          16
122239313Sdim
123239313Sdim/*
124239313Sdim * Calling conventions:
125239313Sdim *
126239313Sdim * ACPI_SYSTEM_XFACE        - Interfaces to host OS (handlers, threads)
127239313Sdim * ACPI_EXTERNAL_XFACE      - External ACPI interfaces
128251662Sdim * ACPI_INTERNAL_XFACE      - Internal ACPI interfaces
129251662Sdim * ACPI_INTERNAL_VAR_XFACE  - Internal variable-parameter list interfaces
130243830Sdim */
131239313Sdim#define ACPI_SYSTEM_XFACE           __cdecl
132243830Sdim#define ACPI_EXTERNAL_XFACE
133239313Sdim#define ACPI_INTERNAL_XFACE
134239313Sdim#define ACPI_INTERNAL_VAR_XFACE     __cdecl
135239313Sdim
136239313Sdim#define ACPI_ASM_MACROS
137239313Sdim#define BREAKPOINT3
138239313Sdim#define ACPI_DISABLE_IRQS()
139239313Sdim#define ACPI_ENABLE_IRQS()
140239313Sdim#define halt()
141239313Sdim#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)
142239313Sdim#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq)
143239313Sdim
144239462Sdim
145243830Sdim/* This macro is used to tag functions as "printf-like" because
146239462Sdim * some compilers can catch printf format string problems. MSVC
147239313Sdim * doesn't, so this is proprocessed away.
148239313Sdim */
149239313Sdim#define ACPI_PRINTF_LIKE_FUNC
150251662Sdim
151251662Sdim/* Some compilers complain about unused variables. Sometimes we don't want to
152243830Sdim * use all the variables (for example, _AcpiModuleName). This allows us
153239313Sdim * to to tell the compiler warning in a per-variable manner that a variable
154239313Sdim * is unused. However, MSVC doesn't do this.
155243830Sdim */
156243830Sdim#define ACPI_UNUSED_VAR
157243830Sdim
158239462Sdim
159239313Sdim#endif /* __ACDOS16_H__ */
160243830Sdim