ide: add ide_find_port() helper