gh_eth.h 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_eth.h
  5. **
  6. ** \brief Ethernet controller.
  7. **
  8. ** Copyright: 2012 - 2016 (C) GoKe Microelectronics
  9. **
  10. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  11. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  12. ** OMMISSIONS.
  13. **
  14. ** \note Do not modify this file as it is generated automatically.
  15. **
  16. ******************************************************************************/
  17. #ifndef _GH_ETH_H
  18. #define _GH_ETH_H
  19. #ifdef __LINUX__
  20. #include "reg4linux.h"
  21. #else
  22. #define FIO_ADDRESS(block,address) (address)
  23. #define FIO_MOFFSET(block,moffset) (moffset)
  24. #endif
  25. #ifndef __LINUX__
  26. #include "gtypes.h" /* global type definitions */
  27. #include "gh_lib_cfg.h" /* configuration */
  28. #endif
  29. #define GH_ETH_ENABLE_DEBUG_PRINT 0
  30. #ifdef __LINUX__
  31. #define GH_ETH_DEBUG_PRINT_FUNCTION printk
  32. #else
  33. #define GH_ETH_DEBUG_PRINT_FUNCTION printf
  34. #endif
  35. #ifndef __LINUX__
  36. #if GH_ETH_ENABLE_DEBUG_PRINT
  37. #include <stdio.h>
  38. #endif
  39. #endif
  40. /*----------------------------------------------------------------------------*/
  41. /* registers */
  42. /*----------------------------------------------------------------------------*/
  43. #define REG_ETH_MCR FIO_ADDRESS(ETH,0x9000E000) /* read/write */
  44. #define REG_ETH_MFFR FIO_ADDRESS(ETH,0x9000E004) /* read/write */
  45. #define REG_ETH_MHTRH FIO_ADDRESS(ETH,0x9000E008) /* read/write */
  46. #define REG_ETH_MHTRL FIO_ADDRESS(ETH,0x9000E00C) /* read/write */
  47. #define REG_ETH_GAR FIO_ADDRESS(ETH,0x9000E010) /* read/write */
  48. #define REG_ETH_GDR FIO_ADDRESS(ETH,0x9000E014) /* read/write */
  49. #define REG_ETH_FCR FIO_ADDRESS(ETH,0x9000E018) /* read/write */
  50. #define REG_ETH_VTR FIO_ADDRESS(ETH,0x9000E01C) /* read/write */
  51. #define REG_ETH_VR FIO_ADDRESS(ETH,0x9000E020) /* read */
  52. #define REG_ETH_MAR0H FIO_ADDRESS(ETH,0x9000E040) /* read/write */
  53. #define REG_ETH_MAR0L FIO_ADDRESS(ETH,0x9000E044) /* read/write */
  54. #define REG_ETH_MAR1H FIO_ADDRESS(ETH,0x9000E048) /* read/write */
  55. #define REG_ETH_MAR1L FIO_ADDRESS(ETH,0x9000E04C) /* read/write */
  56. #define REG_ETH_MAR2H FIO_ADDRESS(ETH,0x9000E050) /* read/write */
  57. #define REG_ETH_MAR2L FIO_ADDRESS(ETH,0x9000E054) /* read/write */
  58. #define REG_ETH_EPHY_DEBUG FIO_ADDRESS(ETH,0x9000E058) /* read/write */
  59. #define REG_ETH_BMR FIO_ADDRESS(ETH,0x9000F000) /* read/write */
  60. #define REG_ETH_TPDR FIO_ADDRESS(ETH,0x9000F004) /* read/write */
  61. #define REG_ETH_RPDR FIO_ADDRESS(ETH,0x9000F008) /* read/write */
  62. #define REG_ETH_RDLAR FIO_ADDRESS(ETH,0x9000F00C) /* read/write */
  63. #define REG_ETH_TDLAR FIO_ADDRESS(ETH,0x9000F010) /* read/write */
  64. #define REG_ETH_SR FIO_ADDRESS(ETH,0x9000F014) /* read/write */
  65. #define REG_ETH_OMR FIO_ADDRESS(ETH,0x9000F018) /* read/write */
  66. #define REG_ETH_IER FIO_ADDRESS(ETH,0x9000F01C) /* read/write */
  67. #define REG_ETH_MFBOCR FIO_ADDRESS(ETH,0x9000F020) /* read/write */
  68. #define REG_ETH_CHTDR FIO_ADDRESS(ETH,0x9000F048) /* read/write */
  69. #define REG_ETH_CHRDR FIO_ADDRESS(ETH,0x9000F04C) /* read/write */
  70. #define REG_ETH_CHTBAR FIO_ADDRESS(ETH,0x9000F050) /* read/write */
  71. #define REG_ETH_CHRBAR FIO_ADDRESS(ETH,0x9000F054) /* read/write */
  72. /*----------------------------------------------------------------------------*/
  73. /* bit group structures */
  74. /*----------------------------------------------------------------------------*/
  75. typedef union { /* ETH_MCR */
  76. U32 all;
  77. struct {
  78. U32 : 2;
  79. U32 re : 1;
  80. U32 te : 1;
  81. U32 dc : 1;
  82. U32 bl : 2;
  83. U32 acs : 1;
  84. U32 lud : 1;
  85. U32 dr : 1;
  86. U32 ipc : 1;
  87. U32 dm : 1;
  88. U32 lm : 1;
  89. U32 dro : 1;
  90. U32 fes : 1;
  91. U32 ps : 1;
  92. U32 dcrs : 1;
  93. U32 ifg : 3;
  94. U32 je : 1;
  95. U32 be : 1;
  96. U32 jd : 1;
  97. U32 wd : 1;
  98. U32 : 8;
  99. } bitc;
  100. } GH_ETH_MCR_S;
  101. typedef union { /* ETH_MFFR */
  102. U32 all;
  103. struct {
  104. U32 pr : 1;
  105. U32 huc : 1;
  106. U32 hmc : 1;
  107. U32 ift : 1;
  108. U32 pm : 1;
  109. U32 db : 1;
  110. U32 : 1;
  111. U32 pcf : 1;
  112. U32 saif : 1;
  113. U32 saf : 1;
  114. U32 hpf : 1;
  115. U32 : 20;
  116. U32 ra : 1;
  117. } bitc;
  118. } GH_ETH_MFFR_S;
  119. typedef union { /* ETH_MHTRH */
  120. U32 all;
  121. struct {
  122. U32 hth : 32;
  123. } bitc;
  124. } GH_ETH_MHTRH_S;
  125. typedef union { /* ETH_MHTRL */
  126. U32 all;
  127. struct {
  128. U32 htl : 32;
  129. } bitc;
  130. } GH_ETH_MHTRL_S;
  131. typedef union { /* ETH_GAR */
  132. U32 all;
  133. struct {
  134. U32 gb : 1;
  135. U32 gw : 1;
  136. U32 cr : 3;
  137. U32 : 1;
  138. U32 gr : 5;
  139. U32 pa : 5;
  140. U32 : 16;
  141. } bitc;
  142. } GH_ETH_GAR_S;
  143. typedef union { /* ETH_GDR */
  144. U32 all;
  145. struct {
  146. U32 gd : 16;
  147. U32 : 16;
  148. } bitc;
  149. } GH_ETH_GDR_S;
  150. typedef union { /* ETH_FCR */
  151. U32 all;
  152. struct {
  153. U32 fcb : 1;
  154. U32 tfe : 1;
  155. U32 rfe : 1;
  156. U32 up : 1;
  157. U32 plt : 2;
  158. U32 : 10;
  159. U32 pt : 16;
  160. } bitc;
  161. } GH_ETH_FCR_S;
  162. typedef union { /* ETH_VTR */
  163. U32 all;
  164. struct {
  165. U32 vl : 16;
  166. U32 etv : 1;
  167. U32 : 15;
  168. } bitc;
  169. } GH_ETH_VTR_S;
  170. typedef union { /* ETH_MAR0H */
  171. U32 all;
  172. struct {
  173. U32 a0 : 16;
  174. U32 : 15;
  175. U32 m0 : 1;
  176. } bitc;
  177. } GH_ETH_MAR0H_S;
  178. typedef union { /* ETH_MAR0L */
  179. U32 all;
  180. struct {
  181. U32 a0 : 32;
  182. } bitc;
  183. } GH_ETH_MAR0L_S;
  184. typedef union { /* ETH_MAR1H */
  185. U32 all;
  186. struct {
  187. U32 a1 : 16;
  188. U32 : 8;
  189. U32 mbc : 6;
  190. U32 sa : 1;
  191. U32 a1e : 1;
  192. } bitc;
  193. } GH_ETH_MAR1H_S;
  194. typedef union { /* ETH_MAR1L */
  195. U32 all;
  196. struct {
  197. U32 a1 : 32;
  198. } bitc;
  199. } GH_ETH_MAR1L_S;
  200. typedef union { /* ETH_MAR2H */
  201. U32 all;
  202. struct {
  203. U32 a2 : 16;
  204. U32 : 8;
  205. U32 mbc : 6;
  206. U32 sa : 1;
  207. U32 a2e : 1;
  208. } bitc;
  209. } GH_ETH_MAR2H_S;
  210. typedef union { /* ETH_MAR2L */
  211. U32 all;
  212. struct {
  213. U32 a2 : 32;
  214. } bitc;
  215. } GH_ETH_MAR2L_S;
  216. typedef union { /* ETH_EPHY_DEBUG */
  217. U32 all;
  218. struct {
  219. U32 : 8;
  220. U32 debug : 24;
  221. } bitc;
  222. } GH_ETH_EPHY_DEBUG_S;
  223. typedef union { /* ETH_BMR */
  224. U32 all;
  225. struct {
  226. U32 swr : 1;
  227. U32 da : 1;
  228. U32 dsl : 5;
  229. U32 : 1;
  230. U32 pbl : 6;
  231. U32 pr : 2;
  232. U32 fb : 1;
  233. U32 rpbl : 6;
  234. U32 usp : 1;
  235. U32 pbl4x : 1;
  236. U32 aal : 1;
  237. U32 : 6;
  238. } bitc;
  239. } GH_ETH_BMR_S;
  240. typedef union { /* ETH_SR */
  241. U32 all;
  242. struct {
  243. U32 ti : 1;
  244. U32 tps : 1;
  245. U32 tu : 1;
  246. U32 tjt : 1;
  247. U32 ovf : 1;
  248. U32 unf : 1;
  249. U32 ri : 1;
  250. U32 ru : 1;
  251. U32 rps : 1;
  252. U32 rwt : 1;
  253. U32 eti : 1;
  254. U32 : 2;
  255. U32 fbe : 1;
  256. U32 eri : 1;
  257. U32 ais : 1;
  258. U32 nis : 1;
  259. U32 rs : 3;
  260. U32 ts : 3;
  261. U32 eb : 3;
  262. U32 gli : 1;
  263. U32 gmi : 1;
  264. U32 gpi : 1;
  265. U32 : 3;
  266. } bitc;
  267. } GH_ETH_SR_S;
  268. typedef union { /* ETH_OMR */
  269. U32 all;
  270. struct {
  271. U32 : 1;
  272. U32 sr : 1;
  273. U32 osf : 1;
  274. U32 rtc : 2;
  275. U32 : 1;
  276. U32 fuf : 1;
  277. U32 fef : 1;
  278. U32 efc : 1;
  279. U32 rfa : 2;
  280. U32 rfd : 2;
  281. U32 st : 1;
  282. U32 ttc : 3;
  283. U32 : 3;
  284. U32 ftf : 1;
  285. U32 sf : 1;
  286. U32 : 10;
  287. } bitc;
  288. } GH_ETH_OMR_S;
  289. typedef union { /* ETH_IER */
  290. U32 all;
  291. struct {
  292. U32 ti : 1;
  293. U32 ts : 1;
  294. U32 tu : 1;
  295. U32 tj : 1;
  296. U32 ov : 1;
  297. U32 un : 1;
  298. U32 ri : 1;
  299. U32 ru : 1;
  300. U32 rs : 1;
  301. U32 rw : 1;
  302. U32 ete : 1;
  303. U32 : 2;
  304. U32 fbe : 1;
  305. U32 ere : 1;
  306. U32 ai : 1;
  307. U32 ni : 1;
  308. U32 : 15;
  309. } bitc;
  310. } GH_ETH_IER_S;
  311. typedef union { /* ETH_MFBOCR */
  312. U32 all;
  313. struct {
  314. U32 nmfh : 16;
  315. U32 ovmfc : 1;
  316. U32 nmff : 11;
  317. U32 onmff : 1;
  318. U32 : 3;
  319. } bitc;
  320. } GH_ETH_MFBOCR_S;
  321. /*----------------------------------------------------------------------------*/
  322. /* mirror variables */
  323. /*----------------------------------------------------------------------------*/
  324. #ifdef __cplusplus
  325. extern "C" {
  326. #endif
  327. /*----------------------------------------------------------------------------*/
  328. /* register ETH_MCR (read/write) */
  329. /*----------------------------------------------------------------------------*/
  330. /*! \brief Writes the register 'ETH_MCR'. */
  331. void GH_ETH_set_MCR(U32 data);
  332. /*! \brief Reads the register 'ETH_MCR'. */
  333. U32 GH_ETH_get_MCR(void);
  334. /*! \brief Writes the bit group 'RE' of register 'ETH_MCR'. */
  335. void GH_ETH_set_MCR_RE(U8 data);
  336. /*! \brief Reads the bit group 'RE' of register 'ETH_MCR'. */
  337. U8 GH_ETH_get_MCR_RE(void);
  338. /*! \brief Writes the bit group 'TE' of register 'ETH_MCR'. */
  339. void GH_ETH_set_MCR_TE(U8 data);
  340. /*! \brief Reads the bit group 'TE' of register 'ETH_MCR'. */
  341. U8 GH_ETH_get_MCR_TE(void);
  342. /*! \brief Writes the bit group 'DC' of register 'ETH_MCR'. */
  343. void GH_ETH_set_MCR_DC(U8 data);
  344. /*! \brief Reads the bit group 'DC' of register 'ETH_MCR'. */
  345. U8 GH_ETH_get_MCR_DC(void);
  346. /*! \brief Writes the bit group 'BL' of register 'ETH_MCR'. */
  347. void GH_ETH_set_MCR_BL(U8 data);
  348. /*! \brief Reads the bit group 'BL' of register 'ETH_MCR'. */
  349. U8 GH_ETH_get_MCR_BL(void);
  350. /*! \brief Writes the bit group 'ACS' of register 'ETH_MCR'. */
  351. void GH_ETH_set_MCR_ACS(U8 data);
  352. /*! \brief Reads the bit group 'ACS' of register 'ETH_MCR'. */
  353. U8 GH_ETH_get_MCR_ACS(void);
  354. /*! \brief Writes the bit group 'LUD' of register 'ETH_MCR'. */
  355. void GH_ETH_set_MCR_LUD(U8 data);
  356. /*! \brief Reads the bit group 'LUD' of register 'ETH_MCR'. */
  357. U8 GH_ETH_get_MCR_LUD(void);
  358. /*! \brief Writes the bit group 'DR' of register 'ETH_MCR'. */
  359. void GH_ETH_set_MCR_DR(U8 data);
  360. /*! \brief Reads the bit group 'DR' of register 'ETH_MCR'. */
  361. U8 GH_ETH_get_MCR_DR(void);
  362. /*! \brief Writes the bit group 'IPC' of register 'ETH_MCR'. */
  363. void GH_ETH_set_MCR_IPC(U8 data);
  364. /*! \brief Reads the bit group 'IPC' of register 'ETH_MCR'. */
  365. U8 GH_ETH_get_MCR_IPC(void);
  366. /*! \brief Writes the bit group 'DM' of register 'ETH_MCR'. */
  367. void GH_ETH_set_MCR_DM(U8 data);
  368. /*! \brief Reads the bit group 'DM' of register 'ETH_MCR'. */
  369. U8 GH_ETH_get_MCR_DM(void);
  370. /*! \brief Writes the bit group 'LM' of register 'ETH_MCR'. */
  371. void GH_ETH_set_MCR_LM(U8 data);
  372. /*! \brief Reads the bit group 'LM' of register 'ETH_MCR'. */
  373. U8 GH_ETH_get_MCR_LM(void);
  374. /*! \brief Writes the bit group 'DRO' of register 'ETH_MCR'. */
  375. void GH_ETH_set_MCR_DRO(U8 data);
  376. /*! \brief Reads the bit group 'DRO' of register 'ETH_MCR'. */
  377. U8 GH_ETH_get_MCR_DRO(void);
  378. /*! \brief Writes the bit group 'FES' of register 'ETH_MCR'. */
  379. void GH_ETH_set_MCR_FES(U8 data);
  380. /*! \brief Reads the bit group 'FES' of register 'ETH_MCR'. */
  381. U8 GH_ETH_get_MCR_FES(void);
  382. /*! \brief Writes the bit group 'PS' of register 'ETH_MCR'. */
  383. void GH_ETH_set_MCR_PS(U8 data);
  384. /*! \brief Reads the bit group 'PS' of register 'ETH_MCR'. */
  385. U8 GH_ETH_get_MCR_PS(void);
  386. /*! \brief Writes the bit group 'DCRS' of register 'ETH_MCR'. */
  387. void GH_ETH_set_MCR_DCRS(U8 data);
  388. /*! \brief Reads the bit group 'DCRS' of register 'ETH_MCR'. */
  389. U8 GH_ETH_get_MCR_DCRS(void);
  390. /*! \brief Writes the bit group 'IFG' of register 'ETH_MCR'. */
  391. void GH_ETH_set_MCR_IFG(U8 data);
  392. /*! \brief Reads the bit group 'IFG' of register 'ETH_MCR'. */
  393. U8 GH_ETH_get_MCR_IFG(void);
  394. /*! \brief Writes the bit group 'JE' of register 'ETH_MCR'. */
  395. void GH_ETH_set_MCR_JE(U8 data);
  396. /*! \brief Reads the bit group 'JE' of register 'ETH_MCR'. */
  397. U8 GH_ETH_get_MCR_JE(void);
  398. /*! \brief Writes the bit group 'BE' of register 'ETH_MCR'. */
  399. void GH_ETH_set_MCR_BE(U8 data);
  400. /*! \brief Reads the bit group 'BE' of register 'ETH_MCR'. */
  401. U8 GH_ETH_get_MCR_BE(void);
  402. /*! \brief Writes the bit group 'JD' of register 'ETH_MCR'. */
  403. void GH_ETH_set_MCR_JD(U8 data);
  404. /*! \brief Reads the bit group 'JD' of register 'ETH_MCR'. */
  405. U8 GH_ETH_get_MCR_JD(void);
  406. /*! \brief Writes the bit group 'WD' of register 'ETH_MCR'. */
  407. void GH_ETH_set_MCR_WD(U8 data);
  408. /*! \brief Reads the bit group 'WD' of register 'ETH_MCR'. */
  409. U8 GH_ETH_get_MCR_WD(void);
  410. /*----------------------------------------------------------------------------*/
  411. /* register ETH_MFFR (read/write) */
  412. /*----------------------------------------------------------------------------*/
  413. /*! \brief Writes the register 'ETH_MFFR'. */
  414. void GH_ETH_set_MFFR(U32 data);
  415. /*! \brief Reads the register 'ETH_MFFR'. */
  416. U32 GH_ETH_get_MFFR(void);
  417. /*! \brief Writes the bit group 'PR' of register 'ETH_MFFR'. */
  418. void GH_ETH_set_MFFR_PR(U8 data);
  419. /*! \brief Reads the bit group 'PR' of register 'ETH_MFFR'. */
  420. U8 GH_ETH_get_MFFR_PR(void);
  421. /*! \brief Writes the bit group 'HUC' of register 'ETH_MFFR'. */
  422. void GH_ETH_set_MFFR_HUC(U8 data);
  423. /*! \brief Reads the bit group 'HUC' of register 'ETH_MFFR'. */
  424. U8 GH_ETH_get_MFFR_HUC(void);
  425. /*! \brief Writes the bit group 'HMC' of register 'ETH_MFFR'. */
  426. void GH_ETH_set_MFFR_HMC(U8 data);
  427. /*! \brief Reads the bit group 'HMC' of register 'ETH_MFFR'. */
  428. U8 GH_ETH_get_MFFR_HMC(void);
  429. /*! \brief Writes the bit group 'IFT' of register 'ETH_MFFR'. */
  430. void GH_ETH_set_MFFR_IFT(U8 data);
  431. /*! \brief Reads the bit group 'IFT' of register 'ETH_MFFR'. */
  432. U8 GH_ETH_get_MFFR_IFT(void);
  433. /*! \brief Writes the bit group 'PM' of register 'ETH_MFFR'. */
  434. void GH_ETH_set_MFFR_PM(U8 data);
  435. /*! \brief Reads the bit group 'PM' of register 'ETH_MFFR'. */
  436. U8 GH_ETH_get_MFFR_PM(void);
  437. /*! \brief Writes the bit group 'DB' of register 'ETH_MFFR'. */
  438. void GH_ETH_set_MFFR_DB(U8 data);
  439. /*! \brief Reads the bit group 'DB' of register 'ETH_MFFR'. */
  440. U8 GH_ETH_get_MFFR_DB(void);
  441. /*! \brief Writes the bit group 'PCF' of register 'ETH_MFFR'. */
  442. void GH_ETH_set_MFFR_PCF(U8 data);
  443. /*! \brief Reads the bit group 'PCF' of register 'ETH_MFFR'. */
  444. U8 GH_ETH_get_MFFR_PCF(void);
  445. /*! \brief Writes the bit group 'SAIF' of register 'ETH_MFFR'. */
  446. void GH_ETH_set_MFFR_SAIF(U8 data);
  447. /*! \brief Reads the bit group 'SAIF' of register 'ETH_MFFR'. */
  448. U8 GH_ETH_get_MFFR_SAIF(void);
  449. /*! \brief Writes the bit group 'SAF' of register 'ETH_MFFR'. */
  450. void GH_ETH_set_MFFR_SAF(U8 data);
  451. /*! \brief Reads the bit group 'SAF' of register 'ETH_MFFR'. */
  452. U8 GH_ETH_get_MFFR_SAF(void);
  453. /*! \brief Writes the bit group 'HPF' of register 'ETH_MFFR'. */
  454. void GH_ETH_set_MFFR_HPF(U8 data);
  455. /*! \brief Reads the bit group 'HPF' of register 'ETH_MFFR'. */
  456. U8 GH_ETH_get_MFFR_HPF(void);
  457. /*! \brief Writes the bit group 'RA' of register 'ETH_MFFR'. */
  458. void GH_ETH_set_MFFR_RA(U8 data);
  459. /*! \brief Reads the bit group 'RA' of register 'ETH_MFFR'. */
  460. U8 GH_ETH_get_MFFR_RA(void);
  461. /*----------------------------------------------------------------------------*/
  462. /* register ETH_MHTRH (read/write) */
  463. /*----------------------------------------------------------------------------*/
  464. /*! \brief Writes the register 'ETH_MHTRH'. */
  465. void GH_ETH_set_MHTRH(U32 data);
  466. /*! \brief Reads the register 'ETH_MHTRH'. */
  467. U32 GH_ETH_get_MHTRH(void);
  468. /*! \brief Writes the bit group 'HTH' of register 'ETH_MHTRH'. */
  469. void GH_ETH_set_MHTRH_HTH(U32 data);
  470. /*! \brief Reads the bit group 'HTH' of register 'ETH_MHTRH'. */
  471. U32 GH_ETH_get_MHTRH_HTH(void);
  472. /*----------------------------------------------------------------------------*/
  473. /* register ETH_MHTRL (read/write) */
  474. /*----------------------------------------------------------------------------*/
  475. /*! \brief Writes the register 'ETH_MHTRL'. */
  476. void GH_ETH_set_MHTRL(U32 data);
  477. /*! \brief Reads the register 'ETH_MHTRL'. */
  478. U32 GH_ETH_get_MHTRL(void);
  479. /*! \brief Writes the bit group 'HTL' of register 'ETH_MHTRL'. */
  480. void GH_ETH_set_MHTRL_HTL(U32 data);
  481. /*! \brief Reads the bit group 'HTL' of register 'ETH_MHTRL'. */
  482. U32 GH_ETH_get_MHTRL_HTL(void);
  483. /*----------------------------------------------------------------------------*/
  484. /* register ETH_GAR (read/write) */
  485. /*----------------------------------------------------------------------------*/
  486. /*! \brief Writes the register 'ETH_GAR'. */
  487. void GH_ETH_set_GAR(U32 data);
  488. /*! \brief Reads the register 'ETH_GAR'. */
  489. U32 GH_ETH_get_GAR(void);
  490. /*! \brief Writes the bit group 'GB' of register 'ETH_GAR'. */
  491. void GH_ETH_set_GAR_GB(U8 data);
  492. /*! \brief Reads the bit group 'GB' of register 'ETH_GAR'. */
  493. U8 GH_ETH_get_GAR_GB(void);
  494. /*! \brief Writes the bit group 'GW' of register 'ETH_GAR'. */
  495. void GH_ETH_set_GAR_GW(U8 data);
  496. /*! \brief Reads the bit group 'GW' of register 'ETH_GAR'. */
  497. U8 GH_ETH_get_GAR_GW(void);
  498. /*! \brief Writes the bit group 'CR' of register 'ETH_GAR'. */
  499. void GH_ETH_set_GAR_CR(U8 data);
  500. /*! \brief Reads the bit group 'CR' of register 'ETH_GAR'. */
  501. U8 GH_ETH_get_GAR_CR(void);
  502. /*! \brief Writes the bit group 'GR' of register 'ETH_GAR'. */
  503. void GH_ETH_set_GAR_GR(U8 data);
  504. /*! \brief Reads the bit group 'GR' of register 'ETH_GAR'. */
  505. U8 GH_ETH_get_GAR_GR(void);
  506. /*! \brief Writes the bit group 'PA' of register 'ETH_GAR'. */
  507. void GH_ETH_set_GAR_PA(U8 data);
  508. /*! \brief Reads the bit group 'PA' of register 'ETH_GAR'. */
  509. U8 GH_ETH_get_GAR_PA(void);
  510. /*----------------------------------------------------------------------------*/
  511. /* register ETH_GDR (read/write) */
  512. /*----------------------------------------------------------------------------*/
  513. /*! \brief Writes the register 'ETH_GDR'. */
  514. void GH_ETH_set_GDR(U32 data);
  515. /*! \brief Reads the register 'ETH_GDR'. */
  516. U32 GH_ETH_get_GDR(void);
  517. /*! \brief Writes the bit group 'GD' of register 'ETH_GDR'. */
  518. void GH_ETH_set_GDR_GD(U16 data);
  519. /*! \brief Reads the bit group 'GD' of register 'ETH_GDR'. */
  520. U16 GH_ETH_get_GDR_GD(void);
  521. /*----------------------------------------------------------------------------*/
  522. /* register ETH_FCR (read/write) */
  523. /*----------------------------------------------------------------------------*/
  524. /*! \brief Writes the register 'ETH_FCR'. */
  525. void GH_ETH_set_FCR(U32 data);
  526. /*! \brief Reads the register 'ETH_FCR'. */
  527. U32 GH_ETH_get_FCR(void);
  528. /*! \brief Writes the bit group 'FCB' of register 'ETH_FCR'. */
  529. void GH_ETH_set_FCR_FCB(U8 data);
  530. /*! \brief Reads the bit group 'FCB' of register 'ETH_FCR'. */
  531. U8 GH_ETH_get_FCR_FCB(void);
  532. /*! \brief Writes the bit group 'TFE' of register 'ETH_FCR'. */
  533. void GH_ETH_set_FCR_TFE(U8 data);
  534. /*! \brief Reads the bit group 'TFE' of register 'ETH_FCR'. */
  535. U8 GH_ETH_get_FCR_TFE(void);
  536. /*! \brief Writes the bit group 'RFE' of register 'ETH_FCR'. */
  537. void GH_ETH_set_FCR_RFE(U8 data);
  538. /*! \brief Reads the bit group 'RFE' of register 'ETH_FCR'. */
  539. U8 GH_ETH_get_FCR_RFE(void);
  540. /*! \brief Writes the bit group 'UP' of register 'ETH_FCR'. */
  541. void GH_ETH_set_FCR_UP(U8 data);
  542. /*! \brief Reads the bit group 'UP' of register 'ETH_FCR'. */
  543. U8 GH_ETH_get_FCR_UP(void);
  544. /*! \brief Writes the bit group 'PLT' of register 'ETH_FCR'. */
  545. void GH_ETH_set_FCR_PLT(U8 data);
  546. /*! \brief Reads the bit group 'PLT' of register 'ETH_FCR'. */
  547. U8 GH_ETH_get_FCR_PLT(void);
  548. /*! \brief Writes the bit group 'PT' of register 'ETH_FCR'. */
  549. void GH_ETH_set_FCR_PT(U16 data);
  550. /*! \brief Reads the bit group 'PT' of register 'ETH_FCR'. */
  551. U16 GH_ETH_get_FCR_PT(void);
  552. /*----------------------------------------------------------------------------*/
  553. /* register ETH_VTR (read/write) */
  554. /*----------------------------------------------------------------------------*/
  555. /*! \brief Writes the register 'ETH_VTR'. */
  556. void GH_ETH_set_VTR(U32 data);
  557. /*! \brief Reads the register 'ETH_VTR'. */
  558. U32 GH_ETH_get_VTR(void);
  559. /*! \brief Writes the bit group 'VL' of register 'ETH_VTR'. */
  560. void GH_ETH_set_VTR_VL(U16 data);
  561. /*! \brief Reads the bit group 'VL' of register 'ETH_VTR'. */
  562. U16 GH_ETH_get_VTR_VL(void);
  563. /*! \brief Writes the bit group 'ETV' of register 'ETH_VTR'. */
  564. void GH_ETH_set_VTR_ETV(U8 data);
  565. /*! \brief Reads the bit group 'ETV' of register 'ETH_VTR'. */
  566. U8 GH_ETH_get_VTR_ETV(void);
  567. /*----------------------------------------------------------------------------*/
  568. /* register ETH_VR (read) */
  569. /*----------------------------------------------------------------------------*/
  570. /*! \brief Reads the register 'ETH_VR'. */
  571. U32 GH_ETH_get_VR(void);
  572. /*----------------------------------------------------------------------------*/
  573. /* register ETH_MAR0H (read/write) */
  574. /*----------------------------------------------------------------------------*/
  575. /*! \brief Writes the register 'ETH_MAR0H'. */
  576. void GH_ETH_set_MAR0H(U32 data);
  577. /*! \brief Reads the register 'ETH_MAR0H'. */
  578. U32 GH_ETH_get_MAR0H(void);
  579. /*! \brief Writes the bit group 'A0' of register 'ETH_MAR0H'. */
  580. void GH_ETH_set_MAR0H_A0(U16 data);
  581. /*! \brief Reads the bit group 'A0' of register 'ETH_MAR0H'. */
  582. U16 GH_ETH_get_MAR0H_A0(void);
  583. /*! \brief Writes the bit group 'M0' of register 'ETH_MAR0H'. */
  584. void GH_ETH_set_MAR0H_M0(U8 data);
  585. /*! \brief Reads the bit group 'M0' of register 'ETH_MAR0H'. */
  586. U8 GH_ETH_get_MAR0H_M0(void);
  587. /*----------------------------------------------------------------------------*/
  588. /* register ETH_MAR0L (read/write) */
  589. /*----------------------------------------------------------------------------*/
  590. /*! \brief Writes the register 'ETH_MAR0L'. */
  591. void GH_ETH_set_MAR0L(U32 data);
  592. /*! \brief Reads the register 'ETH_MAR0L'. */
  593. U32 GH_ETH_get_MAR0L(void);
  594. /*! \brief Writes the bit group 'A0' of register 'ETH_MAR0L'. */
  595. void GH_ETH_set_MAR0L_A0(U32 data);
  596. /*! \brief Reads the bit group 'A0' of register 'ETH_MAR0L'. */
  597. U32 GH_ETH_get_MAR0L_A0(void);
  598. /*----------------------------------------------------------------------------*/
  599. /* register ETH_MAR1H (read/write) */
  600. /*----------------------------------------------------------------------------*/
  601. /*! \brief Writes the register 'ETH_MAR1H'. */
  602. void GH_ETH_set_MAR1H(U32 data);
  603. /*! \brief Reads the register 'ETH_MAR1H'. */
  604. U32 GH_ETH_get_MAR1H(void);
  605. /*! \brief Writes the bit group 'A1' of register 'ETH_MAR1H'. */
  606. void GH_ETH_set_MAR1H_A1(U16 data);
  607. /*! \brief Reads the bit group 'A1' of register 'ETH_MAR1H'. */
  608. U16 GH_ETH_get_MAR1H_A1(void);
  609. /*! \brief Writes the bit group 'MBC' of register 'ETH_MAR1H'. */
  610. void GH_ETH_set_MAR1H_MBC(U8 data);
  611. /*! \brief Reads the bit group 'MBC' of register 'ETH_MAR1H'. */
  612. U8 GH_ETH_get_MAR1H_MBC(void);
  613. /*! \brief Writes the bit group 'SA' of register 'ETH_MAR1H'. */
  614. void GH_ETH_set_MAR1H_SA(U8 data);
  615. /*! \brief Reads the bit group 'SA' of register 'ETH_MAR1H'. */
  616. U8 GH_ETH_get_MAR1H_SA(void);
  617. /*! \brief Writes the bit group 'A1E' of register 'ETH_MAR1H'. */
  618. void GH_ETH_set_MAR1H_A1E(U8 data);
  619. /*! \brief Reads the bit group 'A1E' of register 'ETH_MAR1H'. */
  620. U8 GH_ETH_get_MAR1H_A1E(void);
  621. /*----------------------------------------------------------------------------*/
  622. /* register ETH_MAR1L (read/write) */
  623. /*----------------------------------------------------------------------------*/
  624. /*! \brief Writes the register 'ETH_MAR1L'. */
  625. void GH_ETH_set_MAR1L(U32 data);
  626. /*! \brief Reads the register 'ETH_MAR1L'. */
  627. U32 GH_ETH_get_MAR1L(void);
  628. /*! \brief Writes the bit group 'A1' of register 'ETH_MAR1L'. */
  629. void GH_ETH_set_MAR1L_A1(U32 data);
  630. /*! \brief Reads the bit group 'A1' of register 'ETH_MAR1L'. */
  631. U32 GH_ETH_get_MAR1L_A1(void);
  632. /*----------------------------------------------------------------------------*/
  633. /* register ETH_MAR2H (read/write) */
  634. /*----------------------------------------------------------------------------*/
  635. /*! \brief Writes the register 'ETH_MAR2H'. */
  636. void GH_ETH_set_MAR2H(U32 data);
  637. /*! \brief Reads the register 'ETH_MAR2H'. */
  638. U32 GH_ETH_get_MAR2H(void);
  639. /*! \brief Writes the bit group 'A2' of register 'ETH_MAR2H'. */
  640. void GH_ETH_set_MAR2H_A2(U16 data);
  641. /*! \brief Reads the bit group 'A2' of register 'ETH_MAR2H'. */
  642. U16 GH_ETH_get_MAR2H_A2(void);
  643. /*! \brief Writes the bit group 'MBC' of register 'ETH_MAR2H'. */
  644. void GH_ETH_set_MAR2H_MBC(U8 data);
  645. /*! \brief Reads the bit group 'MBC' of register 'ETH_MAR2H'. */
  646. U8 GH_ETH_get_MAR2H_MBC(void);
  647. /*! \brief Writes the bit group 'SA' of register 'ETH_MAR2H'. */
  648. void GH_ETH_set_MAR2H_SA(U8 data);
  649. /*! \brief Reads the bit group 'SA' of register 'ETH_MAR2H'. */
  650. U8 GH_ETH_get_MAR2H_SA(void);
  651. /*! \brief Writes the bit group 'A2E' of register 'ETH_MAR2H'. */
  652. void GH_ETH_set_MAR2H_A2E(U8 data);
  653. /*! \brief Reads the bit group 'A2E' of register 'ETH_MAR2H'. */
  654. U8 GH_ETH_get_MAR2H_A2E(void);
  655. /*----------------------------------------------------------------------------*/
  656. /* register ETH_MAR2L (read/write) */
  657. /*----------------------------------------------------------------------------*/
  658. /*! \brief Writes the register 'ETH_MAR2L'. */
  659. void GH_ETH_set_MAR2L(U32 data);
  660. /*! \brief Reads the register 'ETH_MAR2L'. */
  661. U32 GH_ETH_get_MAR2L(void);
  662. /*! \brief Writes the bit group 'A2' of register 'ETH_MAR2L'. */
  663. void GH_ETH_set_MAR2L_A2(U32 data);
  664. /*! \brief Reads the bit group 'A2' of register 'ETH_MAR2L'. */
  665. U32 GH_ETH_get_MAR2L_A2(void);
  666. /*----------------------------------------------------------------------------*/
  667. /* register ETH_EPHY_DEBUG (read/write) */
  668. /*----------------------------------------------------------------------------*/
  669. /*! \brief Writes the register 'ETH_EPHY_DEBUG'. */
  670. void GH_ETH_set_EPHY_DEBUG(U32 data);
  671. /*! \brief Reads the register 'ETH_EPHY_DEBUG'. */
  672. U32 GH_ETH_get_EPHY_DEBUG(void);
  673. /*! \brief Writes the bit group 'debug' of register 'ETH_EPHY_DEBUG'. */
  674. void GH_ETH_set_EPHY_DEBUG_debug(U32 data);
  675. /*! \brief Reads the bit group 'debug' of register 'ETH_EPHY_DEBUG'. */
  676. U32 GH_ETH_get_EPHY_DEBUG_debug(void);
  677. /*----------------------------------------------------------------------------*/
  678. /* register ETH_BMR (read/write) */
  679. /*----------------------------------------------------------------------------*/
  680. /*! \brief Writes the register 'ETH_BMR'. */
  681. void GH_ETH_set_BMR(U32 data);
  682. /*! \brief Reads the register 'ETH_BMR'. */
  683. U32 GH_ETH_get_BMR(void);
  684. /*! \brief Writes the bit group 'SWR' of register 'ETH_BMR'. */
  685. void GH_ETH_set_BMR_SWR(U8 data);
  686. /*! \brief Reads the bit group 'SWR' of register 'ETH_BMR'. */
  687. U8 GH_ETH_get_BMR_SWR(void);
  688. /*! \brief Writes the bit group 'DA' of register 'ETH_BMR'. */
  689. void GH_ETH_set_BMR_DA(U8 data);
  690. /*! \brief Reads the bit group 'DA' of register 'ETH_BMR'. */
  691. U8 GH_ETH_get_BMR_DA(void);
  692. /*! \brief Writes the bit group 'DSL' of register 'ETH_BMR'. */
  693. void GH_ETH_set_BMR_DSL(U8 data);
  694. /*! \brief Reads the bit group 'DSL' of register 'ETH_BMR'. */
  695. U8 GH_ETH_get_BMR_DSL(void);
  696. /*! \brief Writes the bit group 'PBL' of register 'ETH_BMR'. */
  697. void GH_ETH_set_BMR_PBL(U8 data);
  698. /*! \brief Reads the bit group 'PBL' of register 'ETH_BMR'. */
  699. U8 GH_ETH_get_BMR_PBL(void);
  700. /*! \brief Writes the bit group 'PR' of register 'ETH_BMR'. */
  701. void GH_ETH_set_BMR_PR(U8 data);
  702. /*! \brief Reads the bit group 'PR' of register 'ETH_BMR'. */
  703. U8 GH_ETH_get_BMR_PR(void);
  704. /*! \brief Writes the bit group 'FB' of register 'ETH_BMR'. */
  705. void GH_ETH_set_BMR_FB(U8 data);
  706. /*! \brief Reads the bit group 'FB' of register 'ETH_BMR'. */
  707. U8 GH_ETH_get_BMR_FB(void);
  708. /*! \brief Writes the bit group 'RPBL' of register 'ETH_BMR'. */
  709. void GH_ETH_set_BMR_RPBL(U8 data);
  710. /*! \brief Reads the bit group 'RPBL' of register 'ETH_BMR'. */
  711. U8 GH_ETH_get_BMR_RPBL(void);
  712. /*! \brief Writes the bit group 'USP' of register 'ETH_BMR'. */
  713. void GH_ETH_set_BMR_USP(U8 data);
  714. /*! \brief Reads the bit group 'USP' of register 'ETH_BMR'. */
  715. U8 GH_ETH_get_BMR_USP(void);
  716. /*! \brief Writes the bit group 'PBL4X' of register 'ETH_BMR'. */
  717. void GH_ETH_set_BMR_PBL4X(U8 data);
  718. /*! \brief Reads the bit group 'PBL4X' of register 'ETH_BMR'. */
  719. U8 GH_ETH_get_BMR_PBL4X(void);
  720. /*! \brief Writes the bit group 'AAL' of register 'ETH_BMR'. */
  721. void GH_ETH_set_BMR_AAL(U8 data);
  722. /*! \brief Reads the bit group 'AAL' of register 'ETH_BMR'. */
  723. U8 GH_ETH_get_BMR_AAL(void);
  724. /*----------------------------------------------------------------------------*/
  725. /* register ETH_TPDR (read/write) */
  726. /*----------------------------------------------------------------------------*/
  727. /*! \brief Writes the register 'ETH_TPDR'. */
  728. void GH_ETH_set_TPDR(U32 data);
  729. /*! \brief Reads the register 'ETH_TPDR'. */
  730. U32 GH_ETH_get_TPDR(void);
  731. /*----------------------------------------------------------------------------*/
  732. /* register ETH_RPDR (read/write) */
  733. /*----------------------------------------------------------------------------*/
  734. /*! \brief Writes the register 'ETH_RPDR'. */
  735. void GH_ETH_set_RPDR(U32 data);
  736. /*! \brief Reads the register 'ETH_RPDR'. */
  737. U32 GH_ETH_get_RPDR(void);
  738. /*----------------------------------------------------------------------------*/
  739. /* register ETH_RDLAR (read/write) */
  740. /*----------------------------------------------------------------------------*/
  741. /*! \brief Writes the register 'ETH_RDLAR'. */
  742. void GH_ETH_set_RDLAR(U32 data);
  743. /*! \brief Reads the register 'ETH_RDLAR'. */
  744. U32 GH_ETH_get_RDLAR(void);
  745. /*----------------------------------------------------------------------------*/
  746. /* register ETH_TDLAR (read/write) */
  747. /*----------------------------------------------------------------------------*/
  748. /*! \brief Writes the register 'ETH_TDLAR'. */
  749. void GH_ETH_set_TDLAR(U32 data);
  750. /*! \brief Reads the register 'ETH_TDLAR'. */
  751. U32 GH_ETH_get_TDLAR(void);
  752. /*----------------------------------------------------------------------------*/
  753. /* register ETH_SR (read/write) */
  754. /*----------------------------------------------------------------------------*/
  755. /*! \brief Writes the register 'ETH_SR'. */
  756. void GH_ETH_set_SR(U32 data);
  757. /*! \brief Reads the register 'ETH_SR'. */
  758. U32 GH_ETH_get_SR(void);
  759. /*! \brief Writes the bit group 'TI' of register 'ETH_SR'. */
  760. void GH_ETH_set_SR_TI(U8 data);
  761. /*! \brief Reads the bit group 'TI' of register 'ETH_SR'. */
  762. U8 GH_ETH_get_SR_TI(void);
  763. /*! \brief Writes the bit group 'TPS' of register 'ETH_SR'. */
  764. void GH_ETH_set_SR_TPS(U8 data);
  765. /*! \brief Reads the bit group 'TPS' of register 'ETH_SR'. */
  766. U8 GH_ETH_get_SR_TPS(void);
  767. /*! \brief Writes the bit group 'TU' of register 'ETH_SR'. */
  768. void GH_ETH_set_SR_TU(U8 data);
  769. /*! \brief Reads the bit group 'TU' of register 'ETH_SR'. */
  770. U8 GH_ETH_get_SR_TU(void);
  771. /*! \brief Writes the bit group 'TJT' of register 'ETH_SR'. */
  772. void GH_ETH_set_SR_TJT(U8 data);
  773. /*! \brief Reads the bit group 'TJT' of register 'ETH_SR'. */
  774. U8 GH_ETH_get_SR_TJT(void);
  775. /*! \brief Writes the bit group 'OVF' of register 'ETH_SR'. */
  776. void GH_ETH_set_SR_OVF(U8 data);
  777. /*! \brief Reads the bit group 'OVF' of register 'ETH_SR'. */
  778. U8 GH_ETH_get_SR_OVF(void);
  779. /*! \brief Writes the bit group 'UNF' of register 'ETH_SR'. */
  780. void GH_ETH_set_SR_UNF(U8 data);
  781. /*! \brief Reads the bit group 'UNF' of register 'ETH_SR'. */
  782. U8 GH_ETH_get_SR_UNF(void);
  783. /*! \brief Writes the bit group 'RI' of register 'ETH_SR'. */
  784. void GH_ETH_set_SR_RI(U8 data);
  785. /*! \brief Reads the bit group 'RI' of register 'ETH_SR'. */
  786. U8 GH_ETH_get_SR_RI(void);
  787. /*! \brief Writes the bit group 'RU' of register 'ETH_SR'. */
  788. void GH_ETH_set_SR_RU(U8 data);
  789. /*! \brief Reads the bit group 'RU' of register 'ETH_SR'. */
  790. U8 GH_ETH_get_SR_RU(void);
  791. /*! \brief Writes the bit group 'RPS' of register 'ETH_SR'. */
  792. void GH_ETH_set_SR_RPS(U8 data);
  793. /*! \brief Reads the bit group 'RPS' of register 'ETH_SR'. */
  794. U8 GH_ETH_get_SR_RPS(void);
  795. /*! \brief Writes the bit group 'RWT' of register 'ETH_SR'. */
  796. void GH_ETH_set_SR_RWT(U8 data);
  797. /*! \brief Reads the bit group 'RWT' of register 'ETH_SR'. */
  798. U8 GH_ETH_get_SR_RWT(void);
  799. /*! \brief Writes the bit group 'ETI' of register 'ETH_SR'. */
  800. void GH_ETH_set_SR_ETI(U8 data);
  801. /*! \brief Reads the bit group 'ETI' of register 'ETH_SR'. */
  802. U8 GH_ETH_get_SR_ETI(void);
  803. /*! \brief Writes the bit group 'FBE' of register 'ETH_SR'. */
  804. void GH_ETH_set_SR_FBE(U8 data);
  805. /*! \brief Reads the bit group 'FBE' of register 'ETH_SR'. */
  806. U8 GH_ETH_get_SR_FBE(void);
  807. /*! \brief Writes the bit group 'ERI' of register 'ETH_SR'. */
  808. void GH_ETH_set_SR_ERI(U8 data);
  809. /*! \brief Reads the bit group 'ERI' of register 'ETH_SR'. */
  810. U8 GH_ETH_get_SR_ERI(void);
  811. /*! \brief Writes the bit group 'AIS' of register 'ETH_SR'. */
  812. void GH_ETH_set_SR_AIS(U8 data);
  813. /*! \brief Reads the bit group 'AIS' of register 'ETH_SR'. */
  814. U8 GH_ETH_get_SR_AIS(void);
  815. /*! \brief Writes the bit group 'NIS' of register 'ETH_SR'. */
  816. void GH_ETH_set_SR_NIS(U8 data);
  817. /*! \brief Reads the bit group 'NIS' of register 'ETH_SR'. */
  818. U8 GH_ETH_get_SR_NIS(void);
  819. /*! \brief Writes the bit group 'RS' of register 'ETH_SR'. */
  820. void GH_ETH_set_SR_RS(U8 data);
  821. /*! \brief Reads the bit group 'RS' of register 'ETH_SR'. */
  822. U8 GH_ETH_get_SR_RS(void);
  823. /*! \brief Writes the bit group 'TS' of register 'ETH_SR'. */
  824. void GH_ETH_set_SR_TS(U8 data);
  825. /*! \brief Reads the bit group 'TS' of register 'ETH_SR'. */
  826. U8 GH_ETH_get_SR_TS(void);
  827. /*! \brief Writes the bit group 'EB' of register 'ETH_SR'. */
  828. void GH_ETH_set_SR_EB(U8 data);
  829. /*! \brief Reads the bit group 'EB' of register 'ETH_SR'. */
  830. U8 GH_ETH_get_SR_EB(void);
  831. /*! \brief Writes the bit group 'GLI' of register 'ETH_SR'. */
  832. void GH_ETH_set_SR_GLI(U8 data);
  833. /*! \brief Reads the bit group 'GLI' of register 'ETH_SR'. */
  834. U8 GH_ETH_get_SR_GLI(void);
  835. /*! \brief Writes the bit group 'GMI' of register 'ETH_SR'. */
  836. void GH_ETH_set_SR_GMI(U8 data);
  837. /*! \brief Reads the bit group 'GMI' of register 'ETH_SR'. */
  838. U8 GH_ETH_get_SR_GMI(void);
  839. /*! \brief Writes the bit group 'GPI' of register 'ETH_SR'. */
  840. void GH_ETH_set_SR_GPI(U8 data);
  841. /*! \brief Reads the bit group 'GPI' of register 'ETH_SR'. */
  842. U8 GH_ETH_get_SR_GPI(void);
  843. /*----------------------------------------------------------------------------*/
  844. /* register ETH_OMR (read/write) */
  845. /*----------------------------------------------------------------------------*/
  846. /*! \brief Writes the register 'ETH_OMR'. */
  847. void GH_ETH_set_OMR(U32 data);
  848. /*! \brief Reads the register 'ETH_OMR'. */
  849. U32 GH_ETH_get_OMR(void);
  850. /*! \brief Writes the bit group 'SR' of register 'ETH_OMR'. */
  851. void GH_ETH_set_OMR_SR(U8 data);
  852. /*! \brief Reads the bit group 'SR' of register 'ETH_OMR'. */
  853. U8 GH_ETH_get_OMR_SR(void);
  854. /*! \brief Writes the bit group 'OSF' of register 'ETH_OMR'. */
  855. void GH_ETH_set_OMR_OSF(U8 data);
  856. /*! \brief Reads the bit group 'OSF' of register 'ETH_OMR'. */
  857. U8 GH_ETH_get_OMR_OSF(void);
  858. /*! \brief Writes the bit group 'RTC' of register 'ETH_OMR'. */
  859. void GH_ETH_set_OMR_RTC(U8 data);
  860. /*! \brief Reads the bit group 'RTC' of register 'ETH_OMR'. */
  861. U8 GH_ETH_get_OMR_RTC(void);
  862. /*! \brief Writes the bit group 'FUF' of register 'ETH_OMR'. */
  863. void GH_ETH_set_OMR_FUF(U8 data);
  864. /*! \brief Reads the bit group 'FUF' of register 'ETH_OMR'. */
  865. U8 GH_ETH_get_OMR_FUF(void);
  866. /*! \brief Writes the bit group 'FEF' of register 'ETH_OMR'. */
  867. void GH_ETH_set_OMR_FEF(U8 data);
  868. /*! \brief Reads the bit group 'FEF' of register 'ETH_OMR'. */
  869. U8 GH_ETH_get_OMR_FEF(void);
  870. /*! \brief Writes the bit group 'EFC' of register 'ETH_OMR'. */
  871. void GH_ETH_set_OMR_EFC(U8 data);
  872. /*! \brief Reads the bit group 'EFC' of register 'ETH_OMR'. */
  873. U8 GH_ETH_get_OMR_EFC(void);
  874. /*! \brief Writes the bit group 'RFA' of register 'ETH_OMR'. */
  875. void GH_ETH_set_OMR_RFA(U8 data);
  876. /*! \brief Reads the bit group 'RFA' of register 'ETH_OMR'. */
  877. U8 GH_ETH_get_OMR_RFA(void);
  878. /*! \brief Writes the bit group 'RFD' of register 'ETH_OMR'. */
  879. void GH_ETH_set_OMR_RFD(U8 data);
  880. /*! \brief Reads the bit group 'RFD' of register 'ETH_OMR'. */
  881. U8 GH_ETH_get_OMR_RFD(void);
  882. /*! \brief Writes the bit group 'ST' of register 'ETH_OMR'. */
  883. void GH_ETH_set_OMR_ST(U8 data);
  884. /*! \brief Reads the bit group 'ST' of register 'ETH_OMR'. */
  885. U8 GH_ETH_get_OMR_ST(void);
  886. /*! \brief Writes the bit group 'TTC' of register 'ETH_OMR'. */
  887. void GH_ETH_set_OMR_TTC(U8 data);
  888. /*! \brief Reads the bit group 'TTC' of register 'ETH_OMR'. */
  889. U8 GH_ETH_get_OMR_TTC(void);
  890. /*! \brief Writes the bit group 'FTF' of register 'ETH_OMR'. */
  891. void GH_ETH_set_OMR_FTF(U8 data);
  892. /*! \brief Reads the bit group 'FTF' of register 'ETH_OMR'. */
  893. U8 GH_ETH_get_OMR_FTF(void);
  894. /*! \brief Writes the bit group 'SF' of register 'ETH_OMR'. */
  895. void GH_ETH_set_OMR_SF(U8 data);
  896. /*! \brief Reads the bit group 'SF' of register 'ETH_OMR'. */
  897. U8 GH_ETH_get_OMR_SF(void);
  898. /*----------------------------------------------------------------------------*/
  899. /* register ETH_IER (read/write) */
  900. /*----------------------------------------------------------------------------*/
  901. /*! \brief Writes the register 'ETH_IER'. */
  902. void GH_ETH_set_IER(U32 data);
  903. /*! \brief Reads the register 'ETH_IER'. */
  904. U32 GH_ETH_get_IER(void);
  905. /*! \brief Writes the bit group 'TI' of register 'ETH_IER'. */
  906. void GH_ETH_set_IER_TI(U8 data);
  907. /*! \brief Reads the bit group 'TI' of register 'ETH_IER'. */
  908. U8 GH_ETH_get_IER_TI(void);
  909. /*! \brief Writes the bit group 'TS' of register 'ETH_IER'. */
  910. void GH_ETH_set_IER_TS(U8 data);
  911. /*! \brief Reads the bit group 'TS' of register 'ETH_IER'. */
  912. U8 GH_ETH_get_IER_TS(void);
  913. /*! \brief Writes the bit group 'TU' of register 'ETH_IER'. */
  914. void GH_ETH_set_IER_TU(U8 data);
  915. /*! \brief Reads the bit group 'TU' of register 'ETH_IER'. */
  916. U8 GH_ETH_get_IER_TU(void);
  917. /*! \brief Writes the bit group 'TJ' of register 'ETH_IER'. */
  918. void GH_ETH_set_IER_TJ(U8 data);
  919. /*! \brief Reads the bit group 'TJ' of register 'ETH_IER'. */
  920. U8 GH_ETH_get_IER_TJ(void);
  921. /*! \brief Writes the bit group 'OV' of register 'ETH_IER'. */
  922. void GH_ETH_set_IER_OV(U8 data);
  923. /*! \brief Reads the bit group 'OV' of register 'ETH_IER'. */
  924. U8 GH_ETH_get_IER_OV(void);
  925. /*! \brief Writes the bit group 'UN' of register 'ETH_IER'. */
  926. void GH_ETH_set_IER_UN(U8 data);
  927. /*! \brief Reads the bit group 'UN' of register 'ETH_IER'. */
  928. U8 GH_ETH_get_IER_UN(void);
  929. /*! \brief Writes the bit group 'RI' of register 'ETH_IER'. */
  930. void GH_ETH_set_IER_RI(U8 data);
  931. /*! \brief Reads the bit group 'RI' of register 'ETH_IER'. */
  932. U8 GH_ETH_get_IER_RI(void);
  933. /*! \brief Writes the bit group 'RU' of register 'ETH_IER'. */
  934. void GH_ETH_set_IER_RU(U8 data);
  935. /*! \brief Reads the bit group 'RU' of register 'ETH_IER'. */
  936. U8 GH_ETH_get_IER_RU(void);
  937. /*! \brief Writes the bit group 'RS' of register 'ETH_IER'. */
  938. void GH_ETH_set_IER_RS(U8 data);
  939. /*! \brief Reads the bit group 'RS' of register 'ETH_IER'. */
  940. U8 GH_ETH_get_IER_RS(void);
  941. /*! \brief Writes the bit group 'RW' of register 'ETH_IER'. */
  942. void GH_ETH_set_IER_RW(U8 data);
  943. /*! \brief Reads the bit group 'RW' of register 'ETH_IER'. */
  944. U8 GH_ETH_get_IER_RW(void);
  945. /*! \brief Writes the bit group 'ETE' of register 'ETH_IER'. */
  946. void GH_ETH_set_IER_ETE(U8 data);
  947. /*! \brief Reads the bit group 'ETE' of register 'ETH_IER'. */
  948. U8 GH_ETH_get_IER_ETE(void);
  949. /*! \brief Writes the bit group 'FBE' of register 'ETH_IER'. */
  950. void GH_ETH_set_IER_FBE(U8 data);
  951. /*! \brief Reads the bit group 'FBE' of register 'ETH_IER'. */
  952. U8 GH_ETH_get_IER_FBE(void);
  953. /*! \brief Writes the bit group 'ERE' of register 'ETH_IER'. */
  954. void GH_ETH_set_IER_ERE(U8 data);
  955. /*! \brief Reads the bit group 'ERE' of register 'ETH_IER'. */
  956. U8 GH_ETH_get_IER_ERE(void);
  957. /*! \brief Writes the bit group 'AI' of register 'ETH_IER'. */
  958. void GH_ETH_set_IER_AI(U8 data);
  959. /*! \brief Reads the bit group 'AI' of register 'ETH_IER'. */
  960. U8 GH_ETH_get_IER_AI(void);
  961. /*! \brief Writes the bit group 'NI' of register 'ETH_IER'. */
  962. void GH_ETH_set_IER_NI(U8 data);
  963. /*! \brief Reads the bit group 'NI' of register 'ETH_IER'. */
  964. U8 GH_ETH_get_IER_NI(void);
  965. /*----------------------------------------------------------------------------*/
  966. /* register ETH_MFBOCR (read/write) */
  967. /*----------------------------------------------------------------------------*/
  968. /*! \brief Writes the register 'ETH_MFBOCR'. */
  969. void GH_ETH_set_MFBOCR(U32 data);
  970. /*! \brief Reads the register 'ETH_MFBOCR'. */
  971. U32 GH_ETH_get_MFBOCR(void);
  972. /*! \brief Writes the bit group 'NMFH' of register 'ETH_MFBOCR'. */
  973. void GH_ETH_set_MFBOCR_NMFH(U16 data);
  974. /*! \brief Reads the bit group 'NMFH' of register 'ETH_MFBOCR'. */
  975. U16 GH_ETH_get_MFBOCR_NMFH(void);
  976. /*! \brief Writes the bit group 'OVMFC' of register 'ETH_MFBOCR'. */
  977. void GH_ETH_set_MFBOCR_OVMFC(U8 data);
  978. /*! \brief Reads the bit group 'OVMFC' of register 'ETH_MFBOCR'. */
  979. U8 GH_ETH_get_MFBOCR_OVMFC(void);
  980. /*! \brief Writes the bit group 'NMFF' of register 'ETH_MFBOCR'. */
  981. void GH_ETH_set_MFBOCR_NMFF(U16 data);
  982. /*! \brief Reads the bit group 'NMFF' of register 'ETH_MFBOCR'. */
  983. U16 GH_ETH_get_MFBOCR_NMFF(void);
  984. /*! \brief Writes the bit group 'ONMFF' of register 'ETH_MFBOCR'. */
  985. void GH_ETH_set_MFBOCR_ONMFF(U8 data);
  986. /*! \brief Reads the bit group 'ONMFF' of register 'ETH_MFBOCR'. */
  987. U8 GH_ETH_get_MFBOCR_ONMFF(void);
  988. /*----------------------------------------------------------------------------*/
  989. /* register ETH_CHTDR (read/write) */
  990. /*----------------------------------------------------------------------------*/
  991. /*! \brief Writes the register 'ETH_CHTDR'. */
  992. void GH_ETH_set_CHTDR(U32 data);
  993. /*! \brief Reads the register 'ETH_CHTDR'. */
  994. U32 GH_ETH_get_CHTDR(void);
  995. /*----------------------------------------------------------------------------*/
  996. /* register ETH_CHRDR (read/write) */
  997. /*----------------------------------------------------------------------------*/
  998. /*! \brief Writes the register 'ETH_CHRDR'. */
  999. void GH_ETH_set_CHRDR(U32 data);
  1000. /*! \brief Reads the register 'ETH_CHRDR'. */
  1001. U32 GH_ETH_get_CHRDR(void);
  1002. /*----------------------------------------------------------------------------*/
  1003. /* register ETH_CHTBAR (read/write) */
  1004. /*----------------------------------------------------------------------------*/
  1005. /*! \brief Writes the register 'ETH_CHTBAR'. */
  1006. void GH_ETH_set_CHTBAR(U32 data);
  1007. /*! \brief Reads the register 'ETH_CHTBAR'. */
  1008. U32 GH_ETH_get_CHTBAR(void);
  1009. /*----------------------------------------------------------------------------*/
  1010. /* register ETH_CHRBAR (read/write) */
  1011. /*----------------------------------------------------------------------------*/
  1012. /*! \brief Writes the register 'ETH_CHRBAR'. */
  1013. void GH_ETH_set_CHRBAR(U32 data);
  1014. /*! \brief Reads the register 'ETH_CHRBAR'. */
  1015. U32 GH_ETH_get_CHRBAR(void);
  1016. /*----------------------------------------------------------------------------*/
  1017. /* init function */
  1018. /*----------------------------------------------------------------------------*/
  1019. /*! \brief Initialises the registers and mirror variables. */
  1020. void GH_ETH_init(void);
  1021. #ifdef SRC_INLINE
  1022. #define SRC_INC 1
  1023. #include "gh_eth.c"
  1024. #undef SRC_INC
  1025. #endif
  1026. #ifdef __cplusplus
  1027. }
  1028. #endif
  1029. #endif /* _GH_ETH_H */
  1030. /*----------------------------------------------------------------------------*/
  1031. /* end of file */
  1032. /*----------------------------------------------------------------------------*/