The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/acpi/acpi_ecreg.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: acpi_ecreg.h,v 1.1 2001/09/29 05:34:23 thorpej Exp $   */
    2 
    3 /******************************************************************************
    4  *
    5  * 1. Copyright Notice
    6  *
    7  * Some or all of this work - Copyright (c) 1999, Intel Corp.  All rights
    8  * reserved.
    9  *
   10  * 2. License
   11  *
   12  * 2.1. This is your license from Intel Corp. under its intellectual property
   13  * rights.  You may have additional license terms from the party that provided
   14  * you this software, covering your right to use that party's intellectual
   15  * property rights.
   16  *
   17  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
   18  * copy of the source code appearing in this file ("Covered Code") an
   19  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
   20  * base code distributed originally by Intel ("Original Intel Code") to copy,
   21  * make derivatives, distribute, use and display any portion of the Covered
   22  * Code in any form, with the right to sublicense such rights; and
   23  *
   24  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
   25  * license (with the right to sublicense), under only those claims of Intel
   26  * patents that are infringed by the Original Intel Code, to make, use, sell,
   27  * offer to sell, and import the Covered Code and derivative works thereof
   28  * solely to the minimum extent necessary to exercise the above copyright
   29  * license, and in no event shall the patent license extend to any additions
   30  * to or modifications of the Original Intel Code.  No other license or right
   31  * is granted directly or by implication, estoppel or otherwise;
   32  *
   33  * The above copyright and patent license is granted only if the following
   34  * conditions are met:
   35  *
   36  * 3. Conditions 
   37  *
   38  * 3.1. Redistribution of Source with Rights to Further Distribute Source.  
   39  * Redistribution of source code of any substantial portion of the Covered
   40  * Code or modification with rights to further distribute source must include
   41  * the above Copyright Notice, the above License, this list of Conditions,
   42  * and the following Disclaimer and Export Compliance provision.  In addition,
   43  * Licensee must cause all Covered Code to which Licensee contributes to
   44  * contain a file documenting the changes Licensee made to create that Covered
   45  * Code and the date of any change.  Licensee must include in that file the
   46  * documentation of any changes made by any predecessor Licensee.  Licensee 
   47  * must include a prominent statement that the modification is derived,
   48  * directly or indirectly, from Original Intel Code.
   49  *
   50  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.  
   51  * Redistribution of source code of any substantial portion of the Covered
   52  * Code or modification without rights to further distribute source must
   53  * include the following Disclaimer and Export Compliance provision in the
   54  * documentation and/or other materials provided with distribution.  In
   55  * addition, Licensee may not authorize further sublicense of source of any
   56  * portion of the Covered Code, and must include terms to the effect that the
   57  * license from Licensee to its licensee is limited to the intellectual
   58  * property embodied in the software Licensee provides to its licensee, and
   59  * not to intellectual property embodied in modifications its licensee may
   60  * make.
   61  *
   62  * 3.3. Redistribution of Executable. Redistribution in executable form of any
   63  * substantial portion of the Covered Code or modification must reproduce the
   64  * above Copyright Notice, and the following Disclaimer and Export Compliance
   65  * provision in the documentation and/or other materials provided with the
   66  * distribution.
   67  *
   68  * 3.4. Intel retains all right, title, and interest in and to the Original
   69  * Intel Code.
   70  *
   71  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
   72  * Intel shall be used in advertising or otherwise to promote the sale, use or
   73  * other dealings in products derived from or relating to the Covered Code
   74  * without prior written authorization from Intel.
   75  *
   76  * 4. Disclaimer and Export Compliance
   77  *
   78  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
   79  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
   80  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
   81  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
   82  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
   83  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
   84  * PARTICULAR PURPOSE. 
   85  *
   86  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
   87  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
   88  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
   89  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
   90  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
   91  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
   92  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
   93  * LIMITED REMEDY.
   94  *
   95  * 4.3. Licensee shall not export, either directly or indirectly, any of this
   96  * software or system incorporating such software without first obtaining any
   97  * required license or other approval from the U. S. Department of Commerce or
   98  * any other agency or department of the United States Government.  In the
   99  * event Licensee exports any such software from the United States or
  100  * re-exports any such software from a foreign destination, Licensee shall
  101  * ensure that the distribution and export/re-export of the software is in
  102  * compliance with all laws, regulations, orders, or other restrictions of the
  103  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
  104  * any of its subsidiaries will export/re-export any technical data, process,
  105  * software, or service, directly or indirectly, to any country for which the
  106  * United States government or any agency thereof requires an export license,
  107  * other governmental approval, or letter of assurance, without first obtaining
  108  * such license, approval or letter.
  109  *
  110  *****************************************************************************/
  111 
  112 /*
  113  * EC_COMMAND:
  114  * -----------
  115  */
  116 typedef UINT8                           EC_COMMAND;
  117 
  118 #define EC_COMMAND_UNKNOWN              ((EC_COMMAND) 0x00)
  119 #define EC_COMMAND_READ                 ((EC_COMMAND) 0x80)
  120 #define EC_COMMAND_WRITE                ((EC_COMMAND) 0x81)
  121 #define EC_COMMAND_BURST_ENABLE         ((EC_COMMAND) 0x82)
  122 #define EC_COMMAND_BURST_DISABLE        ((EC_COMMAND) 0x83)
  123 #define EC_COMMAND_QUERY                ((EC_COMMAND) 0x84)
  124 
  125 /* 
  126  * EC_STATUS:
  127  * ----------
  128  * The encoding of the EC status register is illustrated below.
  129  * Note that a set bit (1) indicates the property is TRUE
  130  * (e.g. if bit 0 is set then the output buffer is full).
  131  * +-+-+-+-+-+-+-+-+
  132  * |7|6|5|4|3|2|1|0|    
  133  * +-+-+-+-+-+-+-+-+
  134  *  | | | | | | | |
  135  *  | | | | | | | +- Output Buffer Full?
  136  *  | | | | | | +--- Input Buffer Full?
  137  *  | | | | | +----- <reserved>
  138  *  | | | | +------- Data Register is Command Byte?
  139  *  | | | +--------- Burst Mode Enabled?
  140  *  | | +----------- SCI Event?
  141  *  | +------------- SMI Event?
  142  *  +--------------- <Reserved>
  143  *
  144  */
  145 typedef UINT8                           EC_STATUS;
  146 
  147 #define EC_FLAG_OUTPUT_BUFFER           ((EC_STATUS) 0x01)
  148 #define EC_FLAG_INPUT_BUFFER            ((EC_STATUS) 0x02)
  149 #define EC_FLAG_BURST_MODE              ((EC_STATUS) 0x10)
  150 #define EC_FLAG_SCI                     ((EC_STATUS) 0x20)
  151 
  152 /*
  153  * EC_EVENT:
  154  * ---------
  155  */
  156 typedef UINT8                           EC_EVENT;
  157 
  158 #define EC_EVENT_UNKNOWN                ((EC_EVENT) 0x00)
  159 #define EC_EVENT_OUTPUT_BUFFER_FULL     ((EC_EVENT) 0x01)
  160 #define EC_EVENT_INPUT_BUFFER_EMPTY     ((EC_EVENT) 0x02)
  161 #define EC_EVENT_SCI                    ((EC_EVENT) 0x20)

Cache object: dfe6378e8aca77f3ebf77123c9ece141


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.