summaryrefslogtreecommitdiff
path: root/Core/EM/ACPI/rmisc.asl
blob: 07b541ca4b866f26b3713d0e37521f582311f009 (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
// Miscellaneous I/O and memory resources
// System board extension Device node for ACPI BIOS
// THIS FILE IS INCLUDED to LPC/ISA PCI bridge scope
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (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/rmisc.asl 5     7/12/10 11:26a Oleksiyy $Revision: 
//
// $Date: 7/12/10 11:26a $Log:
//**********************************************************************;
/*
;<AMI_PHDR_START>
;------------------------------------------------------------------------
;
; Procedure:	RMSC
;
; Description:	Chipset Miscellaneous I/O and memory resources
; This table should contain any I/O port that is not used by a specific
; device but does not return FFh when read.  Some examples of I/O ports
; that should be reserved here are:
;   Any I/O port in the range 00 - FF that is not used by any other dev node
;   The IRQ edge/level control ports (4D0/4D1)
;
;  Input: Nothing
;
;  Output: _CRS buffer
;
;-------------------------------------------------------------------------
;<AMI_PHDR_END>
*/
	Device(RMSC) {

		Name(_HID, EISAID("PNP0C02"))	// System board resources device node ID
		Name(_UID, 0x10)		// Unique ID. Used first I/O range address from _CRS buffer.

		Name(CRS1, ResourceTemplate()
		{
			IO(Decode16,0x10, 0x10, 0,0x10)
			IO(Decode16,0x22, 0x22, 0,0x1e)
			IO(Decode16,0x44, 0x44, 0,0x1c)
			IO(Decode16,0x62, 0x62, 0,0x02)
			IO(Decode16,0x65, 0x65, 0,0x0b)
			IO(Decode16,0x72, 0x72, 0,0x0e)
			IO(Decode16,0x80, 0x80, 0,0x01)
			IO(Decode16,0x84, 0x84, 0,0x03)
			IO(Decode16,0x88, 0x88, 0,0x01)
			IO(Decode16,0x8c, 0x8c, 0,0x03)
			IO(Decode16,0x90, 0x90, 0,0x10)
			IO(Decode16,0xa2, 0xa2, 0,0x1e)
			IO(Decode16,0xe0, 0xe0, 0,0x10)
// Decoded but not used by FDC. Reserved in FDC device node resources
//	              IO(Decode16, 0x3f3, 0x3f3, 0, 0x1)
// Reserve  4D0 and 4D1 for IRQ edge/level control port
			IO(Decode16, 0x4d0, 0x4d0, 0, 0x2)
//S.Y Not existing resource
// SB NVRAM 1 I/O space
//			IO(Decode16, 0xDE00, 0xDE00, 0, 0x80)
// SB NVRAM 2 I/O space
//			IO(Decode16, 0xDE80, 0xDE80, 0, 0x80)

		}               // End of ResourceTemplate
		)               // end of CRS1
		Name(CRS2, ResourceTemplate()
		{
			IO(Decode16,0x10, 0x10, 0,0x10)
			IO(Decode16,0x22, 0x22, 0,0x1e)
			IO(Decode16,0x44, 0x44, 0,0x1c)            
			IO(Decode16,0x72, 0x72, 0,0x0e)
			IO(Decode16,0x80, 0x80, 0,0x01)
			IO(Decode16,0x84, 0x84, 0,0x03)
			IO(Decode16,0x88, 0x88, 0,0x01)
			IO(Decode16,0x8c, 0x8c, 0,0x03)
			IO(Decode16,0x90, 0x90, 0,0x10)
			IO(Decode16,0xa2, 0xa2, 0,0x1e)
			IO(Decode16,0xe0, 0xe0, 0,0x10)
// Decoded but not used by FDC. Reserved in FDC device node resources
//	              IO(Decode16, 0x3f3, 0x3f3, 0, 0x1)
// Reserve  4D0 and 4D1 for IRQ edge/level control port
			IO(Decode16, 0x4d0, 0x4d0, 0, 0x2)
//S.Y Not existing resource
// SB NVRAM 1 I/O space
//			IO(Decode16, 0xDE00, 0xDE00, 0, 0x80)
// SB NVRAM 2 I/O space
//			IO(Decode16, 0xDE80, 0xDE80, 0, 0x80)

		}               // End of ResourceTemplate
		)               // end of CRS2
		Method (_CRS, 0)
		{
			If(And(\MBEC, 0xFFFF)){//Check if there is an EC in system
                Return(CRS1)
            }else{
                Return(CRS2)
            }
		}
}
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**             5555 Oakbrook Pkwy, Norcross, GA 30093               **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************