I know that older cars have a TCM - transmission control module - as a separate module, sometimes close to ECU. Today I have learned that the TCM on my Nissan truck is integrated into the gearbox itself:
http://barsomauto.com/transmission_diferential_files/Nissan/xterra/Xterra_TCM.htm
