Revision 4b816985 hw/etraxfs.c
b/hw/etraxfs.c | ||
---|---|---|
21 | 21 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
22 | 22 |
* THE SOFTWARE. |
23 | 23 |
*/ |
24 |
#include <time.h> |
|
25 |
#include <sys/time.h> |
|
26 |
#include "hw.h" |
|
27 |
#include "net.h" |
|
28 |
#include "flash.h" |
|
29 |
#include "sysemu.h" |
|
30 |
#include "devices.h" |
|
31 |
#include "boards.h" |
|
32 | 24 |
|
25 |
#include "sysbus.h" |
|
26 |
#include "boards.h" |
|
27 |
#include "sysemu.h" |
|
28 |
#include "net.h" |
|
33 | 29 |
#include "etraxfs.h" |
34 | 30 |
|
35 | 31 |
#define FLASH_SIZE 0x2000000 |
... | ... | |
114 | 110 |
etraxfs_timer_init(env, irq + 0x1b, nmi + 1, 0x3005e000); |
115 | 111 |
|
116 | 112 |
for (i = 0; i < 4; i++) { |
117 |
if (serial_hds[i]) { |
|
118 |
etraxfs_ser_init(env, irq + 0x14 + i, |
|
119 |
serial_hds[i], 0x30026000 + i * 0x2000); |
|
120 |
} |
|
113 |
sysbus_create_simple("etraxfs,serial", 0x30026000 + i * 0x2000, |
|
114 |
irq[0x14 + i]); |
|
121 | 115 |
} |
122 | 116 |
|
123 | 117 |
if (kernel_filename) { |
Also available in: Unified diff