| Branch: | Revision:

root / hw / musicpal.c @ 1a1ea6f0

History | View | Annotate | Download (44.7 kB)

# Date Author Comment
2446333c 08/24/2010 06:22 pm Blue Swirl

Rearrange block headers

Changing block.h or blockdev.h resulted in recompiling most objects.

Move DriveInfo typedef and BlockInterfaceType enum definitions
to qemu-common.h and rearrange blockdev.h use to decrease churn.

Signed-off-by: Blue Swirl <>

1724f049 07/06/2010 06:36 pm Alex Williamson

qemu_ram_alloc: Add DeviceState and name parameters

These will be used to generate unique id strings for ramblocks. The name
field is required, the device pointer is optional as most callers don't
have a device. When there's no device or the device isn't a child of...

738012be 06/27/2010 07:04 pm Blue Swirl

Remove useless device dependency of HAS_AUDIO

System architecture dictates whether HAS_AUDIO is defined. It's then
useless to check for HAS_AUDIO in files which are only used on those
architectures which always have audio.

Signed-off-by: Blue Swirl <>

c1735af1 05/28/2010 10:48 pm Jan Kiszka

musicpal: Drop redundant reset call

Reset is now triggered after init, no need for explicit calls anymore.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Aurelien Jarno <>

5f9fc5ad 03/29/2010 10:23 pm Blue Swirl

Compile pflash_cfi02 only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

2d48377a 03/21/2010 09:47 pm Blue Swirl

Compile serial only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

07b064e9 01/24/2010 03:55 pm Jan Kiszka

Musicpal: Fix descriptor walk in eth_send

Commit 930c86820e introduced a regression to eth_send: eth_tx_desc_put
manipulates the host's tx descriptor copy before writing it back, but
two lines down the descriptor is evaluated again, leaving us with an
invalid next address if host and guest endianness differ. So this was...

64258229 01/23/2010 08:18 pm Jan Kiszka

Musicpal: Fix wm8750 I2C address

Commit b3a219883e uncovered that we attached the Wolfson with an I2C
address shifted left by one. Fixing this makes sound work again for
the Musicpal.

Signed-off-by: Jan Kiszka <>
Signed-off-by: malc <>

3a94dd18 12/03/2009 05:41 pm Mark McLoughlin

net: convert musicpal to NICState

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

3cd035d8 11/22/2009 11:27 pm Paul Brook

GPIO I2C rework

Reqrite bitbanging I2C implementation. New code improves stop/start
condition handling, and gives more accurate input line level.

Introduce intermediate abstraction layer for I2C bitbanging that
is not connected via a GPIO port.

Signed-off-by: Paul Brook <>

4c91cd28 10/27/2009 07:28 pm Gerd Hoffmann

musicpal: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

e23a1b33 10/07/2009 04:54 pm Markus Armbruster

New qdev_init_nofail()

Like qdev_init(), but terminate program via hw_error() instead of
returning an error value.

Use it instead of qdev_init() where terminating the program on failure
is okay, either because it's during machine construction, or because...

d5b61ddd 10/05/2009 05:32 pm Jan Kiszka

musicpal: Add VMState support

Register all relevant fields of Musicpal device states with the VMState
framework. This involves a few type changes of state variables.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

2e87c5b9 10/05/2009 05:32 pm Jan Kiszka

musicpal: Catch null TX qeueues

They likely represent invalid queues that should be skipped. We already
do this for RX queues. Wish I had a spec...

Credits go to malc for analyzing the issue and suggesting this fix.

Signed-off-by: Jan Kiszka <>...

708afdf3 10/05/2009 05:32 pm Jan Kiszka

musicpal: Rework GPIO input events

The qdev_gpio conversion of 343ec8e caused come polarity mismatch of key
event pins and left an overly complex solution behind. Take this chance
and refactor the GPIO input system of the Musicpal, moving it closer to

243cd13c 10/05/2009 05:32 pm Jan Kiszka

musicpal: Clean up typecasts

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

49fedd0d 10/05/2009 05:32 pm Jan Kiszka

musicpal: Coding style fixes

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

30624c92 10/05/2009 05:32 pm Jan Kiszka

musicpal: True reset support for GPIO

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

c88d6bde 10/05/2009 05:32 pm Jan Kiszka

musicpal: Make PIT emulation more robust

Stop the periodic timers of the PIT on reset, disabling via the control
register and invalid parameters.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

c227f099 10/02/2009 12:12 am Anthony Liguori

Revert "Get rid of _t suffix"

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...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time

Signed-off-by: malc <>

81a322d4 08/28/2009 04:43 am Gerd Hoffmann

qdev: add return value to init() callbacks.

Sorry folks, but it has to be. One more of these invasive qdev patches.

We have a serious design bug in the qdev interface: device init
callbacks can't signal failure because the init() callback has no
return value. This patch fixes it....

d60efc6b 08/25/2009 09:29 pm Blue Swirl

Make CPURead/WriteFunc structure 'const'

Signed-off-by: Blue Swirl <>

13f59cbf 08/23/2009 06:44 pm Andrzej Zaborowski

Remove the unnecessary and only global in musicpal.c

d074769c 08/23/2009 04:51 pm Andrzej Zaborowski

Make musicpal.c use the I2C device and the Marvell 88w8618 audio device

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

343ec8e4 08/23/2009 03:38 pm Benoit Canet

Musicpal qdev conversion: gpio (except I2C part), keyboard and lcd

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

751c6a17 07/27/2009 10:08 pm Gerd Hoffmann

kill drives_table

First step cleaning up the drives handling. This one does nothing but
removing drives_table[], still it became seriously big.

drive_get_index() is gone and is replaced by drives_get() which hands
out DriveInfo pointers instead of a table index. This needs adaption in...

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

a08d4367 06/29/2009 10:18 pm Jan Kiszka

Revert "Introduce reset notifier order"

This reverts commit 8217606e6edb49591b4a6fd5a0d1229cebe470a9 (and
updates later added users of qemu_register_reset), we solved the
problem it originally addressed less invasively.

Signed-off-by: Jan Kiszka <>...

1eed09cb 06/16/2009 11:18 pm Avi Kivity

Remove io_index argument from cpu_register_io_memory()

The parameter is always zero except when registering the three internal
io regions (ROM, unassigned, notdirty). Remove the parameter to reduce
the API's power, thus facilitating future change.

Signed-off-by: Avi Kivity <>...

463af534 06/09/2009 01:38 pm Mark McLoughlin

net: add fd_readv() handler to qemu_new_vlan_client() args

This, apparently, is the style we prefer - all VLANClientState
should be an argument to qemu_new_vlan_client().

Signed-off-by: Mark McLoughlin <>

cda9046b 06/09/2009 01:38 pm Mark McLoughlin

net: re-name vc->fd_read() to vc->receive()

VLANClientState's fd_read() handler doesn't read from file
descriptors, it adds a buffer to the client's receive queue.

Re-name the handlers to make things a little less confusing.

Signed-off-by: Mark McLoughlin <>

e3f5ec2b 06/09/2009 01:38 pm Mark McLoughlin

net: pass VLANClientState* as first arg to receive handlers

Give static type checking a chance to catch errors.

Signed-off-by: Mark McLoughlin <>

4f1c942b 06/09/2009 01:38 pm Mark McLoughlin

net: add return value to packet receive handler

This allows us to handle queue full conditions rather than dropping
the packet on the floor.

Signed-off-by: Mark McLoughlin <>

067a3ddc 05/26/2009 04:56 pm Paul Brook

Remove qdev irq sink handling

We have both IRQ sinks and GPIO inputs. These are in principle exactly
the same thing, so remove the former.

Signed-off-by: Paul Brook <>

02e2da45 05/23/2009 02:13 am Paul Brook

Add common BusState

Implement and use a common device bus state. The main side-effect is
that creating a bus and attaching it to a parent device are no longer
separate operations. For legacy code we allow a NULL parent, but that
should go away eventually....

8217606e 05/22/2009 06:50 pm Jan Kiszka

Introduce reset notifier order

Add the parameter 'order' to qemu_register_reset and sort callbacks on
registration. On system reset, callbacks with lower order will be
invoked before those with higher order. Update all existing users to the
standard order 0....

f80f9ec9 05/21/2009 04:47 pm Anthony Liguori

Convert machine registration to use module init functions

This cleans up quite a lot of #ifdefs, extern variables, and other ugliness.

Signed-off-by: Anthony Liguori <>

b47b50fa 05/15/2009 12:35 am Paul Brook

MusicPal qdev conversion

Signed-off-by: Paul Brook <>

cdbe40ca 05/15/2009 12:35 am Paul Brook

WM8750 qdev coversion

Signed-off-by: Paul Brook <>

fbe1b595 05/13/2009 07:56 pm Paul Brook

Remove vga_ram_size

The vga_ram_size argument to machine init functions always has the same
value, and is ignored by many machines (including SPARC32 which has an
obsolete ifdef for VGA_RAM_SIZE).

Remove it and push VGA_RAM_SIZE into vga_int.h.

Signed-off-by: Paul Brook <>

22d83b14 05/12/2009 02:33 pm Paul Brook

Push AUD_init down to devices

Now we can safely call AUD_init multiple times we can push it down to
individual audio devices, rather than having to pass it from the board

Signed-off-by: Paul Brook <>

0d9acba8 05/12/2009 02:02 pm Paul Brook

Make AUD_init failure fatal

Failure to initialize the audio subsystem is not handled consistently.
Where it is handled it has guest visible effects, which is wrong.
We already have a "nosound" audio driver as a last resort, so trying to
proceed without an audio backend seems pointless....

2ac71179 05/08/2009 04:35 am Paul Brook

Replace cpu_abort with hw_error

Signed-off-by: Paul Brook <>

b946a153 04/17/2009 08:11 pm aliguori

Introduce VLANClientState::cleanup() (Mark McLoughlin)

We're currently leaking memory and file descriptors on device

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

190cd021 04/11/2009 08:33 pm pbrook

Remove redundant ram_require machine properly.

Signed-off-by: Paul Brook <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

930c8682 04/10/2009 04:24 am pbrook

Musicpal ram access cleanup.

Signed-off-by: Paul Brook <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

bf9b48af 03/28/2009 07:28 pm aliguori

musicpal: Fix regression caused by 6839 (Jan Kiszka)

Pass correct DisplayState field to is_surface_bgr().

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

7b5d76da 03/13/2009 05:02 pm aliguori

DisplayAllocator interface (Stefano Stabellini)

Hi all,
this patch adds a DisplayAllocator interface that allows display
frontends (sdl in particular) to provide a preallocated display buffer
for the graphical backend to use.

Whenever a graphical backend cannot use...

718ec0be 03/10/2009 09:25 pm malc

musicpal: Reorganize IO memory handling (Jan Kiszka)

The new MMIO interface requires non-overlapping slots. Reorganize the
musicpal accordingly, fixing a regression for the Ethernet emulation.

Signed-off-by: Jan Kiszka <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

487414f1 02/06/2009 12:06 am aliguori

hw: remove error handling from qemu_malloc() callers (Avi Kivity)

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

3023f332 01/16/2009 09:04 pm aliguori

graphical_console_init change (Stefano Stabellini)

Patch 5/7

This patch changes the graphical_console_init function to return an
allocated DisplayState instead of a QEMUConsole.

This patch contains just the graphical_console_init change and few other
modifications mainly in console.c and vl.c....

8927bcfd 01/16/2009 12:07 am aliguori

remove bgr (Stefano Stabellini)

Do not handle bgr host displays in the backends.

Right now a bgr flag exists so that sdl can set it, if the SDL_Surface
is bgr.
Afterwards the graphic device (e.g. vga.c) does the needed conversion.

With this patch series is sdl that is responsible for rendering the format...

0ae18cee 01/13/2009 09:39 pm aliguori

Check NIC model in some NIC init functions (Mark McLoughlin)

Some NIC init functions are only called when that model is
the only valid model. In that case, it makes sense to use
qemu_check_nic_model() from the NIC init function itself.

Signed-off-by: Mark McLoughlin <>...

7a9f6e4a 01/07/2009 07:48 pm aliguori

Add a -net name=foo parameter (Mark McLoughlin)

Allow the user to supply a vlan client name on the command line.

This is probably only useful for management tools so that they can
use their own names rather than parsing the output of 'info network'.

Signed-off-by: Mark McLoughlin <>...

bf38c1a0 01/07/2009 07:42 pm aliguori

Add a model string to VLANClientState (Mark McLoughlin)

Don't lose track of what type/model a vlan client is so that we can
e.g. assign a global per-model id to clients.

The entire patch is basically a tedious excercise in making sure the
type/model string gets propagated down to qemu_new_vlan_client()....

8da3ff18 12/01/2008 08:59 pm pbrook

Change MMIO callbacks to use offsets, not absolute addresses.

Signed-off-by: Paul Brook <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

0e1f5a0c 11/24/2008 09:29 pm aliguori

Introduce accessors for DisplayState (Stefano Stabellini)

Introducing some accessors:


Signed-off-by: Stefano Stabellini <>
Signed-off-by: Anthony Liguori <>...

3d878caa 10/28/2008 12:59 pm balrog

Set default max_cpus to one.

Clean-up machine definitions.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b1d8e52e 10/26/2008 03:43 pm blueswir1

Fix undeclared symbol warnings from sparse

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b2097003 10/07/2008 11:39 pm aliguori

machine struct - specify max_cpus at the per machine level (Jes Sorensen)

Introduce a max_cpus per-machine variable, allowing individual boards
to limit it's number of CPUs. Check requested number of CPUs in setup
code and exit if it exceeds the supported number for the machine....

4b32e168 10/07/2008 11:34 pm aliguori

machine struct - use C99 initializers (Jes Sorensen)

Modify all the machine struct declarations to use C99 initializers.
This patch has no functional changes.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>...

c60e08d9 07/01/2008 07:24 pm pbrook

Implement resolution switching in common console code.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

c8256f9d 06/09/2008 01:45 am balrog

Enhance sendkey with key hold time (Jan Kiszka).

Current key injection via the monitor basically generates no key hold
time. This is fine for keyboard emulations that have their own queues,
but it causes troubles for those how don't (like the MusicPal - it...

167bc3d2 06/02/2008 05:04 am balrog

MusicPal: Restore display size after invalidation (Jan Kiszka).

Make sure that the MusicPal display is set to the correct size again
after some other console may have used a different size.

Signed-off-by: Jan Kiszka <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

7c6ce4ba 05/17/2008 09:18 pm balrog

musicpal: Improve button handling (Jan Kiszka).

Looking at the hold-button-on-powerup thing, I came across some
improvable parts in the MusicPal's button handling. This patch allows
for repeated wheel events by keying the arrow keys pressed, corrects
some constant name, and introduces an explicitly maintained GPIO_ISR...

a350e694 05/07/2008 04:52 pm balrog

Avoid arithmetics on void * in MusicPal audio code (Jan Kiszka).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

4f3cb3be 05/06/2008 06:01 pm balrog

MusicPal: fix gcc4 build (Jan Kiszka).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b6cd0ea1 05/05/2008 12:42 am aurel32

8250: Customized base baudrate

(Jan Kiszka)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

4001a81e 05/04/2008 06:47 pm balrog

MusicPal mono playback support.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

91834991 05/04/2008 03:18 pm balrog

Remove debug sample rate slowdown.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

af83e09e 05/04/2008 03:15 pm balrog

Use external clock in wm8750 slave mode.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b0f6edb1 05/02/2008 04:35 am balrog

Musicpal: convert to ram_addr_t

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

aa923101 04/28/2008 02:31 am balrog

musicpal: Fix output level of 8-bit samples (Jan Kiszka).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

662caa6f 04/26/2008 03:00 pm balrog

Let WM8750 users write to audio buffer directly.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

0266f2c7 04/25/2008 03:59 am balrog

Fix MusicPal LCD on non-32 bpp displays or with -nographic.

Prevents an immediate segfault.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

24859b68 04/24/2008 10:21 pm balrog

ARM: Marvell 88w8618 / MusicPal emulation (Jan Kiszka).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162