1 |
/* |
2 |
* Cisco router simulation platform. |
3 |
* Copyright (c) 2007 Christophe Fillot (cf@utc.fr) |
4 |
* |
5 |
* WIC-1T & WIC-2T devices. |
6 |
*/ |
7 |
|
8 |
#ifndef __DEV_WIC_SERIAL_H__ |
9 |
#define __DEV_WIC_SERIAL_H__ |
10 |
|
11 |
#include <sys/types.h> |
12 |
|
13 |
#include "utils.h" |
14 |
#include "vm.h" |
15 |
#include "cpu.h" |
16 |
#include "device.h" |
17 |
|
18 |
enum { |
19 |
WIC_SERIAL_MODEL_1T = 1, |
20 |
WIC_SERIAL_MODEL_2T, |
21 |
}; |
22 |
|
23 |
/* Create a WIC serial device */ |
24 |
struct wic_serial_data * |
25 |
dev_wic_serial_init(vm_instance_t *vm,char *name,u_int model, |
26 |
m_uint64_t paddr,m_uint32_t len); |
27 |
|
28 |
/* Remove a WIC serial device */ |
29 |
void dev_wic_serial_remove(struct wic_serial_data *d); |
30 |
|
31 |
#endif |