25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_dc7085.c,v 1.55 2006/03/04 12:38:47 debug Exp $ |
* $Id: dev_dc7085.c,v 1.56 2006/07/23 14:37:34 debug Exp $ |
29 |
* |
* |
30 |
* DC7085 serial controller, used in some DECstation models. |
* DC7085 serial controller, used in some DECstation models. |
31 |
*/ |
*/ |
96 |
} |
} |
97 |
|
|
98 |
|
|
99 |
/* |
DEVICE_TICK(dc7085) |
|
* dev_dc7085_tick(): |
|
|
* |
|
|
* This function is called "every now and then". |
|
|
* If a key is available from the keyboard, add it to the rx queue. |
|
|
* If other bits are set, an interrupt might need to be caused. |
|
|
*/ |
|
|
void dev_dc7085_tick(struct cpu *cpu, void *extra) |
|
100 |
{ |
{ |
101 |
|
/* |
102 |
|
* If a key is available from the keyboard, add it to the rx queue. |
103 |
|
* If other bits are set, an interrupt might need to be caused. |
104 |
|
*/ |
105 |
struct dc_data *d = extra; |
struct dc_data *d = extra; |
106 |
int avail; |
int avail; |
107 |
|
|
158 |
} |
} |
159 |
|
|
160 |
|
|
|
/* |
|
|
* dev_dc7085_access(): |
|
|
*/ |
|
161 |
DEVICE_ACCESS(dc7085) |
DEVICE_ACCESS(dc7085) |
162 |
{ |
{ |
163 |
uint64_t idata = 0, odata = 0; |
uint64_t idata = 0, odata = 0; |