sdhci-pci.c (760df0d121a836dcbf3726b80b820115aef21b30) sdhci-pci.c (b69c3c21a5d11075d42100d5cfe0a736593fae6b)
1/*
2 * SDHCI device on PCI
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *

--- 36 unchanged lines hidden (view full) ---

45 s->dma_as = pci_get_address_space(dev);
46 pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->iomem);
47}
48
49static void sdhci_pci_exit(PCIDevice *dev)
50{
51 SDHCIState *s = PCI_SDHCI(dev);
52
1/*
2 * SDHCI device on PCI
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *

--- 36 unchanged lines hidden (view full) ---

45 s->dma_as = pci_get_address_space(dev);
46 pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->iomem);
47}
48
49static void sdhci_pci_exit(PCIDevice *dev)
50{
51 SDHCIState *s = PCI_SDHCI(dev);
52
53 sdhci_common_unrealize(s, &error_abort);
53 sdhci_common_unrealize(s);
54 sdhci_uninitfn(s);
55}
56
57static void sdhci_pci_class_init(ObjectClass *klass, void *data)
58{
59 DeviceClass *dc = DEVICE_CLASS(klass);
60 PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
61

--- 27 unchanged lines hidden ---
54 sdhci_uninitfn(s);
55}
56
57static void sdhci_pci_class_init(ObjectClass *klass, void *data)
58{
59 DeviceClass *dc = DEVICE_CLASS(klass);
60 PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
61

--- 27 unchanged lines hidden ---