101 lines
4.9 KiB
Plaintext
101 lines
4.9 KiB
Plaintext
|
//**********************************************************************
|
||
|
//**********************************************************************
|
||
|
//** **
|
||
|
//** (C)Copyright 1985-2013, American Megatrends, Inc. **
|
||
|
//** **
|
||
|
//** All Rights Reserved. **
|
||
|
//** **
|
||
|
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
|
||
|
//** **
|
||
|
//** Phone: (770)-246-8600 **
|
||
|
//** **
|
||
|
//**********************************************************************
|
||
|
//**********************************************************************
|
||
|
//<AMI_FHDR_START>
|
||
|
//
|
||
|
// Name: <UART4.asl>
|
||
|
//
|
||
|
// Description: Define ACPI device for UART4.
|
||
|
//
|
||
|
//<AMI_FHDR_END>
|
||
|
//**********************************************************************
|
||
|
// Category # :0x12
|
||
|
//======================================================================
|
||
|
//Following commented line will be included in PciTree.asl
|
||
|
//Device(UAR4) {
|
||
|
// Name(_UID, 4) //Generic ID for COMD
|
||
|
// Name(_HID, EISAID("PNP0501")) //PnP Device ID 16550 Type
|
||
|
//======================================================================
|
||
|
Name(_DDN, "COM4") //RayWu, ADD 2014/09/03
|
||
|
|
||
|
Method(_STA, 0) {Return(^^SIO1.DSTA(0x12))} //Get UART status
|
||
|
Method(_DIS, 0) {^^SIO1.DCNT(0x12, 0)} //Disable UART
|
||
|
Method(_CRS, 0) {Return(^^SIO1.DCR3(0x12, 0))} //Get UART current resources
|
||
|
Method(_SRS, 1) {^^SIO1.DSR3(Arg0, 0x12)} //Set UART resources
|
||
|
//----------------------------------------------------------------------
|
||
|
// UART4 Possible Resources
|
||
|
//----------------------------------------------------------------------
|
||
|
//NOTE: _PRS MUST be the NAME not a METHOD object
|
||
|
//to have GENERICSIO.C working right!
|
||
|
//----------------------------------------------------------------------
|
||
|
//RayWu, ADD 2014/09/03 >>
|
||
|
Name(_PRS, ResourceTemplate() {
|
||
|
StartDependentFn(0, 0) {
|
||
|
IO(Decode16, 0x2E8, 0x2E8, 1, 8)
|
||
|
IRQ(Edge,ActiveLow,Shared) {11}
|
||
|
}
|
||
|
StartDependentFnNoPri() {
|
||
|
IO(Decode16, 0x3E8, 0x3E8, 1, 8)
|
||
|
IRQ(Edge,ActiveLow,Shared) {11}
|
||
|
}
|
||
|
EndDependentFn()
|
||
|
})
|
||
|
//RayWu, ADD 2014/09/03 <<
|
||
|
//RayWu, REMOVE 2014/09/03 >>
|
||
|
// 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()
|
||
|
// })
|
||
|
//RayWu, REMOVE 2014/09/03 <<
|
||
|
//======================================================================
|
||
|
//Following commented line will be included in PciTree.asl
|
||
|
// }// End Of UAR4
|
||
|
//======================================================================
|
||
|
//**********************************************************************
|
||
|
//**********************************************************************
|
||
|
//** **
|
||
|
//** (C)Copyright 1985-2013, American Megatrends, Inc. **
|
||
|
//** **
|
||
|
//** All Rights Reserved. **
|
||
|
//** **
|
||
|
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
|
||
|
//** **
|
||
|
//** Phone: (770)-246-8600 **
|
||
|
//** **
|
||
|
//**********************************************************************
|
||
|
//**********************************************************************
|