Toyota engine swap information wanted

Forum: 

I have a Rocky (US), Daihatsu powered with an engine that likely won't pass our California smog test next time due to excessive emissions(pistons, rings, valve guides, etc)and no (zero!) parts are available. I've understand that Toyota acquired Daihatsu at some point and produced a Toyota powered version. Is anyone familiar with the two versions who can fill me in on difficulty of refitting with a Toyota engine, such as what engine family was used, if the tranny bolts up, what other parts would be required (ECU, after Cat O2 Sensor, wiring harness. In CA I can legally swap a same year or newer engine if it was used in a CA-approved vehicle if the CA smog system is intact. My car is in too good a condition to scrap.
contact: genejohnson@eathlinkdotcom

Both Toyota engines as they

Both Toyota engines as they both used the same unit so a straight swap.

You need your engine designation number which should be on a plate, 12R is mine but that's in an old F20.

It could possibly be a 3Ye.