FreeCalypso > hg > freecalypso-tools
diff target-utils/simtest/simregs.h @ 454:daaab2701761
target-utils: simtest program started
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 09 Feb 2019 07:55:50 +0000 |
parents | |
children | d96ea6ae6aa5 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/simtest/simregs.h Sat Feb 09 07:55:50 2019 +0000 @@ -0,0 +1,17 @@ +/* Calypso SIM registers definition */ + +#define SIM_BASE_ADDR 0xFFFE0000 + +struct sim_registers { + u16 cmd; + u16 stat; + u16 conf1; + u16 conf2; + u16 it; + u16 drx; + u16 dtx; + u16 maskit; + u16 it_cd; +}; + +#define SIMREGS (*(volatile struct sim_registers *) SIM_BASE_ADDR)