qemu/include/hw/unicore32/puv3.h
<<
>>
Prefs
   1/*
   2 * Misc PKUnity SoC declarations
   3 *
   4 * Copyright (C) 2010-2012 Guan Xuetao
   5 *
   6 * This program is free software; you can redistribute it and/or modify
   7 * it under the terms of the GNU General Public License version 2 as
   8 * published by the Free Software Foundation, or any later version.
   9 * See the COPYING file in the top-level directory.
  10 */
  11
  12#ifndef QEMU_HW_PUV3_H
  13#define QEMU_HW_PUV3_H
  14
  15#define PUV3_REGS_OFFSET        (0x1000) /* 4K is reasonable */
  16
  17/* Hardware interrupts */
  18#define PUV3_IRQS_NR            (32)
  19
  20#define PUV3_IRQS_GPIOLOW0      (0)
  21#define PUV3_IRQS_GPIOLOW1      (1)
  22#define PUV3_IRQS_GPIOLOW2      (2)
  23#define PUV3_IRQS_GPIOLOW3      (3)
  24#define PUV3_IRQS_GPIOLOW4      (4)
  25#define PUV3_IRQS_GPIOLOW5      (5)
  26#define PUV3_IRQS_GPIOLOW6      (6)
  27#define PUV3_IRQS_GPIOLOW7      (7)
  28#define PUV3_IRQS_GPIOHIGH      (8)
  29#define PUV3_IRQS_PS2_KBD       (22)
  30#define PUV3_IRQS_PS2_AUX       (23)
  31#define PUV3_IRQS_OST0          (26)
  32
  33/* All puv3_*.c use DPRINTF for debug. */
  34#ifdef DEBUG_PUV3
  35#define DPRINTF(fmt, ...) printf("%s: " fmt , __func__, ## __VA_ARGS__)
  36#else
  37#define DPRINTF(fmt, ...) do {} while (0)
  38#endif
  39
  40#endif /* QEMU_HW_PUV3_H */
  41