summaryrefslogtreecommitdiffstats
path: root/hw
Commit message (Collapse)AuthorAgeFilesLines
* esp: handle "select without attention"Artyom Tarasenko2009-09-051-5/+23
| | | | | | | | | | | | | | | | | Up to now "select without attention" was handled the same way as "select with attention". According to http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR53C9X.txt select without ATN sends the CDB (Command Descriptor Block) directly, whereas select with ATN sends one message phase byte followed by 6, 10, or 12 command phase bytes. The attached patch implements the behaviour described above. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> [blauwirbel@gmail.com: cleaned up formatting] Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* mips malta: Fix fdc regression and use qdev for i8042 setupStefan Weil2009-09-045-22/+19
| | | | | | | | | | | | | | | | | 8baf73adf664e79eae201c3f618078a220a661d9 (qdev/isa: convert fdc) breaks MIPS Malta: Tried to create isa device isa-fdc with no isa bus present Fix this by creating an isa bus for piix4. This change also requires some more qdev related changes (similar changes were applied to pc.c) and allows cleaning of piix3/piix4 code. Thanks to Gerd Hoffmann for his hints. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Port handler_3 to use QDictLuiz Capitulino2009-09-041-2/+4
| | | | | | | | This commit ports command handlers that receive three arguments to use the new monitor's dictionary. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Port handler_2 to use QDictLuiz Capitulino2009-09-041-1/+3
| | | | | | | | This commit ports command handlers that receive two arguments to use the new monitor's dictionary. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Port handler_1 to use QDictLuiz Capitulino2009-09-041-2/+2
| | | | | | | | This commit ports command handlers that receive one argument to use the new monitor's dictionary. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add wrappers to functions used by the MonitorLuiz Capitulino2009-09-041-0/+5
| | | | | | | | | | | | | | | | | | | | | Some functions exported to be used by the Monitor as command handlers are also called in other places as regular functions. When those functions got ported to use the Monitor dictionary to pass argments, the callers will have to setup a dictionary to be able to call them. To avoid this problem, this commit add wrappers to those functions, so that we change the wrapper to accept the dictionary, letting the current functions as is. The following wrappers are being added: - do_help_cmd() - do_pci_device_hot_remove() Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: move cmd+irq from IDEState to IDEBus.Gerd Hoffmann2009-09-043-63/+55
| | | | | | | | These variables are per bus, not per drive. Lets move them and cleanup things a bit. And fix the cmd migration bug for real. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: pass down DriveInfo instead of BlockDriverStateGerd Hoffmann2009-09-0419-59/+46
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove typedef for bool from eepro100.cAmit Shah2009-09-041-2/+1
| | | | | | | | | | | | | | | | | | | | eepro100.c shouldn't have the need to do this in its local header file. And I recently started getting this: $ make -j3 ... CC x86_64-softmmu/eepro100.o /home/amit/src/qemu/hw/eepro100.c:112: error: two or more data types in declaration specifiers /home/amit/src/qemu/hw/eepro100.c:112: warning: useless type name in empty declaration make[1]: *** [eepro100.o] Error 1 so just remove the typedef and include <stdbool.h> instead. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* piix3: use new vmstate infrastructureJuan Quintela2009-09-041-27/+11
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* i440fx: use new vmstate infrastructureJuan Quintela2009-09-041-12/+24
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Update SaveVM versionsJuan Quintela2009-09-041-15/+25
| | | | | | | | | | Now that we have all fields belonging to a PCIDevice, save each field on the device that it belongs. This means moving pci_irq_levels from PCII440FXState to PIIX3State. Old formats are loaded, but we only save on the new saner format. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pci_irq_levels[] belong to PIIX3StateJuan Quintela2009-09-041-7/+6
| | | | | | | With previous cleanups, now it is possible to put it where it belongs Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Save irq_state into PCII440FXStateJuan Quintela2009-09-041-0/+2
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* We can add piix3_dev now to PIIX3IrqStateJuan Quintela2009-09-041-6/+6
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fold piix3_init() intto i440fx_initJuan Quintela2009-09-043-16/+8
| | | | | | | i440fx_init will now work properly if we don't setup piix3 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Introduce PIIX3IrqState for piix3 irq's stateJuan Quintela2009-09-041-3/+9
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Create PIIX3State instead of using PCIDevice for PIIX3Juan Quintela2009-09-041-9/+14
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* We want the argument pass to set_irq to be opaqueJuan Quintela2009-09-0413-19/+37
| | | | | | | piix_pci want to pass more things that the pic Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Move smm_enabled and isa_memory_mappings to PCII440FXStateJuan Quintela2009-09-041-10/+10
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Use PCII440FXState instead of generic PCIDeviceJuan Quintela2009-09-043-27/+38
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* low_set_irq is not used anywhereJuan Quintela2009-09-041-2/+0
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Split piix4 support from piix_pci.cJuan Quintela2009-09-043-72/+129
| | | | | | | Now mips_malta uses piix4 and pc's use piix_pci definitions Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* piix4 don't use pci_irq_levels at allJuan Quintela2009-09-041-2/+0
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Sparc32: port sun4c interrupt controller to VMState designBlue Swirl2009-08-311-22/+12
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port timers to VMState designBlue Swirl2009-08-311-37/+25
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: timer field is never NULLBlue Swirl2009-08-311-30/+12
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add VMState support for ptimersBlue Swirl2009-08-312-0/+28
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* esp (sparc32) Extra scsi data.Artyom Tarasenko2009-08-311-1/+2
| | | | | | | | | | | | | | | | > ESP: Message Accepted (12) > ESP: Transfer status (sense=0) > ESP: read reg[5]: 0x20 > ESP: read reg[4]: 0x07 > ESP: read reg[7]: 0x02 > Extra scsi data. Fatal error. It looks like "Message Accepted" shouldn't write a response. At least ESP_RFLAGS must definetely be 0. With the following fix OBP goes one step further: Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix gcc 3 warning: comparison is always true due to limited range of data typeBlue Swirl2009-08-291-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port Slavio misc devices to VMState designBlue Swirl2009-08-291-38/+19
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port ECC memory controller to VMState designBlue Swirl2009-08-291-33/+13
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port IOMMU to VMState designBlue Swirl2009-08-281-25/+12
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port DMA controller to VMState designBlue Swirl2009-08-281-22/+11
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port TCX to VMState designBlue Swirl2009-08-281-33/+21
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port interrupt controller to VMState designBlue Swirl2009-08-281-25/+28
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Suppress kraxelismsBlue Swirl2009-08-282-3/+5
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparc64 breakage: add dummy ISA irqsBlue Swirl2009-08-281-0/+8
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix merge of 59f2a78793b6d17634f39646d604e84af51e0919Blue Swirl2009-08-281-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix sb16 breakage due to unassigned s->irqmalc2009-08-281-0/+1
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Fix formattingmalc2009-08-282-2/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* e1000 cleanupJuan Quintela2009-08-271-5/+5
| | | | | | | | Remove un needed casts from void *. Use DO_UPCAST() instead of blind casts Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pcnet: Add pci_pcnet_{save/load} functions, then remove PCNetState pci_dev fieldJuan Quintela2009-08-271-13/+26
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pcnet: remove useless casts This are casts to the very type of the functionJuan Quintela2009-08-271-6/+6
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pcnet: Change casts to DO_UPCAST() for PCIPCNetStateJuan Quintela2009-08-271-4/+4
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add pci_cirrus_vga_{save/load} functions, then remove vga.pci_dev useJuan Quintela2009-08-271-12/+27
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* cirrus_vga: Change casts to DO_UPCAST() for PCICirrusVGAStateJuan Quintela2009-08-271-5/+5
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* cirrus_vga: remove pointless cast from void *Juan Quintela2009-08-271-5/+5
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add pci_ne2000_{save/load} functions, then remove pci_dev NE2000State fieldJuan Quintela2009-08-272-17/+30
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* We need PCINE2000State for save/load functionsJuan Quintela2009-08-271-5/+5
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud