summaryrefslogtreecommitdiff
path: root/Board/IO/F81866/ACPI/Uart2.ASL
diff options
context:
space:
mode:
authorraywu <raywu@aaeon.com>2018-06-15 10:48:05 +0800
committerraywu <raywu@aaeon.com>2018-06-15 10:48:05 +0800
commita2303a031a4a69b505a704b6e716a81c8e70cb21 (patch)
tree0c972eb763d109968cba6e4e5c88d16bb4347640 /Board/IO/F81866/ACPI/Uart2.ASL
parent72754fac5c1d3154722de813afe19015d21fa34a (diff)
downloadzprj-a2303a031a4a69b505a704b6e716a81c8e70cb21.tar.xz
Add Modules
1 > 4.6.3.5_SIO_F81866_A5 2 > 4.6.3_SIO_F81216_Sec_A9
Diffstat (limited to 'Board/IO/F81866/ACPI/Uart2.ASL')
-rw-r--r--Board/IO/F81866/ACPI/Uart2.ASL122
1 files changed, 122 insertions, 0 deletions
diff --git a/Board/IO/F81866/ACPI/Uart2.ASL b/Board/IO/F81866/ACPI/Uart2.ASL
new file mode 100644
index 0000000..f5729c8
--- /dev/null
+++ b/Board/IO/F81866/ACPI/Uart2.ASL
@@ -0,0 +1,122 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
+//
+//*************************************************************************
+// $Header: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart2.ASL 1 7/20/11 4:22a Kasalinyi $
+//
+// $Revision: 1 $
+//
+// $Date: 7/20/11 4:22a $
+//*************************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart2.ASL $
+//
+// 1 7/20/11 4:22a Kasalinyi
+// [Category] Improvement
+// [Description] Initial Porting
+// [Files] DeviceASL.cif
+// FDC.ASL
+// LPTE.ASL
+// PS2kb.asl
+// PS2ms.asl
+// Uart1.ASL
+// Uart2.ASL
+// Uart3.ASL
+// Uart4.ASL
+// Uart5.ASL
+// Uart6.ASL
+// SIOH.ASL
+//
+// 3 3/21/11 9:43p Mikes
+// Clean code
+//
+//*************************************************************************
+//<AMI_FHDR_START>
+//
+// Name: <UART2.ASL>
+//
+// Description: Define ACPI method or namespce For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+// UART2 //
+// Category # :0x01
+Device(UAR2) {
+ Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
+ //AMI_TODO:If UAR2 support CIR/IR mode, please use below method.
+ //In method UHID(), it should return HID by device mode registers.
+ //Method(_HID, 0) {Return(^^SIO1.UHID(1))} //PnP Device ID
+
+ Name(_UID, 2) //Generic ID for COMB
+ Method(_STA, 0) {Return(^^SIO1.DSTA(1))} //Get UART status
+ Method(_DIS, 0) {^^SIO1.DCNT(1, 0)} //Disable UART
+
+ Method(_CRS, 0) {Return(^^SIO1.DCRS(1, 0))} //Get UART current resources
+ Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 1)} //Set UART recources
+ //AMI_TODO:If use share mode, replace with below method.
+ //Method(_CRS, 0) {Return(^^SIO1.DCR3(1, 0))}
+ //Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 1)}
+
+//------------------------------------------------------------------------
+// UART2 Possible Resources
+//------------------------------------------------------------------------
+//NOTE: _PRS MUST be the NAME not a METHOD object
+//to have GENERICSIO.C working right!
+//-----------------------------------------------------------------------
+ Name(_PRS, ResourceTemplate() {
+ StartDependentFn(0, 0) {
+ IO(Decode16, 0x2F8, 0x2F8, 1, 8)
+ IRQNoFlags() {3}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3F8, 0x3F8, 1, 8)
+ IRQNoFlags() {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2F8, 0x2F8, 1, 8)
+ IRQNoFlags() {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3E8, 0x3E8, 1, 8)
+ IRQNoFlags() {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E8, 0x2E8, 1, 8)
+ IRQNoFlags() {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ EndDependentFn()
+ })
+
+} // End Of UAR2
+//-----------------------------------------------------------------------
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************