pl181.c (913fbe9a6a05296132b5fab431bf1c377a0bbf1a) pl181.c (67cc32ebfd8c0ee3fcdb26780a8991baf5eb1d45)
1/*
2 * Arm PrimeCell PL181 MultiMedia Card Interface
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

41 uint32_t response[4];
42 uint32_t datactrl;
43 uint32_t datacnt;
44 uint32_t status;
45 uint32_t mask[2];
46 int32_t fifo_pos;
47 int32_t fifo_len;
48 /* The linux 2.6.21 driver is buggy, and misbehaves if new data arrives
1/*
2 * Arm PrimeCell PL181 MultiMedia Card Interface
3 *
4 * Copyright (c) 2007 CodeSourcery.
5 * Written by Paul Brook
6 *
7 * This code is licensed under the GPL.
8 */

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

41 uint32_t response[4];
42 uint32_t datactrl;
43 uint32_t datacnt;
44 uint32_t status;
45 uint32_t mask[2];
46 int32_t fifo_pos;
47 int32_t fifo_len;
48 /* The linux 2.6.21 driver is buggy, and misbehaves if new data arrives
49 while it is reading the FIFO. We hack around this be defering
49 while it is reading the FIFO. We hack around this by deferring
50 subsequent transfers until after the driver polls the status word.
51 http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4446/1
52 */
53 int32_t linux_hack;
54 uint32_t fifo[PL181_FIFO_LEN];
55 qemu_irq irq[2];
56 /* GPIO outputs for 'card is readonly' and 'card inserted' */
57 qemu_irq cardstatus[2];

--- 470 unchanged lines hidden ---
50 subsequent transfers until after the driver polls the status word.
51 http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4446/1
52 */
53 int32_t linux_hack;
54 uint32_t fifo[PL181_FIFO_LEN];
55 qemu_irq irq[2];
56 /* GPIO outputs for 'card is readonly' and 'card inserted' */
57 qemu_irq cardstatus[2];

--- 470 unchanged lines hidden ---