Prepping Busted Window Casing for Drywall

The window casing (if that’s the proper term) is busted up from demo. How do I prep this for drywall the right way?

The window casing (if that’s the proper term) is busted up from demo. How do I prep this for drywall the right way?