amd/agesa,cimx: Rename ACPI OS detection methods

Try to 'standardize' the otherwise peculiar method naming to be somewhat
more in-line with other ACPI implementations. This makes it easier to
compare with vendor DSDT dumps for example.

Change-Id: I5ba54f7361796669ac0cab7ff91e7de43b22e846
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/5888
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
Edward O'Callaghan 2014-05-31 13:57:52 +10:00 committed by Kyösti Mälkki
parent 7a22b0976c
commit f7d8f09d76
48 changed files with 336 additions and 336 deletions

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -410,25 +410,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1375,7 +1375,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1622,7 +1622,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -410,25 +410,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1381,7 +1381,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1628,7 +1628,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -374,25 +374,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1292,7 +1292,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1598,7 +1598,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -30,30 +30,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -373,25 +373,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1308,7 +1308,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1613,7 +1613,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1673,7 +1673,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -29,7 +29,7 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */

View File

@ -31,7 +31,7 @@
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */

View File

@ -30,30 +30,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -374,25 +374,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1291,7 +1291,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1521,7 +1521,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -89,7 +89,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "AMD-K8", "AMDACPI", 100925440)
0x0918,,, 0x0918,,,
, TypeStatic) //0-CF7h , TypeStatic) //0-CF7h
}) })
\_SB.OSTP () \_SB.OSVR ()
CreateDWordField (BUF0, 0x3E, VLEN) CreateDWordField (BUF0, 0x3E, VLEN)
CreateDWordField (BUF0, 0x36, VMAX) CreateDWordField (BUF0, 0x36, VMAX)
CreateDWordField (BUF0, 0x32, VMIN) CreateDWordField (BUF0, 0x32, VMIN)

View File

@ -105,7 +105,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "AMD-FAM10", "AMDACPI", 100925440)
0x0918,,, 0x0918,,,
, TypeStatic) //0-CF7h , TypeStatic) //0-CF7h
}) })
\_SB.OSTP () \_SB.OSVR ()
CreateDWordField (BUF0, 0x3E, VLEN) CreateDWordField (BUF0, 0x3E, VLEN)
CreateDWordField (BUF0, 0x36, VMAX) CreateDWordField (BUF0, 0x36, VMAX)
CreateDWordField (BUF0, 0x32, VMIN) CreateDWordField (BUF0, 0x32, VMIN)

View File

@ -30,30 +30,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -31,7 +31,7 @@
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1676,7 +1676,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -30,30 +30,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -30,30 +30,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -29,7 +29,7 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */

View File

@ -31,6 +31,6 @@
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1655,7 +1655,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1655,7 +1655,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1578,7 +1578,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -410,25 +410,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1381,7 +1381,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1628,7 +1628,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -410,25 +410,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1375,7 +1375,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1622,7 +1622,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1655,7 +1655,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1655,7 +1655,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1655,7 +1655,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -31,30 +31,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -122,7 +122,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "LXBIOS", "LXB-DSDT", 1)
0x0918,,, 0x0918,,,
, TypeStatic) //0-CF7h , TypeStatic) //0-CF7h
}) })
\_SB.OSTP () \_SB.OSVR ()
CreateDWordField (BUF0, 0x3E, VLEN) CreateDWordField (BUF0, 0x3E, VLEN)
CreateDWordField (BUF0, 0x36, VMAX) CreateDWordField (BUF0, 0x36, VMAX)
CreateDWordField (BUF0, 0x32, VMIN) CreateDWordField (BUF0, 0x32, VMIN)

View File

@ -31,7 +31,7 @@
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1673,7 +1673,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -89,7 +89,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "AMD-K8", "AMDACPI", 100925440)
0x0918,,, 0x0918,,,
, TypeStatic) //0-CF7h , TypeStatic) //0-CF7h
}) })
\_SB.OSTP () \_SB.OSVR ()
CreateDWordField (BUF0, 0x3E, VLEN) CreateDWordField (BUF0, 0x3E, VLEN)
CreateDWordField (BUF0, 0x36, VMAX) CreateDWordField (BUF0, 0x36, VMAX)
CreateDWordField (BUF0, 0x32, VMIN) CreateDWordField (BUF0, 0x32, VMIN)

View File

@ -30,30 +30,30 @@ Name(HPBA, 0xFED00000) /* Base address of HPET table */
Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
} }

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -415,25 +415,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1350,7 +1350,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1655,7 +1655,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -374,25 +374,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1292,7 +1292,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1598,7 +1598,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -404,25 +404,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1639,7 +1639,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -404,25 +404,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1638,7 +1638,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -55,7 +55,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, 0) /* Default interrupt model is PIC */ Name(PMOD, 0) /* Default interrupt model is PIC */
@ -458,23 +458,23 @@ DefinitionBlock (
} }
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(CIRQ, 0x00, NotSerialized){ Method(CIRQ, 0x00, NotSerialized){
@ -1275,7 +1275,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1594,7 +1594,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {
* Store(0,\PWDE) * Store(0,\PWDE)

View File

@ -55,7 +55,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -450,23 +450,23 @@ DefinitionBlock (
#include "acpi/routing.asl" #include "acpi/routing.asl"
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1291,7 +1291,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1610,7 +1610,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {
* Store(0,\PWDE) * Store(0,\PWDE)

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -433,25 +433,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1386,7 +1386,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1711,7 +1711,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -374,25 +374,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1292,7 +1292,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1598,7 +1598,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -54,7 +54,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -374,25 +374,25 @@ DefinitionBlock (
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1292,7 +1292,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1598,7 +1598,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {

View File

@ -55,7 +55,7 @@ DefinitionBlock (
Name(UOM9, 6) Name(UOM9, 6)
/* Some global data */ /* Some global data */
Name(OSTP, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */ Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
Name(OSV, Ones) /* Assume nothing */ Name(OSV, Ones) /* Assume nothing */
Name(PMOD, One) /* Assume APIC */ Name(PMOD, One) /* Assume APIC */
@ -450,23 +450,23 @@ DefinitionBlock (
#include "acpi/routing.asl" #include "acpi/routing.asl"
Scope(\_SB) { Scope(\_SB) {
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }
Method(_PIC, 0x01, NotSerialized) Method(_PIC, 0x01, NotSerialized)
@ -1275,7 +1275,7 @@ DefinitionBlock (
} }
Method(_INI) { Method(_INI) {
If(LEqual(OSTP,3)){ /* If we are running Linux */ If(LEqual(OSVR,3)){ /* If we are running Linux */
Store(zero, NSEN) Store(zero, NSEN)
Store(one, NSDO) Store(one, NSDO)
Store(one, NSDI) Store(one, NSDI)
@ -1594,7 +1594,7 @@ DefinitionBlock (
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {
* Store(0,\PWDE) * Store(0,\PWDE)

View File

@ -23,7 +23,7 @@ Scope (\_SB)
{ {
Name (OSTB, Ones) Name (OSTB, Ones)
Method (OSTP, 0, NotSerialized) Method (OSVR, 0, NotSerialized)
{ {
If (LEqual (^OSTB, Ones)) If (LEqual (^OSTB, Ones))
{ {

View File

@ -8,7 +8,7 @@ Scope (\_SB)
{ {
Name (OSTB, Ones) Name (OSTB, Ones)
Method (OSTP, 0, NotSerialized) Method (OSVR, 0, NotSerialized)
{ {
If (LEqual (^OSTB, Ones)) If (LEqual (^OSTB, Ones))
{ {

View File

@ -47,7 +47,7 @@ Device(AZHD) { /* 0:14.2 - HD Audio */
Method (_INI, 0, NotSerialized) Method (_INI, 0, NotSerialized)
{ {
If (LEqual (OSTP, 0x03)) If (LEqual (OSVR, 0x03))
{ {
Store (Zero, NSEN) Store (Zero, NSEN)
Store (One, NSDO) Store (One, NSDO)

View File

@ -177,30 +177,30 @@ Method(_INI, 0) {
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* TODO: It is unstable. */ /* TODO: It is unstable. */
//#include "acpi/AmdImc.asl" /* Hudson IMC function */ //#include "acpi/AmdImc.asl" /* Hudson IMC function */
//ITZE() /* enable IMC Fan Control*/ //ITZE() /* enable IMC Fan Control*/
} /* End Method(_SB._INI) */ } /* End Method(_SB._INI) */
Method(CkOT, 0){ Method(OSFL, 0){
if(LNotEqual(OSTP, Ones)) {Return(OSTP)} /* OS version was already detected */ if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI,Local1)) if(CondRefOf(\_OSI,Local1))
{ {
Store(1, OSTP) /* Assume some form of XP */ Store(1, OSVR) /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSTP) Store(2, OSVR)
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSTP) /* Linux */ Store(3, OSVR) /* Linux */
} Else { } Else {
Store(4, OSTP) /* Gotta be WinCE */ Store(4, OSVR) /* Gotta be WinCE */
} }
} }
Return(OSTP) Return(OSVR)
} }

View File

@ -178,7 +178,7 @@ Method(_INI, 0) {
/* DBGO("\n") */ /* DBGO("\n") */
/* Determine the OS we're running on */ /* Determine the OS we're running on */
CkOT() OSFL()
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\SBRI, 0x13)) { /*if (LLessEqual(\SBRI, 0x13)) {