1) merge almost identical cs_{isa, pccard}_attach() into cs_attach()
2) staticize csintr()
3) add cs_detach()
4) in cs_attach()
- move ifmedia_init() to the beginning of cs_attach(), so that
ifmedia_removeall() can be called safely if cs_attach() fails
- add KASSERT to make sure either I/O port or I/O memory is set up before
entering cs_attach()
- set up intr in the last step of cs_attach()
- remove unnecessary NULL check after malloc(), since M_WAITOK flag is
used here
- use newly added cs_detach() as error handling routine
- use `#if 0' to comment out code, instead of fixing them in the comment.
this makes the code easy to read as well as the comment