File: puv3.h

package info (click to toggle)
qemu 1%3A5.2%2Bdfsg-11%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 203,452 kB
  • sloc: ansic: 2,327,684; pascal: 107,506; asm: 49,545; python: 40,498; sh: 35,286; cpp: 33,587; makefile: 15,209; perl: 6,965; xml: 3,028; objc: 1,460; php: 1,299; tcl: 1,070; yacc: 604; lex: 363; sql: 71; awk: 35; sed: 11
file content (40 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Misc PKUnity SoC declarations
 *
 * Copyright (C) 2010-2012 Guan Xuetao
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation, or any later version.
 * See the COPYING file in the top-level directory.
 */

#ifndef QEMU_HW_PUV3_H
#define QEMU_HW_PUV3_H

#define PUV3_REGS_OFFSET        (0x1000) /* 4K is reasonable */

/* Hardware interrupts */
#define PUV3_IRQS_NR            (32)

#define PUV3_IRQS_GPIOLOW0      (0)
#define PUV3_IRQS_GPIOLOW1      (1)
#define PUV3_IRQS_GPIOLOW2      (2)
#define PUV3_IRQS_GPIOLOW3      (3)
#define PUV3_IRQS_GPIOLOW4      (4)
#define PUV3_IRQS_GPIOLOW5      (5)
#define PUV3_IRQS_GPIOLOW6      (6)
#define PUV3_IRQS_GPIOLOW7      (7)
#define PUV3_IRQS_GPIOHIGH      (8)
#define PUV3_IRQS_PS2_KBD       (22)
#define PUV3_IRQS_PS2_AUX       (23)
#define PUV3_IRQS_OST0          (26)

/* All puv3_*.c use DPRINTF for debug. */
#ifdef DEBUG_PUV3
#define DPRINTF(fmt, ...) printf("%s: " fmt , __func__, ## __VA_ARGS__)
#else
#define DPRINTF(fmt, ...) do {} while (0)
#endif

#endif /* QEMU_HW_PUV3_H */