• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revisionb4da3e86186ecf8aadef449f3ddaeeac7bf78392 (tree)
Time2020-08-02 00:06:25
AuthorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

Add missing files.

Change Summary

Incremental Difference

--- /dev/null
+++ b/include/hw/net/ne2000-local.h
@@ -0,0 +1,19 @@
1+/*
2+ * QEMU NE2000 emulation -- isa bus windup
3+ *
4+ * Copyright (c) 2003-2004 Fabrice Bellard
5+ *
6+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
7+ * See the COPYING file in the top-level directory.
8+ */
9+
10+#ifndef HW_NET_NE2000_LOCAL_H
11+#define HW_NET_NE2000_LOCAL_H
12+
13+#include "hw/hw.h"
14+#include "hw/qdev.h"
15+#include "net/net.h"
16+
17+void ne2000_init(NICInfo *nd, uint32_t base, qemu_irq irq);
18+
19+#endif
--- /dev/null
+++ b/include/hw/timer/renesas_16timer.h
@@ -0,0 +1,46 @@
1+/*
2+ * Renesas 16bit timer
3+ *
4+ * Copyright (c) 2020 Yoshinori Sato
5+ *
6+ * This code is licensed under the GPL version 2 or later.
7+ *
8+ */
9+
10+#ifndef HW_RENESAS_TPU_H
11+#define HW_RENESAS_TPU_H
12+
13+#include "hw/sysbus.h"
14+
15+#define TYPE_RENESAS_16TMR "renesas-16tmr"
16+#define R16(obj) OBJECT_CHECK(R16State, (obj), TYPE_RENESAS_16TMR)
17+
18+enum {
19+ TMR16_NR_IRQ = 12,
20+};
21+
22+typedef struct R16State {
23+ SysBusDevice parent_obj;
24+
25+ uint64_t input_freq;
26+ int clk_per_nsec;
27+ MemoryRegion memory;
28+
29+ uint8_t tstr;
30+ uint8_t tsnc;
31+ uint8_t tmdr;
32+ uint8_t tolr;
33+ uint8_t tisr[3];
34+ struct {
35+ uint8_t tcr;
36+ uint8_t tior;
37+ uint32_t tcnt;
38+ uint16_t gr[2];
39+ } ch[3];
40+
41+ qemu_irq irq[TMR16_NR_IRQ];
42+ QEMUTimer *timer;
43+ int64_t prev_time;
44+} R16State;
45+
46+#endif