summaryrefslogtreecommitdiff
path: root/Board/IO/F81866/ACPI
diff options
context:
space:
mode:
Diffstat (limited to 'Board/IO/F81866/ACPI')
-rw-r--r--Board/IO/F81866/ACPI/DeviceASL.cif19
-rw-r--r--Board/IO/F81866/ACPI/FDC.ASL175
-rw-r--r--Board/IO/F81866/ACPI/LPTE.ASL215
-rw-r--r--Board/IO/F81866/ACPI/PS2kb.asl112
-rw-r--r--Board/IO/F81866/ACPI/PS2ms.asl128
-rw-r--r--Board/IO/F81866/ACPI/SIOH.ASL84
-rw-r--r--Board/IO/F81866/ACPI/Uart1.ASL121
-rw-r--r--Board/IO/F81866/ACPI/Uart2.ASL122
-rw-r--r--Board/IO/F81866/ACPI/Uart3.ASL123
-rw-r--r--Board/IO/F81866/ACPI/Uart4.ASL117
-rw-r--r--Board/IO/F81866/ACPI/Uart5.ASL117
-rw-r--r--Board/IO/F81866/ACPI/Uart6.ASL117
12 files changed, 1450 insertions, 0 deletions
diff --git a/Board/IO/F81866/ACPI/DeviceASL.cif b/Board/IO/F81866/ACPI/DeviceASL.cif
new file mode 100644
index 0000000..13fa357
--- /dev/null
+++ b/Board/IO/F81866/ACPI/DeviceASL.cif
@@ -0,0 +1,19 @@
+<component>
+ name = "F81866 Device ASL Files"
+ category = ModulePart
+ LocalRoot = "Board\IO\F81866\ACPI\"
+ RefName = "F81866ASLFiles"
+[files]
+"FDC.ASL"
+"LPTE.ASL"
+"PS2kb.asl"
+"PS2ms.asl"
+"Uart1.ASL"
+"Uart2.ASL"
+"Uart3.ASL"
+"Uart4.ASL"
+"Uart5.ASL"
+"Uart6.ASL"
+"SIOH.ASL"
+<endComponent>
+
diff --git a/Board/IO/F81866/ACPI/FDC.ASL b/Board/IO/F81866/ACPI/FDC.ASL
new file mode 100644
index 0000000..1452e11
--- /dev/null
+++ b/Board/IO/F81866/ACPI/FDC.ASL
@@ -0,0 +1,175 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (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/FDC.ASL 2 7/04/12 3:40a Elviscai $
+//
+// $Revision: 2 $
+//
+// $Date: 7/04/12 3:40a $
+//*************************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/FDC.ASL $
+//
+// 2 7/04/12 3:40a Elviscai
+// [TAG] EIP88939
+// [Category] Bug Fix
+// [Solution] Update _FDE from Package to Buffer to fix IASL5 compile
+// issue
+//
+// 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
+//
+// 2 3/21/11 9:43p Mikes
+// Clean code
+//
+//*************************************************************************
+//<AMI_FHDR_START>
+//
+// Name: <FDC.ASL>
+//
+// Description: Define ACPI method or namespce For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+
+//**********************************************************************;
+// Floppy Disk Controller - FDC //
+//**********************************************************************;
+// Category # :0x03
+Device(FDC) {
+ Name(_HID, EISAID("PNP0700")) //PnP Device ID
+// _FDE : 5 Dword Package (1-4 are for each FDD present, #5 is for optional tape drive)
+// 0 - Device is not present
+// 1 - Device is Present
+// 2 - Device is never Present
+// >2- Reserved
+// Tape drive is never present
+ Name(_FDE, Buffer(){1,0,2,2,2}) //_FDE - Floppy Disk Enumerate
+
+ Method(_STA, 0) {Return(^^SIO1.DSTA(3))} //Get status
+
+ Method(_DIS, 0) {^^SIO1.DCNT(3, 0)} //Disable FDC
+
+ Method(_CRS, 0) { //Return FDC Current Resources
+ ^^SIO1.DCRS(3, 1) //Fill in Return buffer with DMA, Irq and 1st IO
+ //Move resources from CRS1 ro CRS2 buffer
+ Store(^^SIO1.IRQM, ^^SIO1.IRQE) //IRQ mask 0x1
+ Store(^^SIO1.DMAM, ^^SIO1.DMAE) //DMA 0x04
+ Store(^^SIO1.IO11, ^^SIO1.IO21) //1st IO Range Min Base Word 0x8
+ Store(^^SIO1.IO12, ^^SIO1.IO22) // Max Base Word 0xa
+ Store(6, ^^SIO1.LEN2)
+
+ Add(^^SIO1.IO21, 0x07, ^^SIO1.IO31) //2nd IO range
+ Store(^^SIO1.IO31, ^^SIO1.IO32)
+ Store(1, ^^SIO1.LEN3)
+ Return(^^SIO1.CRS2)
+ }
+
+//------------------------------------------------------------------------
+//NOTE: _PRS MUST be the NAME not a METHOD object
+//to have GENERICSIO.C working right!
+//-----------------------------------------------------------------------
+ Name(_PRS, ResourceTemplate() { //FDC Possible Resources
+ StartDependentFn(0, 0) {
+ IO(Decode16, 0x3F0, 0x3F0, 1, 6)
+// IO(Decode16, 0x3F7, 0x3F7, 1, 1)//0x3F6 port reserved for Legacy IDE
+ IRQNoFlags() {6}
+ DMA(Compatibility, NotBusMaster, Transfer8) {2}
+ }
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x3F0, 0x3F0, 1, 6)
+// IO(Decode16, 0x3F7, 0x3F7, 1, 1)//0x3F6 port reserved for Legacy IDE
+// IRQNoFlags() {3,4,5,6,7,10,11,12}
+// DMA(Compatibility, NotBusMaster, Transfer8) {2,3}
+// }
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x370, 0x370, 1, 6)
+// IO(Decode16, 0x377, 0x377, 1, 1)//0x376 port reserved for Legacy IDE
+// IRQNoFlags() {3,4,5,6,7,10,11,12}
+// DMA(Compatibility, NotBusMaster, Transfer8) {2,3}
+// }
+ EndDependentFn()
+ })
+
+ Method(_SRS, 1) { //Set resources/Enable FDC
+ ^^SIO1.DSRS(Arg0, 3)
+
+ CreateWordField(Arg0, ^^SIO1.IRQ2._INT, IRQE) //IRQ mask 0x1
+ CreateByteField(Arg0, ^^SIO1.DMA2._DMA, DMAE) //DMA 0x4
+
+ ^^SIO1.ENFG(^^SIO1.CGLD(3)) //Enter Config Mode, Select LDN
+ // Set IRQ
+ If(IRQE){
+ FindSetRightBit(IRQE, Local0)
+ Subtract(Local0, 1, ^^SIO1.INTR)
+ }Else{
+ Store(0, ^^SIO1.INTR) // No IRQ used
+ }
+ // Set DMA
+ If(DMAE){
+ FindSetRightBit(DMAE, Local0)
+ Subtract(Local0, 1, ^^SIO1.DMCH)
+ }Else{
+ Store(4, ^^SIO1.DMCH) // No DMA
+ }
+ ^^SIO1.EXFG() //Exit Config Mode
+ }
+
+
+//---------Power Resources for FDD -------------------------
+/*
+ PowerResource(FDDP, 0, 0) { // SystemLevel Parameter=0,
+ Method(_STA, 0) {
+ Return(FDCP) // Get Power Status
+ } // end of _STA
+ Method(_ON) {
+ Store(1, FDCP) // Power on
+ } // end of _ON
+ Method(_OFF){
+ Store(0, FDCP) // Power off
+ } // end of _OFF
+ }
+ Name(_PR0, Package(){FDDP}) // Reference to PowerResources
+*/
+} // End Of FDC0
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
+
diff --git a/Board/IO/F81866/ACPI/LPTE.ASL b/Board/IO/F81866/ACPI/LPTE.ASL
new file mode 100644
index 0000000..5bbf0f8
--- /dev/null
+++ b/Board/IO/F81866/ACPI/LPTE.ASL
@@ -0,0 +1,215 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (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/LPTE.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/LPTE.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: <LPTE.ASL>
+//
+// Description: Define ACPI method or namespce For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+
+//**********************************************************************;
+// Parallel port - LPT or ECP(Extended mode)
+//**********************************************************************;
+// Category # :0x02
+Device(LPTE) {
+ Method(_HID, 0){ //PnP Device ID
+ If(^^SIO1.LPTM(2)) //Get LPT mode : 0-plain LPT, non Zero-ECP mode
+ {Return(EISAID("PNP0401"))} //PnP ID for ECP Port
+ Else
+ {Return(EISAID("PNP0400"))} //PnP ID for LPT Port
+ }
+
+ Method(_STA, 0) {Return(^^SIO1.DSTA(2))}//Get Device status
+
+ Method(_DIS, 0) {^^SIO1.DCNT(2,0)} //Disable LPT, arg0 - LDN, arg1 - 1(disable)
+
+ Method(_CRS, 0) { //Get LPT current resources
+ ^^SIO1.DCRS(2, 1) //Fill in Return buffer with DMA, Irq and 1st IO
+
+ //adjust base/aligment size if base ports are 0x3bc/0x7bc
+ If(And(^^SIO1.IO11, 0x04)) {
+ Store(0x04, ^^SIO1.LEN1)
+ }
+
+ If(^^SIO1.LPTM(2)){ //Extended LPT mode ?
+ //Move resources from CRS1 ro CRS2 buffer
+ Store(^^SIO1.IRQM, ^^SIO1.IRQE) //IRQ mask 0x1
+ Store(^^SIO1.DMAM, ^^SIO1.DMAE) //DMA 0x04
+
+ Store(^^SIO1.IO11, ^^SIO1.IO21) //1st IO Range Min Base Word 0x8
+ Store(^^SIO1.IO12, ^^SIO1.IO22) // Max Base Word 0xa
+ Store(^^SIO1.LEN1, ^^SIO1.LEN2)
+
+ Add(^^SIO1.IO21, 0x400, ^^SIO1.IO31)//2nd IO range
+ Store(^^SIO1.IO31, ^^SIO1.IO32)
+ Store(^^SIO1.LEN2, ^^SIO1.LEN3)
+ Return(^^SIO1.CRS2)
+ }else{
+ Return(^^SIO1.CRS1)
+ }
+ }
+
+ Method(_SRS, 1) { //Set LPT resources
+ ^^SIO1.DSRS(Arg0, 2)
+ }
+
+ Method(_PRS, 0) { //Return Possible resources
+ If(^^SIO1.LPTM(2)) //Get LPT mode : 0-plain LPT, non Zero-ECP mode
+ {Return(EPPR)} //ECP mode resources
+ Else
+ {Return(LPPR)} //LPT mode resources
+ }
+
+
+//-----------------------------------------------------------------------
+// LPT Possible Resources
+//-----------------------------------------------------------------------
+//------------------------------------------------------------------------
+//NOTE: _PRS MUST be the NAME not a METHOD object
+//to have GENERICSIO.C working right!
+//-----------------------------------------------------------------------
+ Name(LPPR, ResourceTemplate(){
+// IRQ
+ StartDependentFn(0,0) {
+ IO(Decode16, 0x378, 0x378, 1, 8)
+ IRQNoFlags() {5}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x378, 0x378, 1, 8)
+ IRQNoFlags() {5,6,7,10,11,12}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x278, 0x278, 1, 8)
+ IRQNoFlags() {5,6,7,10,11,12}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3BC, 0x3BC, 1, 4)
+ IRQNoFlags() {5,6,7,10,11,12}
+ }
+// No IRQ
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x378, 0x378, 1, 8)
+// IRQNoFlags() {}
+// }
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x278, 0x278, 1, 8)
+// IRQNoFlags() {}
+// }
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x3BC, 0x3BC, 1, 4)
+// IRQNoFlags() {}
+// }
+ EndDependentFn()
+ })
+
+//-----------------------------------------------------------------------
+// ECP Possible Resources
+//-----------------------------------------------------------------------
+ Name(EPPR, ResourceTemplate() {
+ StartDependentFn(0, 0) {
+ IO(Decode16, 0x378, 0x378, 1, 8)
+ IO(Decode16, 0x778, 0x778, 1, 8)
+ IRQNoFlags() {5}
+ DMA(Compatibility, NotBusMaster, Transfer8) {3}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x378, 0x378, 1, 8)
+ IO(Decode16, 0x778, 0x778, 1, 8)
+ IRQNoFlags() {5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {1,3}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x278, 0x278, 1, 8)
+ IO(Decode16, 0x678, 0x678, 1, 8)
+ IRQNoFlags() {5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {1,3}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3BC, 0x3BC, 1, 4)
+ IO(Decode16, 0x7BC, 0x7BC, 1, 4)
+ IRQNoFlags() {5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {1,3}
+ }
+// No IRQ
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x378, 0x378, 1, 8)
+// IO(Decode16, 0x778, 0x778, 1, 8)
+// IRQNoFlags() {}
+// DMA(Compatibility, NotBusMaster, Transfer8) {1,3}
+// }
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x278, 0x278, 1, 8)
+// IO(Decode16, 0x678, 0x678, 1, 8)
+// IRQNoFlags() {}
+// DMA(Compatibility, NotBusMaster, Transfer8) {1,3}
+// }
+// StartDependentFnNoPri() {
+// IO(Decode16, 0x3BC, 0x3BC, 1, 4)
+// IO(Decode16, 0x7BC, 0x7BC, 1, 4)
+// IRQNoFlags() {}
+// DMA(Compatibility, NotBusMaster, Transfer8) {1,3}
+// }
+ EndDependentFn()
+ })
+
+//**********************************************************************;
+} // End Of LPTE
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/PS2kb.asl b/Board/IO/F81866/ACPI/PS2kb.asl
new file mode 100644
index 0000000..b809fc4
--- /dev/null
+++ b/Board/IO/F81866/ACPI/PS2kb.asl
@@ -0,0 +1,112 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (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/PS2kb.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/PS2kb.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
+//
+// 2 3/21/11 9:43p Mikes
+// Clean code
+//
+//*************************************************************************
+//<AMI_FHDR_START>
+//
+// Name: <PS2kb.ASL>
+//
+// Description: Define ACPI method or namespce For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+
+//**********************************************************************;
+// PS2 Keyboard Device, IO category # - 10
+//---------------------------------------------------------------------
+
+
+Device(PS2K) {
+ Name(_HID,EISAID("PNP0303")) // Standard Keyboard 101/102
+ Name(_CID,EISAID("PNP030b")) // Compatible ID, PC/AT Enhanced Keyboard 101/102
+ Method(_STA,0) {
+ If(And(\IOST, 0x0400)){
+ Return (0x0F)
+ } else {
+ Return (0x00)
+ }
+ }
+
+ Name(_CRS,ResourceTemplate()
+ {
+ IO(Decode16, 0x60, 0x60, 0, 0x1) //PS2 resource
+ IO(Decode16, 0x64, 0x64, 0, 0x1)
+ IRQNoFlags(){1}
+ })
+
+//-----------------------------------------------------------------------
+//NOTE: _PRS MUST be the NAME not a METHOD object
+//to have GENERICSIO.C working right!
+//-----------------------------------------------------------------------
+ Name(_PRS, ResourceTemplate(){
+ StartDependentFn(0, 0) {
+ FixedIO(0x60,0x01)
+ FixedIO(0x64,0x01)
+ IRQNoFlags(){1}
+ }
+ EndDependentFn()
+ })
+
+ // Keyboard 2nd Level wake up control method
+ Method(_PSW, 1){
+ Store(Arg0, \KBFG)
+ }
+}// End of PS2K
+
+Scope(\){
+ Name(\KBFG, 0x01) //Keyboard wake-up flag default enable
+}
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/PS2ms.asl b/Board/IO/F81866/ACPI/PS2ms.asl
new file mode 100644
index 0000000..9447512
--- /dev/null
+++ b/Board/IO/F81866/ACPI/PS2ms.asl
@@ -0,0 +1,128 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (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/PS2ms.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/PS2ms.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
+//
+// 2 3/21/11 9:43p Mikes
+// Clean code
+//
+//*************************************************************************
+//<AMI_FHDR_START>
+//
+// Name: <PS2ms.ASL>
+//
+// Description: Define ACPI method or namespce For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+
+//**********************************************************************;
+// PS2 Mouse Device, IO category # - 12
+//---------------------------------------------------------------------
+Device(PS2M) {
+
+ Name(_HID, EISAID("PNP0F03")) // Hardware Device ID - Microsoft mouse
+ // check if MSFT Mouse driver supports D3 properly on all MSFT OSes.
+ // It may prevent OS to go to S3 sleep state
+ // Use Logitech _HID instead if OS rejecting to go to S3.
+// Name(_HID, EISAID("PNP0F12")) // Logitech PS2 Mouse ID
+ Name(_CID, EISAID("PNP0F13")) // Compatible ID
+
+ Method(_STA, 0) {
+ // Check if PS2Mouse detected in BIOS Post
+ // IOST - bit mask of enabled devices, 0x4000 - PS2M mask
+ If(And(\IOST, 0x4000)){ // Check if PS2MS detected in BIOS Post
+ Return(0x0f)
+ } else {
+ Return(0x00)// device's not present
+ }
+ }
+ Name(CRS1, ResourceTemplate()
+ {
+ IRQNoFlags(){12}
+ })
+ Name(CRS2, ResourceTemplate()
+ {
+ IO(Decode16, 0x60, 0x60, 0, 0x1)
+ IO(Decode16, 0x64, 0x64, 0, 0x1)
+ IRQNoFlags(){12}
+ })
+ Method(_CRS,0)
+ {
+ If(And(\IOST, 0x0400)){ // PS2K is present, I/O resources 0x60 & 0x64 are reserved there
+ Return(CRS1)
+ } else { // single PS/2 mouse(no PS/2 kbd), need to supply I/O resources 0x60 & 0x64 for PS/2 Controller.
+ Return(CRS2)
+ }
+ }
+
+//-----------------------------------------------------------------------
+//NOTE: _PRS MUST be the NAME not a METHOD object
+//to have GENERICSIO.C working right!
+//-----------------------------------------------------------------------
+ Name(_PRS, ResourceTemplate(){
+ StartDependentFn(0, 0) {
+ IRQNoFlags(){12}
+ }
+ EndDependentFn()
+ })
+
+ // Mouse 2nd Level wake up control method
+ Method(_PSW, 1){
+ Store(Arg0, \MSFG)
+ }
+
+}// End of PS2M
+
+Scope(\){
+ Name(\MSFG, 0x01) //Mouse wake-up flag default enable
+}
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/SIOH.ASL b/Board/IO/F81866/ACPI/SIOH.ASL
new file mode 100644
index 0000000..5e54555
--- /dev/null
+++ b/Board/IO/F81866/ACPI/SIOH.ASL
@@ -0,0 +1,84 @@
+// THIS FILE IS INCLUDED to South Bridge device scope
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (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/SIOH.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/SIOH.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
+//
+// 1 3/21/11 9:42p Mikes
+//
+//*************************************************************************
+
+//<AMI_FHDR_START>
+//
+// Name: <SIOH.ASL>
+//
+// Description: Define event handler For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+//-----------------------------------------------------------------------
+// SIOH - SIO event handler, to be called from correspondent _Lxx method
+// in order to serve the SIO chipset side of wake up event
+//-----------------------------------------------------------------------
+// input - nothing
+// output - nothing
+//-----------------------------------------------------------------------
+ Method(SIOH, 0){
+ If(And(PMFG, 0x08)){
+ Notify(PS2K, 0x2) //KBD Wake up
+ }
+ If(And(PMFG, 0x10)){
+ Notify(PS2M, 0x2) //MOUSE Wake up
+ }
+ } //End Of _Lx PMEH
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
+
+
diff --git a/Board/IO/F81866/ACPI/Uart1.ASL b/Board/IO/F81866/ACPI/Uart1.ASL
new file mode 100644
index 0000000..3cc0609
--- /dev/null
+++ b/Board/IO/F81866/ACPI/Uart1.ASL
@@ -0,0 +1,121 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (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/Uart1.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/Uart1.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: <UART1.ASL>
+//
+// Description: Define ACPI method or namespce For Super IO
+//
+//<AMI_FHDR_END>
+//*************************************************************************
+// UART1 //
+// Category # :0x00
+Device(UAR1) {
+ Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
+ //AMI_TODO:If UAR1 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(0))} //PnP Device ID
+
+ Name(_UID, 1) //Generic ID for COMA
+ Method(_STA, 0) {Return(^^SIO1.DSTA(0))} //Get UART status
+ Method(_DIS, 0) {^^SIO1.DCNT(0, 0)} //Disable UART
+
+ Method(_CRS, 0) {Return(^^SIO1.DCRS(0, 0))} //Get UART current resources
+ Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 0)} //Set UART recources
+ //AMI_TODO:If use share mode, replace with below method.
+ //Method(_CRS, 0) {Return(^^SIO1.DCR3(0, 0))}
+ //Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 0)}
+
+//-----------------------------------------------------------------------
+// UART1 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, 0x3F8, 0x3F8, 1, 8)
+ IRQNoFlags() {4}
+ 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 UAR1
+//-----------------------------------------------------------------------
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
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 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/Uart3.ASL b/Board/IO/F81866/ACPI/Uart3.ASL
new file mode 100644
index 0000000..bd99224
--- /dev/null
+++ b/Board/IO/F81866/ACPI/Uart3.ASL
@@ -0,0 +1,123 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Pkwy, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//**********************************************************************
+//**********************************************************************
+// $Header: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart3.ASL 3 2/16/12 9:18p Elviscai $
+//
+// $Revision: 3 $
+//
+// $Date: 2/16/12 9:18p $
+//**********************************************************************;
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart3.ASL $
+//
+// 3 2/16/12 9:18p Elviscai
+// [TAG] EIP68967
+// [Category] Bug Fix
+// [Symptom] If select the 02E8,will have a yellow bang
+// [Solution] Correct the IRQ flag Edge to Level
+//
+// 2 2/03/12 1:33a Elviscai
+// [TAG] EIPNONE
+// [Category] Improvement
+// [Description] Remove _PRS 0x3F8/0x3E8 from UART3/4/5/6
+//
+// 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
+//**********************************************************************;
+// UART3 //
+// Category # :0x11
+Device(UAR3) {
+ Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
+ //AMI_TODO:If UAR3 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(0x11))} //PnP Device ID
+
+ Name(_UID, 3) //Generic ID for COMC
+ Method(_STA, 0) {Return(^^SIO1.DSTA(0x11))} //Get UART status
+ Method(_DIS, 0) {^^SIO1.DCNT(0x11, 0)} //Disable UART
+
+ //Default is share mode
+ Method(_CRS, 0) {Return(^^SIO1.DCR3(0x11, 0))} //Get UART current resources
+ Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 0x11)} //Set UART recources
+ //AMI_TODO:If use non-share mode, replace with below method.
+ //Method(_CRS, 0) {Return(^^SIO1.DCRS(0x11, 0))} //Get UART current resources
+ //Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 0x11)} //Set UART recources
+
+//-----------------------------------------------------------------------
+// UART3 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, 0x3E8, 0x3E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {7}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3E8, 0x3E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E8, 0x2E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2F0, 0x2F0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E0, 0x2E0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ EndDependentFn()
+ })
+
+} // End Of UAR3
+//-----------------------------------------------------------------------
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/Uart4.ASL b/Board/IO/F81866/ACPI/Uart4.ASL
new file mode 100644
index 0000000..38863d1
--- /dev/null
+++ b/Board/IO/F81866/ACPI/Uart4.ASL
@@ -0,0 +1,117 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Pkwy, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//**********************************************************************
+//**********************************************************************
+// $Header: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart4.ASL 2 2/03/12 1:34a Elviscai $
+//
+// $Revision: 2 $
+//
+// $Date: 2/03/12 1:34a $
+//**********************************************************************;
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart4.ASL $
+//
+// 2 2/03/12 1:34a Elviscai
+// [TAG] EIPNONE
+// [Category] Improvement
+// [Description] Remove _PRS 0x3F8/0x3E8 from UART3/4/5/6
+//
+// 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
+//**********************************************************************;
+// UART4 //
+// Category # :0x12
+Device(UAR4) {
+ Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
+ //AMI_TODO:If UAR4 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(0x12))} //PnP Device ID
+
+ Name(_UID, 4) //Generic ID for COMD
+ Method(_STA, 0) {Return(^^SIO1.DSTA(0x12))} //Get UART status
+ Method(_DIS, 0) {^^SIO1.DCNT(0x12, 0)} //Disable UART
+
+ //Default is share mode
+ Method(_CRS, 0) {Return(^^SIO1.DCR3(0x12, 0))} //Get UART current resources
+ Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 0x12)} //Set UART recources
+ //AMI_TODO:If use non-share mode, replace with below method.
+ //Method(_CRS, 0) {Return(^^SIO1.DCRS(0x12, 0))} //Get UART current resources
+ //Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 0x12)} //Set UART recources
+
+//-----------------------------------------------------------------------
+// UART4 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, 0x2E8, 0x2E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {7}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3E8, 0x3E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E8, 0x2E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2F0, 0x2F0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E0, 0x2E0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ EndDependentFn()
+ })
+
+} // End Of UAR4
+//-----------------------------------------------------------------------
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/Uart5.ASL b/Board/IO/F81866/ACPI/Uart5.ASL
new file mode 100644
index 0000000..ad81de4
--- /dev/null
+++ b/Board/IO/F81866/ACPI/Uart5.ASL
@@ -0,0 +1,117 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Pkwy, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//**********************************************************************
+//**********************************************************************
+// $Header: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart5.ASL 2 2/03/12 1:34a Elviscai $
+//
+// $Revision: 2 $
+//
+// $Date: 2/03/12 1:34a $
+//**********************************************************************;
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart5.ASL $
+//
+// 2 2/03/12 1:34a Elviscai
+// [TAG] EIPNONE
+// [Category] Improvement
+// [Description] Remove _PRS 0x3F8/0x3E8 from UART3/4/5/6
+//
+// 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
+//**********************************************************************;
+// UART5 //
+// Category # :0x13
+Device(UAR5) {
+ Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
+ //AMI_TODO:If UAR5 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(0x13))} //PnP Device ID
+
+ Name(_UID, 5) //Generic ID for COME
+ Method(_STA, 0) {Return(^^SIO1.DSTA(0x13))} //Get UART status
+ Method(_DIS, 0) {^^SIO1.DCNT(0x13, 0)} //Disable UART
+
+ //Default is share mode
+ Method(_CRS, 0) {Return(^^SIO1.DCR3(0x13, 0))} //Get UART current resources
+ Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 0x13)} //Set UART recources
+ //AMI_TODO:If use non-share mode, replace with below method.
+ //Method(_CRS, 0) {Return(^^SIO1.DCRS(0x13, 0))} //Get UART current resources
+ //Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 0x13)} //Set UART recources
+
+//-----------------------------------------------------------------------
+// UART3 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, 0x2F0, 0x2F0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {10}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3E8, 0x3E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E8, 0x2E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2F0, 0x2F0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E0, 0x2E0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ EndDependentFn()
+ })
+
+} // End Of UAR3
+//-----------------------------------------------------------------------
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
diff --git a/Board/IO/F81866/ACPI/Uart6.ASL b/Board/IO/F81866/ACPI/Uart6.ASL
new file mode 100644
index 0000000..0377b3c
--- /dev/null
+++ b/Board/IO/F81866/ACPI/Uart6.ASL
@@ -0,0 +1,117 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Pkwy, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//**********************************************************************
+//**********************************************************************
+// $Header: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart6.ASL 2 2/03/12 1:35a Elviscai $
+//
+// $Revision: 2 $
+//
+// $Date: 2/03/12 1:35a $
+//**********************************************************************;
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/IO/Fintek/F81866/F81866 Device ASL Files/Uart6.ASL $
+//
+// 2 2/03/12 1:35a Elviscai
+// [TAG] EIPNONE
+// [Category] Improvement
+// [Description] Remove _PRS 0x3F8/0x3E8 from UART3/4/5/6
+//
+// 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
+//**********************************************************************;
+// UART6 //
+// Category # :0x14
+Device(UAR6) {
+ //Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
+ //AMI_TODO:If UAR4 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(0x14))} //PnP Device ID
+
+ Name(_UID, 6) //Generic ID for COMF
+ Method(_STA, 0) {Return(^^SIO1.DSTA(0x14))} //Get UART status
+ Method(_DIS, 0) {^^SIO1.DCNT(0x14, 0)} //Disable UART
+
+ //Default is share mode
+ Method(_CRS, 0) {Return(^^SIO1.DCR3(0x14, 0))} //Get UART current resources
+ Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 0x14)} //Set UART recources
+ //AMI_TODO:If use non-share mode, replace with below method.
+ //Method(_CRS, 0) {Return(^^SIO1.DCRS(0x14, 0))} //Get UART current resources
+ //Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 0x14)} //Set UART recources
+
+//-----------------------------------------------------------------------
+// UART4 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, 0x2E0, 0x2E0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {10}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x3E8, 0x3E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E8, 0x2E8, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2F0, 0x2F0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ StartDependentFnNoPri() {
+ IO(Decode16, 0x2E0, 0x2E0, 1, 8)
+ IRQ(Level,ActiveLow,Shared) {3,4,5,6,7,10,11,12}
+ DMA(Compatibility, NotBusMaster, Transfer8) {}
+ }
+ EndDependentFn()
+ })
+
+} // End Of UAR4
+//-----------------------------------------------------------------------
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2011, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************