summary refs log tree commit diff stats
path: root/hw (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Get rid of _t suffix"Anthony Liguori2009-10-01226-2225/+2225
| | | | | | | | | | | | In the very least, a change like this requires discussion on the list. The naming convention is goofy and it causes a massive merge problem. Something like this _must_ be presented on the list first so people can provide input and cope with it. This reverts commit 99a0949b720a0936da2052cb9a46db04ffc6db29. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Get rid of _t suffixmalc2009-10-01226-2225/+2225
| | | | | | | Some not so obvious bits, slirp and Xen were left alone for the time being. Signed-off-by: malc <av1474@comtv.ru>
* escc: fix another coding style nitMichael S. Tsirkin2009-09-301-2/+2
| | | | | | | | | Fix another place with =- to be "= -". to avoid confusion with old-style "-=" (which we also have, and needs to be fixed). Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* twl92230: fix old style increment/decrement usageMichael S. Tsirkin2009-09-301-2/+2
| | | | | | | | Modern compilers do not parse "=-" as decrement: you must use "-=" for that. Same for "=+"/"+=". Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* omap_dma: fix unbalanced { in commented out codeMichael S. Tsirkin2009-09-301-1/+3
| | | | | | | Fix unbalanced {} in commented out code. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* escc: fix coding style nitMichael S. Tsirkin2009-09-301-2/+2
| | | | | | | | | Put space between = and - assigning a negative number to avoid confusion with old-style "-=" (which we also have, and needs to be fixed). Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* eepro100: Fix format strings in debug messagesStefan Weil2009-09-261-7/+7
| | | | | | | size_t arguments need %zu instead of %d. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Replace sprintf by snprintfStefan Weil2009-09-261-3/+3
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Remove unused codeStefan Weil2009-09-261-4/+0
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Enhanced logging and commentsStefan Weil2009-09-261-85/+130
| | | | | | | | * Use TRACE macro to allow different logging flags. * Add new debugging messages and clean existing ones. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix coding style issueMark McLoughlin2009-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Replace: if (-1 == foo()) with: if (foo() == -1) While this coding style is not in direct contravention of our currently ratified CODING_STYLE treaty, it could be argued that the Article 3 of the European Convention on Human Rights (prohibiting torture and "inhuman or degrading treatment") reads on the matter. [This commit message was brought to you without humour, as is evidenced by the absence of any emoticons] Signed-off-by: Mark McLoughlin <markmc@redhat.com> Cc: Avi Kivity <avi@redhat.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* gcc wants 1st static and then constJuan Quintela2009-09-251-1/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* static and inline should came before the type of the functionsJuan Quintela2009-09-255-6/+6
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Use proper typedef syntaxJuan Quintela2009-09-251-2/+2
| | | | | | | Why this ever compiled is a mistery to me. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix spelling in commentStefan Weil2009-09-251-1/+1
| | | | | | | | replace Convery -> Convert Cc: Paul Brook <paul@codesourcery.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Suppress some variants of English in commentsStefan Weil2009-09-251-1/+1
| | | | | | | Replace surpress, supress by suppress. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix Sparse warning about invalid access past the end of 'mode'Blue Swirl2009-09-211-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparse warning about obsolete struct initializerBlue Swirl2009-09-211-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add 'static' to please SparseBlue Swirl2009-09-211-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparse warnings about using plain integer as NULL pointerBlue Swirl2009-09-2114-40/+40
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile ne2000 only onceBlue Swirl2009-09-201-1/+0
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ioports: remove unused env parameter and compile only onceBlue Swirl2009-09-205-29/+27
| | | | | | | The CPU state parameter is not used, remove it and adjust callers. Now we can compile ioport.c once for all targets. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile msix only onceBlue Swirl2009-09-204-28/+36
| | | | | | Get page size in device init. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile loader only onceBlue Swirl2009-09-2031-37/+1005
| | | | | | | | | | | | | Callers must pass ELF machine, byte swapping and symbol LSB clearing information to ELF loader. A.out loader needs page size information, pass that too as a parameter. Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw. Adjust callers. Also use target_phys_addr_t instead of target_ulong for addresses: loader addresses aren't virtual. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile wdt_i6300esb only onceBlue Swirl2009-09-202-1/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* PPC: make system bus parent of PCI busBlue Swirl2009-09-192-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ESP: convert to VMStateBlue Swirl2009-09-191-42/+22
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* audio: use muldiv64 where it makes sensemalc2009-09-182-4/+4
| | | | Signed-off-by: malc <av1474@comtv.ru>
* qemu serial: lost tx irqs (affecting FreeBSD's new uart(4) driver)Juergen Lock2009-09-161-6/+4
| | | | | | | | | | | | | Well one problem seems to be the rx condition, ... if ((s->ier & UART_IER_RDI) && (s->lsr & UART_LSR_DR)) is not enough to trigger an irq, yet still causes the following conditions not to be checked anymore at all. Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Acked-by: Jan Kiszka <jan.kiszka@web.de> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* escc: fix IRQ routing, broken by 6c319c82223a1766c5d64a20051e5c6ab7b53951Aurelien Jarno2009-09-161-2/+2
| | | | | | | The logic of Zilog makes channel B the first device and channel A the second one. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* ide/isa: convert to qdev.Gerd Hoffmann2009-09-155-14/+58
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/pci: convert to qdev.Gerd Hoffmann2009-09-151-69/+117
| | | | | | | | | | | | | | | With this patch applied ide drives (when attached to a pci adapter) can be created via -device, like this: -drive if=none,id=mydisk,file=/path/to/disk.img -device ide-drive,drive=mydisk,bus=ide.0,unit=0 Note that creating a master on ide1 doesn't work that way. That is a side effect of qemu creating a cdrom automagically even if you don't ask for it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/pci: fix indentionGerd Hoffmann2009-09-151-6/+6
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/qdev: add ide bus.Gerd Hoffmann2009-09-152-1/+147
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* split away drive init from ide_init2()Gerd Hoffmann2009-09-152-32/+40
| | | | | | | | | This allows the ide bus being initialized without drives attached and the drives being attached and initialization later on as separate step. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* qdev/pci: add pci_create_noinit()Gerd Hoffmann2009-09-152-3/+9
| | | | | | | | Like pci_create_simple() but doesn't call qdev_init(), so one can set properties before initializing the device. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* mips malta: ensure that the serial ports are associated with a deviceAurelien Jarno2009-09-151-0/+9
| | | | | | | The serial ports should be present even if associated with a null device as some firmware wants to initialize them. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* hw/serial: don't create a char device if none is specifiedAurelien Jarno2009-09-151-1/+6
| | | | | | | When creating null devices, there is no way to ensure the unicity of the labels. Bail out with an error message instead. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* unbreak ppc/prepGerd Hoffmann2009-09-141-1/+4
| | | | | | | | | | Changes: * added isa bus, hooked up to the system bus. Not sure this is correct, but 'info pci' lists lists no pci-isa bridge in the machine ...). * switches the default cpu to one which actually works. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add an ISA bus version of m48t59Blue Swirl2009-09-143-17/+80
| | | | | | | Many thanks to Gerd Hoffmann for finding and fixing a bug in the initial version. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Linux task preemption on Versatile boardDaniel Jacobowitz2009-09-141-2/+3
| | | | | | | | | | Recent versions of the Linux kernel will not preempt CPU-intensive tasks unless the clock used by sched_clock() works. On -M versatilepb that's the 24MHz timer in the system controller. It's a very simple timer, so implement it. Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* pflash_cfi01: Correct debug build, no functional changes.Edgar E. Iglesias2009-09-141-11/+12
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* ne2000-isa: Do not free memory owned by qdevmalc2009-09-141-2/+0
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Sparc64: make system bus parent of PCI busBlue Swirl2009-09-131-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* x86: move a declaration to headerBlue Swirl2009-09-131-2/+0
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* x86: add 'const'Blue Swirl2009-09-131-6/+7
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is ↵Reimar Döffinger2009-09-121-3/+3
| | | | | | | enabled const. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix xen build after sys-queue renamingJan Kiszka2009-09-121-1/+1
| | | | | Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix sys-queue.h conflict for goodBlue Swirl2009-09-1215-92/+92
| | | | | | | | | | | | | | | Problem: Our file sys-queue.h is a copy of the BSD file, but there are some additions and it's not entirely compatible. Because of that, there have been conflicts with system headers on BSD systems. Some hacks have been introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896, f40d753718c72693c5f520f0d9899f6e50395e94, 96555a96d724016e13190b28cffa3bc929ac60dc and 3990d09adf4463eca200ad964cc55643c33feb50 but the fixes were fragile. Solution: Avoid the conflict entirely by renaming the functions and the file. Revert the previous hacks. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* audio: remove lsbindex/popcount in favour of host-utils's ctz32malc2009-09-121-2/+3
| | | | Signed-off-by: malc <av1474@comtv.ru>