diff options
Diffstat (limited to 'Core/EM/ACPI/Uart1ir.asl')
-rw-r--r-- | Core/EM/ACPI/Uart1ir.asl | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/Core/EM/ACPI/Uart1ir.asl b/Core/EM/ACPI/Uart1ir.asl new file mode 100644 index 0000000..de5e165 --- /dev/null +++ b/Core/EM/ACPI/Uart1ir.asl @@ -0,0 +1,143 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** +// $Header: /Alaska/BIN/Modules/ACPI/Template/Core/Uart1ir.asl 4 3/26/09 4:53p Oleksiyy $ +// +// $Revision: 4 $ +// +// $Date: 3/26/09 4:53p $ +//**********************************************************************; +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/ACPI/Template/Core/Uart1ir.asl $ +// +// 4 3/26/09 4:53p Oleksiyy +// New ACPI Core implementation - improves logic, execution time and +// memory usage of ACPI module. +// +// 3 8/03/06 12:45p Stacyh +// Updated to allow the use of SI1P for systems with 2 SIOs. Now contains +// generic methods assuming SI1P to be 0 as well as methods which check +// SI1P (these are commented out). +// +// 2 4/03/06 4:05p Felixp +// New Super I/O infrastructure Support +// +// 1 3/24/05 5:01p Sivagarn +// +// 1 2/03/05 6:42p Sivagarn +// 0ABHI001 Check in +// +// 1 7/27/04 2:48p Yakovlevs +// +// 7 03/04/07 5:42p Chung +// Modify all I/O beta version +// +// 6 9/06/02 10:53a Alexp +// Add SourceSafe headers to all core asl files +// +//**********************************************************************; +// UART + IrDa = COMA // +// Category # :0x00 +// Cannot be included along with UART1.ASL. Only one UART1 can be present in ASL. +Device(UAR1) { + Name(_UID, 1) //Generic ID for COMA + +// Use the following if not using SI1P or only have 1 SIO + Method(_HID, 0) {Return(^^SIO1.UHID(0))} //PnP Device ID + 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, 1))} //Get UART current resources + Method(_SRS, 1) {^^SIO1.DSRS(Arg0, 0)} //Set UART resources + +// Use the following if using SI1P +// Method(_HID, 0) { //PnP Device ID +// if(SI1P){Return(^^SIO1.UHID(0))} +// else{Return(^^SIO2.UHID(0))} +// } +// Method(_STA, 0) { //Get UART status +// if(SI1P){Return(^^SIO1.DSTA(0))} +// else{Return(^^SIO2.DSTA(0))} +// } +// Method(_DIS, 0) { //Disable UART +// if(SI1P){^^SIO1.DCNT(0, 0)} +// else{^^SIO2.DCNT(0, 0)} +// } +// Method(_CRS, 0) { //Get UART current resources +// if(SI1P){Return(^^SIO1.DCRS(0, 1))} +// else{Return(^^SIO2.DCRS(0, 1))} +// } +// Method(_SRS, 1) { //Set UART resources +// if(SI1P){^^SIO1.DSRS(Arg0, 0)} +// else{^^SIO2.DSRS(Arg0, 0)} +// } + +//------------------------------------------------------------------------ +// UART1/2 , IrDa Possible Resources +//------------------------------------------------------------------------ +//NOTE: _PRS MUST be the NAME not a METHOD object +//to have GENERICSIO.C working right! +//----------------------------------------------------------------------- + + Name(_PRS, ResourceTemplate() { +// IRQ, No DMA + 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) {} + } +// DMA,IRQ + StartDependentFnNoPri() { + IO(Decode16, 0x3F8, 0X3F8, 1, 8) + IRQNoFlags() {3,4,5,6,7,10,11,12} + DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3} + } + StartDependentFnNoPri() { + IO(Decode16, 0x2F8, 0X2F8, 1, 8) + IRQNoFlags() {3,4,5,6,7,10,11,12} + DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3} + } + StartDependentFnNoPri() { + IO(Decode16, 0x3E8, 0X3E8, 1, 8) + IRQNoFlags() {3,4,5,6,7,10,11,12} + DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3} + } + StartDependentFnNoPri() { + IO(Decode16, 0x2E8, 0X2E8, 1, 8) + IRQNoFlags() {3,4,5,6,7,10,11,12} + DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3} + } + EndDependentFn() + }) +} // End Of UAR1 +//------------------------------------------------------------------------ |