summaryrefslogtreecommitdiff
path: root/Board/IO/F81866/ACPI/Uart6.ASL
blob: 0377b3ccf6bb80a90625e6bbd9cc636565104c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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                         **
//**                                                                     **
//*************************************************************************
//*************************************************************************