Rewrote ATA driver in C, allowing port IO in C.
Bugfixes to ATA code, removed extraneous code in port I/O functions.