libata: implement ata_host_alloc_pinfo() and ata_host_register()