source: UsbWattMeter/trunk/lwip-1.4.1/ports/grsakura/if_rx62nreg.h@ 164

Last change on this file since 164 was 164, checked in by coas-nagasima, 6 years ago

TOPPERS/ECNLサンプルアプリ「USB充電器電力計」を追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 7.4 KB
Line 
1/*
2 * TINET (TCP/IP Protocol Stack)
3 *
4 * Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
5 * Tomakomai National College of Technology, JAPAN
6 * Copyright (C) 2014 Cores Co., Ltd. Japan
7 *
8 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì(1)`(4)‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒF
9 * ƒAi–{ƒ\ƒtƒgƒEƒFƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü
10 * •ÏEÄ”z•ziˆÈ‰ºC—˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
11 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
12 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
13 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
14 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
15 * —p‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
16ƒƒ“ƒgi—˜—p
17 * ŽÒƒ}ƒjƒ…
18ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L
19 * ‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
20 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
21 * —p‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±
22 * ‚ƁD
23 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
24ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
25ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜
26 * ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
27 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É
28 * •ñ‚·‚邱‚ƁD
29 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
30 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD
31 * ‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚̃†[ƒU‚Ü‚½‚̓Gƒ“ƒhƒ†[ƒU‚©‚ç‚Ì‚¢‚©‚Ȃ闝
32 * —R‚ÉŠî‚­¿‹‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð
33 * –Ɛӂ·‚邱‚ƁD
34 *
35 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚¨
36 * ‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚́C–{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC“Á’è‚ÌŽg—p–Ú“I
37 * ‚ɑ΂·‚é“K‡«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒF
38 * ƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»
39 * ‚̐ӔC‚𕉂í‚È‚¢D
40 *
41 * @(#) $Id: if_rx62nreg.h 164 2016-03-07 11:33:50Z coas-nagasima $
42 */
43
44#ifndef RX62NRegH
45#define RX62NRegH
46
47#include "t_stddef.h"
48
49#define EDMAC_EDMR ((uint32_t *)0x000C0000) /* EDMACƒ‚[ƒhƒŒƒWƒXƒ^ */
50#define EDMAC_EDMR_SWR_BIT 0x00000001
51#define EDMAC_EDMR_DE_BIT 0x00000040
52
53#define EDMAC_EDTRR ((uint32_t *)0x000C0008) /* EDMAC‘—M—v‹ƒŒƒWƒXƒ^ */
54#define EDMAC_EDTRR_TR 0x00000001
55
56#define EDMAC_EDRRR ((uint32_t *)0x000C0010) /* EDMACŽóM—v‹ƒŒƒWƒXƒ^ */
57#define EDMAC_EDRRR_RR 0x00000001
58
59#define EDMAC_TDLAR ((uint32_t *)0x000C0018) /* ‘—MƒfƒBƒXƒNƒŠƒvƒ^ƒŠƒXƒgæ“ªƒAƒhƒŒƒXƒŒƒWƒXƒ^ */
60#define EDMAC_RDLAR ((uint32_t *)0x000C0020) /* ŽóMƒfƒBƒXƒNƒŠƒvƒ^ƒŠƒXƒgæ“ªƒAƒhƒŒƒXƒŒƒWƒXƒ^ */
61
62#define EDMAC_EESR ((uint32_t *)0x000C0028) /* ETHERC/EDMACƒXƒe[ƒ^ƒXƒŒƒWƒXƒ^ */
63#define EDMAC_EESR_FROF 0x00010000
64#define EDMAC_EESR_RDE 0x00020000
65#define EDMAC_EESR_FR 0x00040000
66#define EDMAC_EESR_TC 0x00200000
67#define EDMAC_EESR_TWB 0x40000000
68
69#define EDMAC_EESIPR ((uint32_t *)0x000C0030) /* ETHERC/EDMACƒXƒe[ƒ^ƒXŠ„‚荞‚Ý‹–‰ÂƒŒƒWƒXƒ^ */
70#define EDMAC_EESIPR_RMAFIP 0x00000080
71#define EDMAC_EESIPR_FROFIP 0x00010000
72#define EDMAC_EESIPR_RDEIP 0x00020000
73#define EDMAC_EESIPR_FRIP 0x00040000
74#define EDMAC_EESIPR_TCIP 0x00200000
75#define EDMAC_EESIPR_TWBIP 0x40000000
76
77#define EDMAC_TRSCER ((uint32_t *)0x000C0038) /* ‘—ŽóMƒXƒe[ƒ^ƒXƒRƒs[ŽwŽ¦ƒŒƒWƒXƒ^ */
78#define EDMAC_RMFCR ((uint32_t *)0x000C0040) /* ƒ~ƒXƒhƒtƒŒ[ƒ€ƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
79#define EDMAC_TFTR ((uint32_t *)0x000C0048) /* ‘—MFIFO‚µ‚«‚¢’lŽw’背ƒWƒXƒ^ */
80#define EDMAC_FDR ((uint32_t *)0x000C0050) /* FIFO—e—ÊŽw’背ƒWƒXƒ^ */
81#define EDMAC_RMCR ((uint32_t *)0x000C0058) /* ŽóM•ûŽ®§ŒäƒŒƒWƒXƒ^ */
82#define EDMAC_TFUCR ((uint32_t *)0x000C0064) /* ‘—MFIFOƒAƒ“ƒ_ƒ‰ƒ“ƒJƒEƒ“ƒg */
83#define EDMAC_RFOCR ((uint32_t *)0x000C0068) /* ŽóMFIFOƒI[ƒoƒtƒ[ƒJƒEƒ“ƒg */
84#define EDMAC_IOSR ((uint32_t *)0x000C006C) /* ŒÂ•Êo—͐M†Ý’背ƒWƒXƒ^ */
85#define EDMAC_FCFTR ((uint32_t *)0x000C0070) /* ƒtƒ[§ŒäŠJŽnFIFO‚µ‚«‚¢’lÝ’背ƒWƒXƒ^ */
86#define EDMAC_RPADIR ((uint32_t *)0x000C0078) /* ŽóMƒf[ƒ^ƒpƒfƒBƒ“ƒO‘}“üÝ’背ƒWƒXƒ^ */
87#define EDMAC_TRIMD ((uint32_t *)0x000C007C) /* ‘—MŠ„‚荞‚ݐݒ背ƒWƒXƒ^ */
88#define EDMAC_RBWAR ((uint32_t *)0x000C00C8) /* ŽóMƒoƒbƒtƒ@ƒ‰ƒCƒgƒAƒhƒŒƒXƒŒƒWƒXƒ^ */
89#define EDMAC_RDFAR ((uint32_t *)0x000C00CC) /* ŽóMƒfƒBƒXƒNƒŠƒvƒ^ƒtƒFƒbƒ`ƒAƒhƒŒƒXƒŒƒWƒXƒ^ */
90#define EDMAC_TBRAR ((uint32_t *)0x000C00D4) /* ‘—Mƒoƒbƒtƒ@ƒŠ[ƒhƒAƒhƒŒƒXƒŒƒWƒXƒ^ */
91#define EDMAC_TDFAR ((uint32_t *)0x000C00D8) /* ‘—MƒfƒBƒXƒNƒŠƒvƒ^ƒtƒFƒbƒ`ƒAƒhƒŒƒXƒŒƒWƒXƒ^ */
92
93#define ETHERC_ECMR ((uint32_t *)0x000C0100) /* ETHERCƒ‚[ƒhƒŒƒWƒXƒ^ */
94#define ETHERC_ECMR_PRM 0x00000001
95#define ETHERC_ECMR_DM 0x00000002
96#define ETHERC_ECMR_RTM 0x00000004
97#define ETHERC_ECMR_TE 0x00000020
98#define ETHERC_ECMR_RE 0x00000040
99
100#define ETHERC_RFLR ((uint32_t *)0x000C0108) /* ŽóMƒtƒŒ[ƒ€’·ãŒÀƒŒƒWƒXƒ^ */
101#define ETHERC_ECSR ((uint32_t *)0x000C0110) /* ETHERCƒXƒe[ƒ^ƒXƒŒƒWƒXƒ^ */
102#define ETHERC_ECSR_LCHNG 0x00000004
103#define ETHERC_ECSIPR ((uint32_t *)0x000C0118) /* ETHERCŠ„‚荞‚Ý‹–‰ÂƒŒƒWƒXƒ^ */
104#define ETHERC_ECSIPR_LCHNGIP 0x00000004
105#define ETHERC_PIR ((uint32_t *)0x000C0120) /* PHY•”ƒCƒ“ƒ^ƒtƒF[ƒXƒŒƒWƒXƒ^ */
106#define ETHERC_PIR_MDC 0x00000001
107#define ETHERC_PIR_MMD 0x00000002
108#define ETHERC_PIR_MDO 0x00000004
109#define ETHERC_PIR_MDI 0x00000008
110
111#define ETHERC_PSR ((uint32_t *)0x000C0128) /* PHY•”ƒXƒe[ƒ^ƒXƒŒƒWƒXƒ^ */
112#define ETHERC_PSR_LMON 0x00000001
113
114#define ETHERC_RDMLR ((uint32_t *)0x000C0140) /* —”¶¬ƒJƒEƒ“ƒ^ãŒÀ’lÝ’背ƒWƒXƒ^ */
115#define ETHERC_IPGR ((uint32_t *)0x000C0150) /* IPGÝ’背ƒWƒXƒ^ */
116#define ETHERC_APR ((uint32_t *)0x000C0154) /* Ž©“®PAUSEƒtƒŒ[ƒ€Ý’背ƒWƒXƒ^ */
117#define ETHERC_MPR ((uint32_t *)0x000C0158) /* Žè“®PAUSEƒtƒŒ[ƒ€Ý’背ƒWƒXƒ^ */
118#define ETHERC_RFCF ((uint32_t *)0x000C0160) /* ŽóMPAUSEƒtƒŒ[ƒ€ƒJƒEƒ“ƒ^ */
119#define ETHERC_TPAUSER ((uint32_t *)0x000C0164) /* Ž©“®PAUSEƒtƒŒ[ƒ€Ä‘—‰ñ”Ý’背ƒWƒXƒ^ */
120#define ETHERC_TPAUSECR ((uint32_t *)0x000C0168) /* PAUSEƒtƒŒ[ƒ€Ä‘—‰ñ”ƒJƒEƒ“ƒ^ */
121#define ETHERC_BCFRR ((uint32_t *)0x000C016C) /* BroadcastƒtƒŒ[ƒ€ŽóM‰ñ”Ý’背ƒWƒXƒ^ */
122#define ETHERC_MAHR ((uint32_t *)0x000C01C0) /* MACƒAƒhƒŒƒXãˆÊÝ’背ƒWƒXƒ^ */
123#define ETHERC_MALR ((uint32_t *)0x000C01C8) /* MACƒAƒhƒŒƒX‰ºˆÊÝ’背ƒWƒXƒ^ */
124#define ETHERC_TROCR ((uint32_t *)0x000C01D0) /* ‘—MƒŠƒgƒ‰ƒCƒI[ƒoƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
125#define ETHERC_CDCR ((uint32_t *)0x000C01D4) /* ’x‰„Õ“ËŒŸoƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
126#define ETHERC_LCCR ((uint32_t *)0x000C01D8) /* ƒLƒƒƒŠƒAÁŽ¸ƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
127#define ETHERC_CNDCR ((uint32_t *)0x000C01DC) /* ƒLƒƒƒŠƒA–¢ŒŸoƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
128#define ETHERC_CEFCR ((uint32_t *)0x000C01E4) /* CRCƒGƒ‰[ƒtƒŒ[ƒ€ŽóMƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
129#define ETHERC_FRECR ((uint32_t *)0x000C01E8) /* ƒtƒŒ[ƒ€ŽóMƒGƒ‰[ƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
130#define ETHERC_TSFRCR ((uint32_t *)0x000C01EC) /* 64ƒoƒCƒg–¢–žƒtƒŒ[ƒ€ŽóMƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
131#define ETHERC_TLFRCR ((uint32_t *)0x000C01F0) /* Žw’èƒoƒCƒg’´ƒtƒŒ[ƒ€ŽóMƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
132#define ETHERC_RFCR ((uint32_t *)0x000C01F4) /* ’[”ƒrƒbƒgƒtƒŒ[ƒ€ŽóMƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
133#define ETHERC_MAFCR ((uint32_t *)0x000C01F8) /* ƒ}ƒ‹ƒ`ƒLƒƒƒXƒgƒAƒhƒŒƒXƒtƒŒ[ƒ€ŽóMƒJƒEƒ“ƒ^ƒŒƒWƒXƒ^ */
134
135/* ‘—MƒfƒBƒXƒNƒŠƒvƒ^ */
136typedef struct t_rx62n_tx_desc {
137 uint32_t tfs : 26;
138 uint32_t twbi : 1;
139 uint32_t tfe : 1;
140 uint32_t tfp : 2;
141 uint32_t tdle : 1;
142 uint32_t tact : 1;
143 uint32_t : 16;
144 uint32_t tbl : 16;
145 uint32_t tba;
146 uint32_t binding;
147} T_RX62N_TX_DESC;
148
149/* ŽóMƒfƒBƒXƒNƒŠƒvƒ^ */
150typedef struct t_rx62n_rx_desc {
151 uint32_t rfs : 27;
152 uint32_t rfe : 1;
153 uint32_t rfp : 2;
154 uint32_t rdle : 1;
155 uint32_t ract : 1;
156 uint32_t rfl : 16;
157 uint32_t rbl : 16;
158 uint32_t rba;
159 uint32_t binding;
160} T_RX62N_RX_DESC;
161
162#endif /* RX62NRegH */
Note: See TracBrowser for help on using the repository browser.