Add the generic device / ports and the sunlite code.

I actually have no idea. I found this code somewhere :).