summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorHarald Gutmann <harald.gutmann@gmx.net>2009-07-07 16:15:43 +0000
committerHarald Gutmann <harald.gutmann@gmx.net>2009-07-07 16:15:43 +0000
commitbf12ddae235f66f9cff430dc997c681eaffb705a (patch)
treeca5c712918f0ba771e58b10d14a55cafd867e12d /src/mainboard
parent941c1fd52a96fd3e238d1798127a137e4c4eb659 (diff)
ChangeLog:
Change the parallel port from polling to interrupt-driven. This was tested by Andreas Mundt with a parallel port printer. Signed-off-by: Harald Gutmann <harald.gutmann@gmx.net> Acked-by: Andreas B. Mundt <andi.mundt@web.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4405 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/gigabyte/m57sli/dsdt.asl46
1 files changed, 41 insertions, 5 deletions
diff --git a/src/mainboard/gigabyte/m57sli/dsdt.asl b/src/mainboard/gigabyte/m57sli/dsdt.asl
index 0814950f67..678d339ce3 100644
--- a/src/mainboard/gigabyte/m57sli/dsdt.asl
+++ b/src/mainboard/gigabyte/m57sli/dsdt.asl
@@ -214,12 +214,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 +233,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 +254,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)
+ }
+ }
}
}
}