Statistics
| Branch: | Revision:

root / hw / etraxfs.h @ 5ef98b47

History | View | Annotate | Download (1.7 kB)

1 5ef98b47 edgar_igl
/*
2 5ef98b47 edgar_igl
 * QEMU ETRAX System Emulator
3 5ef98b47 edgar_igl
 *
4 5ef98b47 edgar_igl
 * Copyright (c) 2008 Edgar E. Iglesias, Axis Communications AB.
5 5ef98b47 edgar_igl
 *
6 5ef98b47 edgar_igl
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 5ef98b47 edgar_igl
 * of this software and associated documentation files (the "Software"), to deal
8 5ef98b47 edgar_igl
 * in the Software without restriction, including without limitation the rights
9 5ef98b47 edgar_igl
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 5ef98b47 edgar_igl
 * copies of the Software, and to permit persons to whom the Software is
11 5ef98b47 edgar_igl
 * furnished to do so, subject to the following conditions:
12 5ef98b47 edgar_igl
 *
13 5ef98b47 edgar_igl
 * The above copyright notice and this permission notice shall be included in
14 5ef98b47 edgar_igl
 * all copies or substantial portions of the Software.
15 5ef98b47 edgar_igl
 *
16 5ef98b47 edgar_igl
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 5ef98b47 edgar_igl
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 5ef98b47 edgar_igl
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 5ef98b47 edgar_igl
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 5ef98b47 edgar_igl
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 5ef98b47 edgar_igl
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 5ef98b47 edgar_igl
 * THE SOFTWARE.
23 5ef98b47 edgar_igl
 */
24 5ef98b47 edgar_igl
25 5ef98b47 edgar_igl
#include "etraxfs_dma.h"
26 5ef98b47 edgar_igl
27 5ef98b47 edgar_igl
struct etraxfs_pic
28 5ef98b47 edgar_igl
{
29 5ef98b47 edgar_igl
    qemu_irq *irq;
30 5ef98b47 edgar_igl
    qemu_irq *nmi;
31 5ef98b47 edgar_igl
    qemu_irq *guru;
32 5ef98b47 edgar_igl
33 5ef98b47 edgar_igl
    void *internal;
34 5ef98b47 edgar_igl
};
35 5ef98b47 edgar_igl
36 5ef98b47 edgar_igl
struct etraxfs_pic *etraxfs_pic_init(CPUState *env, target_phys_addr_t base);
37 5ef98b47 edgar_igl
void etraxfs_timer_init(CPUState *env, qemu_irq *irqs, qemu_irq *nmi,
38 5ef98b47 edgar_igl
                        target_phys_addr_t base);
39 5ef98b47 edgar_igl
void *etraxfs_eth_init(NICInfo *nd, CPUState *env,
40 5ef98b47 edgar_igl
                       qemu_irq *irq, target_phys_addr_t base);
41 5ef98b47 edgar_igl
void etraxfs_ser_init(CPUState *env, qemu_irq *irq, CharDriverState *chr,
42 5ef98b47 edgar_igl
                      target_phys_addr_t base);