piix.c (ce73691e2588950a854b8b63a8ecd81f69eda458) piix.c (8e5c952b370b57beb642826882c80e1b66a9cf12)
1/*
2 * QEMU IDE Emulation: PCI PIIX3/4 support.
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2006 Openedhand Ltd.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

188 } else {
189 idedev = pci_ide->bus[di->bus].slave;
190 }
191 idedev->conf.blk = NULL;
192 monitor_remove_blk(blk);
193 blk_unref(blk);
194 }
195 }
1/*
2 * QEMU IDE Emulation: PCI PIIX3/4 support.
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2006 Openedhand Ltd.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

188 } else {
189 idedev = pci_ide->bus[di->bus].slave;
190 }
191 idedev->conf.blk = NULL;
192 monitor_remove_blk(blk);
193 blk_unref(blk);
194 }
195 }
196 qdev_reset_all(DEVICE(dev));
196 qdev_reset_all(dev);
197 return 0;
198}
199
200static void pci_piix_ide_exitfn(PCIDevice *dev)
201{
202 PCIIDEState *d = PCI_IDE(dev);
203 unsigned i;
204

--- 64 unchanged lines hidden ---
197 return 0;
198}
199
200static void pci_piix_ide_exitfn(PCIDevice *dev)
201{
202 PCIIDEState *d = PCI_IDE(dev);
203 unsigned i;
204

--- 64 unchanged lines hidden ---