I find that anything really familiar works for me when I'm writing. If I try to listen to something new, my brain tunes in and I can't concentrate on my work. Unless it's classical – pretty much anything orchestral works for me.
Hard bop, on the other hand, does not. :O