PowerStatus: fix a possible division error.

* also fix some types misuses.
ata_adapter: check the secondary flag for the 2nd channel.

* ide_adapter: likewise.
PCI: moved IDE api flags to PCI.h