ahci helper function implementation