Help - Search - Members - Calendar
Full Version: Dual Ethernet DSDT patch
Project OS X Forums > Snow Leopard Guides & Tutorials > DSDT Patching
kDawg
Having problems getting both ethernet ports to register properly using DSDT. It seems very straight forward since each port sits at a different location however I can't get them to register properly, see ioreg. Anyone see what I may be missing?

CODE
Device (PEX4)
{
Name (_ADR, 0x001C0004)
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}

Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x09,
0x05
})
}

Method (_PRT, 0, NotSerialized)
{
If (LNot (PICF))
{
Return (PIC4)
}
Else
{
Return (API4)
}
}

Device (LAN0)
{
Name (_ADR, Zero)
Name (_SUN, 0x03)
Name (_PRW, Package (0x02)
{
0x0B,
0x04
})
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0C)
{
"built-in",
Buffer (One)
{
0x00
},

"location",
Buffer (0x02)
{
"1"
},

"network-type",
Buffer (0x09)
{
"ethernet"
},

"revision-id",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},

"model",
Buffer (0x22)
{
"Realtek RTL8111C Gigabit Ethernet"
},

"name",
Buffer (0x09)
{
"ethernet"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}

Device (PEX5)
{
Name (_ADR, 0x001C0005)
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}

Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x09,
0x05
})
}

Device (LAN1)
{
Name (_ADR, Zero)
Name (_SUN, 0x03)
Name (_PRW, Package (0x02)
{
0x0B,
0x04
})
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0C)
{
"built-in",
Buffer (One)
{
0x00
},

"location",
Buffer (0x02)
{
"2"
},

"network-type",
Buffer (0x09)
{
"ethernet"
},

"revision-id",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},

"model",
Buffer (0x22)
{
"Realtek RTL8111C Gigabit Ethernet"
},

"name",
Buffer (0x09)
{
"ethernet"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}


Attached are my ioreg and DSDT files.
Click to view attachment
Slice
It is a question or solution?
kDawg
QUOTE (Slice @ Aug 24 2009, 05:12 PM) *
It is a question or solution?



Here is my solution for a GA-EP45-UD3P
CODE
Device (PEX4)
{
Name (_ADR, 0x001C0004)
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}

Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x09,
0x05
})
}

Device (LAN0) // <-- Ethernet port 1
{
Name (_ADR, 0x00000000)
Name (_PRW, Package (0x02)
{
0x0B,
0x04
})

Method (_DSM, 4, NotSerialized)
{
Store (Package (0x08)
{
"built-in",
Buffer (One)
{
0x01
},

"location",
Buffer (0x02)
{
"1"
},

"device_type",
Buffer (0x09)
{
"ethernet"
},

"name",
Buffer (0x22)
{
"Realtek RTL8111/8168B PCI-E Gigabit"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}

Device (PEX5)
{
Name (_ADR, 0x001C0005)
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}

Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x09,
0x05
})
}

Device (LAN1) // <-- Ethernet port 2
{
Name (_ADR, 0x00000000)
Name (_PRW, Package (0x02)
{
0x0B,
0x04
})

Method (_DSM, 4, NotSerialized)
{
Store (Package (0x08)
{
"built-in",
Buffer (One)
{
0x01
},

"location",
Buffer (0x02)
{
"2"
},

"device_type",
Buffer (0x09)
{
"ethernet"
},

"name",
Buffer (0x22)
{
"Realtek RTL8111/8168B PCI-E Gigabit"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.