soc_dma.c (e5fbe28e5424d26fc2c25d0a7ecb927d3c80d5e8) soc_dma.c (0430891ce162b986c6e02a7729a942ecd2a32ca4)
1/*
2 * On-chip DMA controller framework.
3 *
4 * Copyright (C) 2008 Nokia Corporation
5 * Written by Andrzej Zaborowski <andrew@openedhand.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 or
10 * (at your option) version 3 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, see <http://www.gnu.org/licenses/>.
19 */
1/*
2 * On-chip DMA controller framework.
3 *
4 * Copyright (C) 2008 Nokia Corporation
5 * Written by Andrzej Zaborowski <andrew@openedhand.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 or
10 * (at your option) version 3 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, see <http://www.gnu.org/licenses/>.
19 */
20#include "qemu/osdep.h"
20#include "qemu-common.h"
21#include "qemu/timer.h"
22#include "hw/arm/soc_dma.h"
23
24static void transfer_mem2mem(struct soc_dma_ch_s *ch)
25{
26 memcpy(ch->paddr[0], ch->paddr[1], ch->bytes);
27 ch->paddr[0] += ch->bytes;

--- 334 unchanged lines hidden ---
21#include "qemu-common.h"
22#include "qemu/timer.h"
23#include "hw/arm/soc_dma.h"
24
25static void transfer_mem2mem(struct soc_dma_ch_s *ch)
26{
27 memcpy(ch->paddr[0], ch->paddr[1], ch->bytes);
28 ch->paddr[0] += ch->bytes;

--- 334 unchanged lines hidden ---