Various license header consistency fixes (trivial).
[coreboot.git] / src / mainboard / gigabyte / m57sli / dsdt.asl
index 0814950f67b16a0aa4990648cf9be8360683c83e..c9b969de0e1c75f3fdb1f82eddd66d5561a1af4c 100644 (file)
@@ -1,15 +1,13 @@
 /*
  * This file is part of the coreboot project.
  *
- * (C) Copyright 2004 Nick Barker <Nick.Barker9@btinternet.com>
- * (C) Copyright 2007, 2008 Rudolf Marek <r.marek@assembler.cz>
- * (C) Copyright 2009 Harald Gutmann <harald.gutmann@gmx.net>
- *
- * ISA portions taken from QEMU acpi-dsdt.dsl.
+ * Copyright (C) 2004 Nick Barker <Nick.Barker9@btinternet.com>
+ * Copyright (C) 2007, 2008 Rudolf Marek <r.marek@assembler.cz>
+ * Copyright (C) 2009 Harald Gutmann <harald.gutmann@gmx.net>
  *
  * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License v2 as published by
- * the Free Software Foundation.
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+/*
+ * ISA portions taken from QEMU acpi-dsdt.dsl.
+ */
+
 DefinitionBlock ("DSDT.aml", "DSDT", 1, "LXBIOS", "LXB-DSDT", 1)
 {
-       Include ("../../../../src/northbridge/amd/amdk8/amdk8_util.asl")
+       #include "northbridge/amd/amdk8/amdk8_util.asl"
 
        /* For now only define 2 power states:
         *  - S0 which is fully on
@@ -214,12 +216,12 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "LXBIOS", "LXB-DSDT", 1)
                                }
                                Method (_CRS, 0, NotSerialized)
                                {
-                                       Name (TMP, ResourceTemplate () {
+                                       Name (TMP0, ResourceTemplate () {
                                                IO (Decode16, 0x0060, 0x0060, 0x01, 0x01)
                                                IO (Decode16, 0x0064, 0x0064, 0x01, 0x01)
                                                IRQNoFlags () {1}
                                        })
-                                       Return (TMP)
+                                       Return (TMP0)
                                }
                        }
 
@@ -233,12 +235,12 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "LXBIOS", "LXB-DSDT", 1)
                                }
                                Method (_CRS, 0, NotSerialized)
                                {
-                                       Name (TMP, ResourceTemplate () {
+                                       Name (TMP1, ResourceTemplate () {
                                                IO (Decode16, 0x0060, 0x0060, 0x01, 0x01)
                                                IO (Decode16, 0x0064, 0x0064, 0x01, 0x01)
                                                IRQNoFlags () {12}
                                        })
-                                       Return (TMP)
+                                       Return (TMP1)
                                }
                        }
 
@@ -254,13 +256,49 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "LXBIOS", "LXB-DSDT", 1)
                                {
                                        Name (BUF0, ResourceTemplate () {
                                                IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06)
-                                               IO (Decode16, 0x03F7, 0x03F7, 0x00, 0x01)
+                                               IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01)
                                                IRQNoFlags () {6}
                                                DMA (Compatibility, NotBusMaster, Transfer8) {2}
                                        })
                                        Return (BUF0)
                                }
                        }
+                       /* Parallel Port */
+                       Device (LPT1)
+                       {
+                               Name (_HID, EisaId ("PNP0400"))
+                               Method (_STA, 0, NotSerialized)
+                               {
+                                       Return (0x0f)
+                               }
+                               Method (_CRS, 0, NotSerialized)
+                               {
+                                       Name (BUF1, ResourceTemplate () {
+                                               IO (Decode16, 0x0378, 0x0378, 0x01, 0x08) 
+                                               IRQNoFlags () {7}
+                                       })
+                                       Return (BUF1)
+                               }
+                       }
+                       /* Parallel Port ECP */
+                       Device (ECP1)
+                       {
+                               Name (_HID, EisaId ("PNP0401"))
+                               Method (_STA, 0, NotSerialized)
+                               {
+                                       Return (0x0f)
+                               }
+                               Method (_CRS, 0, NotSerialized)
+                               {
+                                       Name (BUF1, ResourceTemplate () {
+                                               IO (Decode16, 0x0378, 0x0378, 0x01, 0x04) 
+                                               IO (Decode16, 0x0778, 0x0778, 0x01, 0x04)
+                                               IRQNoFlags() {7}
+                                               DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3}
+                                       })
+                                       Return (BUF1)
+                               }
+                       }
                }
        }
 }