Hi,
Please see voip-info.org for information about the XML files, and in general using a cisco phone in a non-CM environment. There is a serach box where you can put "cisco 7940", etc.
Note that depending on the FW currently installed on the phone you may or may not be able to upgrade in a single step.
Hope this helps, please rate post if it does!