diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /ReferenceCode/AcpiTables/Dsdt/H8S2113_SIO.ASL | |
download | zprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz |
Diffstat (limited to 'ReferenceCode/AcpiTables/Dsdt/H8S2113_SIO.ASL')
-rw-r--r-- | ReferenceCode/AcpiTables/Dsdt/H8S2113_SIO.ASL | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/ReferenceCode/AcpiTables/Dsdt/H8S2113_SIO.ASL b/ReferenceCode/AcpiTables/Dsdt/H8S2113_SIO.ASL new file mode 100644 index 0000000..e3bbd80 --- /dev/null +++ b/ReferenceCode/AcpiTables/Dsdt/H8S2113_SIO.ASL @@ -0,0 +1,134 @@ +/**************************************************************************; +;* *; +;* Intel Confidential *; +;* *; +;* Intel Corporation - ACPI Reference Code for the Haswell *; +;* Family of Customer Reference Boards. *; +;* *; +;* *; +;* Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved *; +;* This software and associated documentation (if any) is furnished *; +;* under a license and may only be used or copied in accordance *; +;* with the terms of the license. Except as permitted by such *; +;* license, no part of this software or documentation may be *; +;* reproduced, stored in a retrieval system, or transmitted in any *; +;* form or by any means without the express written consent of *; +;* Intel Corporation. *; +;* *; +;* *; +;**************************************************************************/ +/*++ + This file contains a 'Sample Driver' and is licensed as such + under the terms of your license agreement with Intel or your + vendor. This file may be modified by the user, subject to + the additional terms of the license agreement +--*/ +Device(H8S2) +{ + Name(_HID,EISAID("PNP0A05")) + + Name(_UID, 5) + + Method(_STA,0,Serialized) + { + If(LEqual(PFLV,FMBL)) + { + Return(0x000F) + } + + Return(0x0000) + } + + Device(UAR9) // Serial Port UART 9 + { + Name(_HID, EISAID("PNP0501")) + + Name(_UID, 1) + + // + // Status Method for UART 9. + // + Method(_STA, 0, Serialized) + { + If(LAnd(LEqual(PFLV,FMBL), LNotEqual(BID, BHB))) + { + Return(0x000F) + } + + Return(0x0000) + } + + // + // Disable Method for UART 9. + // + // + // Current Resource Setting Method for UART 9. + // + Method(_CRS, 0, Serialized) + { + // + // Create the Buffer that stores the resources to be returned. + // + Name(BUF0, ResourceTemplate() + { + IO(Decode16,0x03F8,0x03F8,0x01,0x08) + IRQNoFlags(){4} + }) + + // + // TO-DO: Need to implement the code updating BUF0 (I/O 0x3F8~0x3FF and IRQ 4 are the default setting) + // according to the real resources assigned when the EC commands are available. + // + + Return(BUF0) + } + + + // + // Set Resource Setting Method for UART 9. + // + Method(_SRS,1,Serialized) + { + CreateByteField(Arg0, 0x02, IOLO) + CreateByteField(Arg0, 0x03, IOHI) + CreateWordField(Arg0, 0x09, IRQW) + + If(LEqual(IOHI, 0x03)) + { + If(LEqual(IOLO, 0xF8)) + { + If(LEqual(IRQW, 4)) + { + Store(1, HSCS) + } + } + } + + // + // TO-DO: Need to implement the code setting the resources based on the arguments when the EC commands are available. + // + } + + // + // D0 Method for COM Port. + // + Method(_PS0,0,Serialized) + { + // + // TO-DO: Need to implement the code put the device on D0 state when the EC commands are available. + // + } + + // + // D3 Method for COM Port. + // + Method(_PS3,0,Serialized) + { + // + // TO-DO: Need to implement the code putting the device on D3 state when the EC commands are available. + // + } + } +} + +
\ No newline at end of file |