sb/intel/common/acpi/irqlinks.asl: Clean up cosmetics
Tested with BUILD_TIMELESS=1, Purism Librem 13 v1 remains identical. Change-Id: I8562fc3278144380b0ab842d88176114821be823 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46760 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
eeefb022eb
commit
f1e81e6eb9
1 changed files with 88 additions and 88 deletions
|
@ -8,13 +8,13 @@ Device (LNKA)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTA)
|
PRTA = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -23,15 +23,15 @@ Device (LNKA)
|
||||||
{
|
{
|
||||||
Name (RTLA, ResourceTemplate()
|
Name (RTLA, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLA, 1, IRQ0)
|
CreateWordField (RTLA, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTA
|
// Set the bit from PRTA
|
||||||
ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTA & 0x0f)
|
||||||
|
|
||||||
Return (RTLA)
|
Return (RTLA)
|
||||||
}
|
}
|
||||||
|
@ -39,19 +39,19 @@ Device (LNKA)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTA)
|
PRTA = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTA, 0x80)) {
|
If (PRTA & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -67,13 +67,13 @@ Device (LNKB)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTB)
|
PRTB = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -82,15 +82,15 @@ Device (LNKB)
|
||||||
{
|
{
|
||||||
Name (RTLB, ResourceTemplate()
|
Name (RTLB, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLB, 1, IRQ0)
|
CreateWordField (RTLB, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTB
|
// Set the bit from PRTB
|
||||||
ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTB & 0x0f)
|
||||||
|
|
||||||
Return (RTLB)
|
Return (RTLB)
|
||||||
}
|
}
|
||||||
|
@ -98,19 +98,19 @@ Device (LNKB)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTB)
|
PRTB = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTB, 0x80)) {
|
If (PRTB & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -126,13 +126,13 @@ Device (LNKC)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTC)
|
PRTC = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -141,15 +141,15 @@ Device (LNKC)
|
||||||
{
|
{
|
||||||
Name (RTLC, ResourceTemplate()
|
Name (RTLC, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLC, 1, IRQ0)
|
CreateWordField (RTLC, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTC
|
// Set the bit from PRTC
|
||||||
ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTC & 0x0f)
|
||||||
|
|
||||||
Return (RTLC)
|
Return (RTLC)
|
||||||
}
|
}
|
||||||
|
@ -157,19 +157,19 @@ Device (LNKC)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTC)
|
PRTC = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTC, 0x80)) {
|
If (PRTC & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -185,13 +185,13 @@ Device (LNKD)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTD)
|
PRTD = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -200,15 +200,15 @@ Device (LNKD)
|
||||||
{
|
{
|
||||||
Name (RTLD, ResourceTemplate()
|
Name (RTLD, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLD, 1, IRQ0)
|
CreateWordField (RTLD, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTD
|
// Set the bit from PRTD
|
||||||
ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTD & 0x0f)
|
||||||
|
|
||||||
Return (RTLD)
|
Return (RTLD)
|
||||||
}
|
}
|
||||||
|
@ -216,19 +216,19 @@ Device (LNKD)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTD)
|
PRTD = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTD, 0x80)) {
|
If (PRTD & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -244,13 +244,13 @@ Device (LNKE)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTE)
|
PRTE = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -259,15 +259,15 @@ Device (LNKE)
|
||||||
{
|
{
|
||||||
Name (RTLE, ResourceTemplate()
|
Name (RTLE, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLE, 1, IRQ0)
|
CreateWordField (RTLE, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTE
|
// Set the bit from PRTE
|
||||||
ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTE & 0x0f)
|
||||||
|
|
||||||
Return (RTLE)
|
Return (RTLE)
|
||||||
}
|
}
|
||||||
|
@ -275,19 +275,19 @@ Device (LNKE)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTE)
|
PRTE = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTE, 0x80)) {
|
If (PRTE & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -303,13 +303,13 @@ Device (LNKF)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTF)
|
PRTF = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -318,15 +318,15 @@ Device (LNKF)
|
||||||
{
|
{
|
||||||
Name (RTLF, ResourceTemplate()
|
Name (RTLF, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLF, 1, IRQ0)
|
CreateWordField (RTLF, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTF
|
// Set the bit from PRTF
|
||||||
ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTF & 0x0f)
|
||||||
|
|
||||||
Return (RTLF)
|
Return (RTLF)
|
||||||
}
|
}
|
||||||
|
@ -334,19 +334,19 @@ Device (LNKF)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTF)
|
PRTF = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTF, 0x80)) {
|
If (PRTF & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -362,13 +362,13 @@ Device (LNKG)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTG)
|
PRTG = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -377,15 +377,15 @@ Device (LNKG)
|
||||||
{
|
{
|
||||||
Name (RTLG, ResourceTemplate()
|
Name (RTLG, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLG, 1, IRQ0)
|
CreateWordField (RTLG, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTG
|
// Set the bit from PRTG
|
||||||
ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTG & 0x0f)
|
||||||
|
|
||||||
Return (RTLG)
|
Return (RTLG)
|
||||||
}
|
}
|
||||||
|
@ -393,19 +393,19 @@ Device (LNKG)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTG)
|
PRTG = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTG, 0x80)) {
|
If (PRTG & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
@ -421,13 +421,13 @@ Device (LNKH)
|
||||||
// Disable method
|
// Disable method
|
||||||
Method (_DIS, 0, Serialized)
|
Method (_DIS, 0, Serialized)
|
||||||
{
|
{
|
||||||
Store (0x80, PRTH)
|
PRTH = 0x80
|
||||||
}
|
}
|
||||||
|
|
||||||
// Possible Resource Settings for this Link
|
// Possible Resource Settings for this Link
|
||||||
Name (_PRS, ResourceTemplate()
|
Name (_PRS, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared)
|
IRQ (Level, ActiveLow, Shared)
|
||||||
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
{ 3, 4, 5, 6, 7, 10, 11, 12, 14, 15 }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -436,15 +436,15 @@ Device (LNKH)
|
||||||
{
|
{
|
||||||
Name (RTLH, ResourceTemplate()
|
Name (RTLH, ResourceTemplate()
|
||||||
{
|
{
|
||||||
IRQ(Level, ActiveLow, Shared) {}
|
IRQ (Level, ActiveLow, Shared) {}
|
||||||
})
|
})
|
||||||
CreateWordField(RTLH, 1, IRQ0)
|
CreateWordField (RTLH, 1, IRQ0)
|
||||||
|
|
||||||
// Clear the WordField
|
// Clear the WordField
|
||||||
Store (Zero, IRQ0)
|
IRQ0 = 0
|
||||||
|
|
||||||
// Set the bit from PRTH
|
// Set the bit from PRTH
|
||||||
ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
|
IRQ0 = 1 << (PRTH & 0x0f)
|
||||||
|
|
||||||
Return (RTLH)
|
Return (RTLH)
|
||||||
}
|
}
|
||||||
|
@ -452,19 +452,19 @@ Device (LNKH)
|
||||||
// Set Resource Setting for this IRQ link
|
// Set Resource Setting for this IRQ link
|
||||||
Method (_SRS, 1, Serialized)
|
Method (_SRS, 1, Serialized)
|
||||||
{
|
{
|
||||||
CreateWordField(Arg0, 1, IRQ0)
|
CreateWordField (Arg0, 1, IRQ0)
|
||||||
|
|
||||||
// Which bit is set?
|
// Which bit is set?
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit (IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTH)
|
PRTH = Local0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
{
|
{
|
||||||
If(And(PRTH, 0x80)) {
|
If (PRTH & 0x80) {
|
||||||
Return (0x9)
|
Return (0x9)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0xb)
|
Return (0xb)
|
||||||
|
|
Loading…
Reference in a new issue