Your floor will need a good cleaning and some sanding to remove any loose paint and roughen the surface. Wipe it off once again to remove dust and your ready to apply an epoxy. Epoxy floor paints can be applied to both raw (unpainted) and previously painted floors without the need for a primer. The key to lasting success is the preparation.
Not all epoxies are the same. Check with the manufacture for preparation recommendations.