25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_scc.c,v 1.32 2006/01/01 13:17:17 debug Exp $ |
* $Id: dev_scc.c,v 1.34 2006/07/23 14:37:34 debug Exp $ |
29 |
* |
* |
30 |
* Serial controller on some DECsystems and SGI machines. (Z8530 ?) |
* Serial controller on some DECsystems and SGI machines. (Z8530 ?) |
31 |
* Most of the code in here is written for DECsystem emulation, though. |
* Most of the code in here is written for DECsystem emulation, though. |
147 |
} |
} |
148 |
|
|
149 |
|
|
150 |
/* |
DEVICE_TICK(scc) |
|
* dev_scc_tick(): |
|
|
*/ |
|
|
void dev_scc_tick(struct cpu *cpu, void *extra) |
|
151 |
{ |
{ |
152 |
int i; |
int i; |
153 |
struct scc_data *d = (struct scc_data *) extra; |
struct scc_data *d = (struct scc_data *) extra; |
295 |
} |
} |
296 |
|
|
297 |
|
|
|
/* |
|
|
* dev_scc_access(): |
|
|
*/ |
|
298 |
DEVICE_ACCESS(scc) |
DEVICE_ACCESS(scc) |
299 |
{ |
{ |
300 |
struct scc_data *d = (struct scc_data *) extra; |
struct scc_data *d = (struct scc_data *) extra; |
477 |
|
|
478 |
memory_device_register(mem, "scc", baseaddr, DEV_SCC_LENGTH, |
memory_device_register(mem, "scc", baseaddr, DEV_SCC_LENGTH, |
479 |
dev_scc_access, d, DM_DEFAULT, NULL); |
dev_scc_access, d, DM_DEFAULT, NULL); |
480 |
machine_add_tickfunction(machine, dev_scc_tick, d, SCC_TICK_SHIFT); |
machine_add_tickfunction(machine, dev_scc_tick, d, SCC_TICK_SHIFT, 0.0); |
481 |
|
|
482 |
return (void *) d; |
return (void *) d; |
483 |
} |
} |