summaryrefslogtreecommitdiff
path: root/Core/EM/ACPI/Uart4ir.asl
blob: eba59b016072ee4f5e955d7581a8b67a40d6b69a (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
118
119
120
121
122
123
124
125
126
127
128
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (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/Uart4ir.asl 3     3/26/09 4:53p Oleksiyy $
//
// $Revision: 3 $
//
// $Date: 3/26/09 4:53p $
//**********************************************************************;
// Revision History
// ----------------
// $Log: /Alaska/BIN/Modules/ACPI/Template/Core/Uart4ir.asl $
// 
// 3     3/26/09 4:53p Oleksiyy
// New ACPI Core implementation - improves logic, execution time and
// memory usage of ACPI module.
// 
// 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:41p Sivagarn
// 0ABHI001 Check in
// 
// 1     7/27/04 2:48p Yakovlevs
// 
// 1     03/04/07 5:57p Chung
// Add ASL core for new all I/O beta version
//
//**********************************************************************;
// UART4 - COMD or Infrared //
// Requires Uart4(ir).asl component present as well
// Cannot be included along with UART4IR.ASL. Only one UART4 Device can be present in ASL.
// Category # :0x01
Device(UAR4) {
	Name(_UID, 4)				//Generic ID for COMD
	Method(_HID, 0) {				//PnP Device ID
		if(SI1P){Return(^^SIO2.UHID(1))}
		else{Return(^^SIO1.UHID(1))}
	}
	Method(_STA, 0) {				//Get UART status
		if(SI1P){Return(^^SIO2.DSTA(1))}
		else{Return(^^SIO1.DSTA(1))}
	}
	Method(_DIS, 0) {				//Disable UART
		if(SI1P){^^SIO2.DCNT(1, 0)}
		else{^^SIO1.DCNT(1, 0)}
	}
	Method(_CRS, 0) {				//Get UART current resources
		if(SI1P){Return(^^SIO2.DCRS(1, 1))}
		else{Return(^^SIO1.DCRS(1, 1))}
	}
	Method(_SRS, 1) {				//Set UART resources
		if(SI1P){^^SIO2.DSRS(Arg0, 1)}
		else{^^SIO1.DSRS(Arg0, 1)}
	}


//-----------------------------------------------------------------------
// UART4 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, 0x2E8, 0x2E8, 1, 8)
			IRQNoFlags() {10}
			DMA(Compatibility, NotBusMaster, Transfer8) {}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x3F8, 0x3F8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x2F8, 0x2F8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x3E8, 0x3E8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x2E8, 0x2E8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {}
		}
// IRQ, DMA
		StartDependentFnNoPri() {
			IO(Decode16, 0x3F8, 0x3F8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x2F8, 0x2F8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x3E8, 0x3E8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3}
		}
		StartDependentFnNoPri() {
			IO(Decode16, 0x2E8, 0x2E8, 1, 8)
			IRQNoFlags() {3,4,5,6,7,9,10,11,12}
			DMA(Compatibility, NotBusMaster, Transfer8) {0,1,2,3}
		}
		EndDependentFn()
	})
} // End Of UAR4 //------------------------------------------------------