move CPmDeviceInfo and CPmDeviceID into ffi