tsunamireg.h revision 773
12SN/A 21762SN/A#ifndef __TSUNAMIREG_H__ 32SN/A#define __TSUNAMIREG_H__ 42SN/A 52SN/A// CChip Registers 62SN/A#define TSDEV_CC_CSR 0x00 72SN/A#define TSDEV_CC_MTR 0x01 82SN/A#define TSDEV_CC_MISC 0x02 92SN/A 102SN/A#define TSDEV_CC_AAR0 0x04 112SN/A#define TSDEV_CC_AAR1 0x05 122SN/A#define TSDEV_CC_AAR2 0x06 132SN/A#define TSDEV_CC_AAR3 0x07 142SN/A#define TSDEV_CC_DIM0 0x08 152SN/A#define TSDEV_CC_DIM1 0x09 162SN/A#define TSDEV_CC_DIR0 0x0A 172SN/A#define TSDEV_CC_DIR1 0x0B 182SN/A#define TSDEV_CC_DRIR 0x0C 192SN/A#define TSDEV_CC_PRBEN 0x0D 202SN/A#define TSDEV_CC_IIC0 0x0E 212SN/A#define TSDEV_CC_IIC1 0x0F 222SN/A#define TSDEV_CC_MPR0 0x10 232SN/A#define TSDEV_CC_MPR1 0x11 242SN/A#define TSDEV_CC_MPR2 0x12 252SN/A#define TSDEV_CC_MPR3 0x13 262SN/A 272665Ssaidi@eecs.umich.edu#define TSDEV_CC_DIM2 0x18 282665Ssaidi@eecs.umich.edu#define TSDEV_CC_DIM3 0x19 292SN/A#define TSDEV_CC_DIR2 0x1A 302SN/A#define TSDEV_CC_DIR3 0x1B 312SN/A#define TSDEV_CC_IIC2 0x1C 32456SN/A#define TSDEV_CC_IIC3 0x1D 332SN/A 342SN/A 352SN/A// PChip Registers 362SN/A#define TSDEV_PC_WSBA0 0x00 37148SN/A#define TSDEV_PC_WSBA1 0x01 3856SN/A#define TSDEV_PC_WSBA2 0x02 395889Snate@binkert.org#define TSDEV_PC_WSBA3 0x03 40441SN/A#define TSDEV_PC_WSM0 0x04 4156SN/A#define TSDEV_PC_WSM1 0x05 4256SN/A#define TSDEV_PC_WSM2 0x06 4356SN/A#define TSDEV_PC_WSM3 0x07 44441SN/A#define TSDEV_PC_TBA0 0x08 45433SN/A#define TSDEV_PC_TBA1 0x09 462SN/A#define TSDEV_PC_TBA2 0x0A 472SN/A#define TSDEV_PC_TBA3 0x0B 482SN/A#define TSDEV_PC_PCTL 0x0C 49729SN/A#define TSDEV_PC_PLAT 0x0D 50388SN/A#define TSDEV_PC_RES 0x0E 515887Snate@binkert.org#define TSDEV_PC_PERROR 0x0F 525887Snate@binkert.org#define TSDEV_PC_PERRMASK 0x10 535887Snate@binkert.org#define TSDEV_PC_PERRSET 0x11 545887Snate@binkert.org#define TSDEV_PC_TLBIV 0x12 555887Snate@binkert.org#define TSDEV_PC_TLBIA 0x13 56388SN/A#define TSDEV_PC_PMONCTL 0x14 575887Snate@binkert.org#define TSDEV_PC_PMONCNT 0x15 585887Snate@binkert.org 59388SN/A#define TSDEV_PC_SPST 0x20 60388SN/A 615887Snate@binkert.org 625887Snate@binkert.org// DChip Registers 63441SN/A#define TSDEV_DC_DSC 0x20 645887Snate@binkert.org#define TSDEV_DC_STR 0x21 655887Snate@binkert.org#define TSDEV_DC_DREV 0x22 66441SN/A#define TSDEV_DC_DSC2 0x23 67441SN/A 68388SN/A// I/O Ports 695886Snate@binkert.org#define TSDEV_PIC1_MASK 0x21 70388SN/A#define TSDEV_PIC2_MASK 0xA1 715887Snate@binkert.org#define TSDEV_DMA1_RESET 0x0D 725887Snate@binkert.org#define TSDEV_DMA2_RESET 0xDA 735887Snate@binkert.org#define TSDEV_DMA1_MODE 0x0B 745887Snate@binkert.org#define TSDEV_DMA2_MODE 0xD6 755887Snate@binkert.org#define TSDEV_DMA1_MASK 0x0A 765887Snate@binkert.org#define TSDEV_DMA2_MASK 0xD4 775887Snate@binkert.org#define TSDEV_TMR_CTL 0x61 785887Snate@binkert.org#define TSDEV_TMR2_CTL 0x43 795887Snate@binkert.org#define TSDEV_TMR2_DATA 0x42 805887Snate@binkert.org#define TSDEV_TMR0_DATA 0x40 815887Snate@binkert.org 82388SN/A#define TSDEV_RTC_ADDR 0x70 83388SN/A#define TSDEV_RTC_DATA 0x71 84388SN/A 855889Snate@binkert.org// RTC defines 865889Snate@binkert.org#define RTC_SECOND 0 // second of minute [0..59] 875889Snate@binkert.org#define RTC_SECOND_ALARM 1 // seconds to alarm 885889Snate@binkert.org#define RTC_MINUTE 2 // minute of hour [0..59] 895889Snate@binkert.org#define RTC_MINUTE_ALARM 3 // minutes to alarm 905889Snate@binkert.org#define RTC_HOUR 4 // hour of day [0..23] 915886Snate@binkert.org#define RTC_HOUR_ALARM 5 // hours to alarm 92388SN/A#define RTC_DAY_OF_WEEK 6 // day of week [1..7] 936130Snate@binkert.org#define RTC_DAY_OF_MONTH 7 // day of month [1..31] 94388SN/A#define RTC_MONTH 8 // month of year [1..12] 95388SN/A#define RTC_YEAR 9 // year [00..99] 965886Snate@binkert.org#define RTC_CONTROL_REGISTERA 10 // control register A 975886Snate@binkert.org#define RTC_CONTROL_REGISTERB 11 // control register B 98388SN/A#define RTC_CONTROL_REGISTERC 12 // control register C 995887Snate@binkert.org#define RTC_CONTROL_REGISTERD 13 // control register D 1005887Snate@binkert.org#define RTC_REGNUMBER_RTC_CR1 0x6A // control register 1 1015887Snate@binkert.org 102388SN/A 103388SN/A#endif // __TSUNAMIREG_H__ 1045886Snate@binkert.org