void start_ahci_device(AHCIQState *ahci)

{

    /* Map AHCI's ABAR (BAR5) */

    ahci->hba_base = qpci_iomap(ahci->dev, 5, &ahci->barsize);

    g_assert(ahci->hba_base);



    /* turns on pci.cmd.iose, pci.cmd.mse and pci.cmd.bme */

    qpci_device_enable(ahci->dev);

}

void start_ahci_device(AHCIQState *ahci)

{

    

    ahci->hba_base = qpci_iomap(ahci->dev, 5, &ahci->barsize);

    g_assert(ahci->hba_base);



    

    qpci_device_enable(ahci->dev);

}

    ahci->hba_base = qpci_iomap(ahci->dev, 5, &ahci->barsize);     g_assert(ahci->hba_base);
void FUNC_0(AHCIQState *VAR_0)

{

    

    VAR_0->hba_base = qpci_iomap(VAR_0->dev, 5, &VAR_0->barsize);

    g_assert(VAR_0->hba_base);



    

    qpci_device_enable(VAR_0->dev);

}

void FUNC_0(AHCIQState *VAR_0)
{ VAR_0->hba_base = qpci_iomap(VAR_0->dev, 5, &VAR_0->barsize); g_assert(VAR_0->hba_base); qpci_device_enable(VAR_0->dev); }