prototype for trm_detach and freeing all resources. While I'm there, handle better errors in trm_attach and remove the PCI_BASE_ADDR0 definition, since it's what PCIR_MAPS is used for. MFC after: 3 days
device_get_softc() is used.
Reviewed by: mux, scottl Approved by: mux, scottl