The map_eeprom_data function is currently unknown. The map entries provided were observed via bus-snooping of the vendor software on my device. Other devices may need additional values.
The new code is based on code from the fx2lafw driver.