sh_eth.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* SuperH Ethernet device driver
  3. *
  4. * Copyright (C) 2006-2012 Nobuhiro Iwamatsu
  5. * Copyright (C) 2008-2012 Renesas Solutions Corp.
  6. */
  7. #ifndef __SH_ETH_H__
  8. #define __SH_ETH_H__
  9. #define CARDNAME "sh-eth"
  10. #define TX_TIMEOUT (5*HZ)
  11. #define TX_RING_SIZE 64 /* Tx ring size */
  12. #define RX_RING_SIZE 64 /* Rx ring size */
  13. #define TX_RING_MIN 64
  14. #define RX_RING_MIN 64
  15. #define TX_RING_MAX 1024
  16. #define RX_RING_MAX 1024
  17. #define PKT_BUF_SZ 1538
  18. #define SH_ETH_TSU_TIMEOUT_MS 500
  19. #define SH_ETH_TSU_CAM_ENTRIES 32
  20. enum {
  21. /* IMPORTANT: To keep ethtool register dump working, add new
  22. * register names immediately before SH_ETH_MAX_REGISTER_OFFSET.
  23. */
  24. /* E-DMAC registers */
  25. EDSR = 0,
  26. EDMR,
  27. EDTRR,
  28. EDRRR,
  29. EESR,
  30. EESIPR,
  31. TDLAR,
  32. TDFAR,
  33. TDFXR,
  34. TDFFR,
  35. RDLAR,
  36. RDFAR,
  37. RDFXR,
  38. RDFFR,
  39. TRSCER,
  40. RMFCR,
  41. TFTR,
  42. FDR,
  43. RMCR,
  44. EDOCR,
  45. TFUCR,
  46. RFOCR,
  47. RMIIMODE,
  48. FCFTR,
  49. RPADIR,
  50. TRIMD,
  51. RBWAR,
  52. TBRAR,
  53. /* Ether registers */
  54. ECMR,
  55. ECSR,
  56. ECSIPR,
  57. PIR,
  58. PSR,
  59. RDMLR,
  60. PIPR,
  61. RFLR,
  62. IPGR,
  63. APR,
  64. MPR,
  65. PFTCR,
  66. PFRCR,
  67. RFCR,
  68. RFCF,
  69. TPAUSER,
  70. TPAUSECR,
  71. BCFR,
  72. BCFRR,
  73. GECMR,
  74. BCULR,
  75. MAHR,
  76. MALR,
  77. TROCR,
  78. CDCR,
  79. LCCR,
  80. CNDCR,
  81. CEFCR,
  82. FRECR,
  83. TSFRCR,
  84. TLFRCR,
  85. CERCR,
  86. CEECR,
  87. MAFCR,
  88. RTRATE,
  89. CSMR,
  90. RMII_MII,
  91. /* TSU Absolute address */
  92. ARSTR,
  93. TSU_CTRST,
  94. TSU_FWEN0,
  95. TSU_FWEN1,
  96. TSU_FCM,
  97. TSU_BSYSL0,
  98. TSU_BSYSL1,
  99. TSU_PRISL0,
  100. TSU_PRISL1,
  101. TSU_FWSL0,
  102. TSU_FWSL1,
  103. TSU_FWSLC,
  104. TSU_QTAG0, /* Same as TSU_QTAGM0 */
  105. TSU_QTAG1, /* Same as TSU_QTAGM1 */
  106. TSU_QTAGM0,
  107. TSU_QTAGM1,
  108. TSU_FWSR,
  109. TSU_FWINMK,
  110. TSU_ADQT0,
  111. TSU_ADQT1,
  112. TSU_VTAG0,
  113. TSU_VTAG1,
  114. TSU_ADSBSY,
  115. TSU_TEN,
  116. TSU_POST1,
  117. TSU_POST2,
  118. TSU_POST3,
  119. TSU_POST4,
  120. TSU_ADRH0,
  121. /* TSU_ADR{H,L}{0..31} are assumed to be contiguous */
  122. TXNLCR0,
  123. TXALCR0,
  124. RXNLCR0,
  125. RXALCR0,
  126. FWNLCR0,
  127. FWALCR0,
  128. TXNLCR1,
  129. TXALCR1,
  130. RXNLCR1,
  131. RXALCR1,
  132. FWNLCR1,
  133. FWALCR1,
  134. /* This value must be written at last. */
  135. SH_ETH_MAX_REGISTER_OFFSET,
  136. };
  137. enum {
  138. SH_ETH_REG_GIGABIT,
  139. SH_ETH_REG_FAST_RZ,
  140. SH_ETH_REG_FAST_RCAR,
  141. SH_ETH_REG_FAST_SH4,
  142. SH_ETH_REG_FAST_SH3_SH2
  143. };
  144. /* Driver's parameters */
  145. #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_RENESAS)
  146. #define SH_ETH_RX_ALIGN 32
  147. #else
  148. #define SH_ETH_RX_ALIGN 2
  149. #endif
  150. /* Register's bits
  151. */
  152. /* EDSR : sh7734, sh7757, sh7763, r8a7740, and r7s72100 only */
  153. enum EDSR_BIT {
  154. EDSR_ENT = 0x01, EDSR_ENR = 0x02,
  155. };
  156. #define EDSR_ENALL (EDSR_ENT|EDSR_ENR)
  157. /* GECMR : sh7734, sh7763 and r8a7740 only */
  158. enum GECMR_BIT {
  159. GECMR_10 = 0x0, GECMR_100 = 0x04, GECMR_1000 = 0x01,
  160. };
  161. /* EDMR */
  162. enum DMAC_M_BIT {
  163. EDMR_NBST = 0x80,
  164. EDMR_EL = 0x40, /* Litte endian */
  165. EDMR_DL1 = 0x20, EDMR_DL0 = 0x10,
  166. EDMR_SRST_GETHER = 0x03,
  167. EDMR_SRST_ETHER = 0x01,
  168. };
  169. /* EDTRR */
  170. enum DMAC_T_BIT {
  171. EDTRR_TRNS_GETHER = 0x03,
  172. EDTRR_TRNS_ETHER = 0x01,
  173. };
  174. /* EDRRR */
  175. enum EDRRR_R_BIT {
  176. EDRRR_R = 0x01,
  177. };
  178. /* TPAUSER */
  179. enum TPAUSER_BIT {
  180. TPAUSER_TPAUSE = 0x0000ffff,
  181. TPAUSER_UNLIMITED = 0,
  182. };
  183. /* BCFR */
  184. enum BCFR_BIT {
  185. BCFR_RPAUSE = 0x0000ffff,
  186. BCFR_UNLIMITED = 0,
  187. };
  188. /* PIR */
  189. enum PIR_BIT {
  190. PIR_MDI = 0x08, PIR_MDO = 0x04, PIR_MMD = 0x02, PIR_MDC = 0x01,
  191. };
  192. /* PSR */
  193. enum PHY_STATUS_BIT { PHY_ST_LINK = 0x01, };
  194. /* EESR */
  195. enum EESR_BIT {
  196. EESR_TWB1 = 0x80000000,
  197. EESR_TWB = 0x40000000, /* same as TWB0 */
  198. EESR_TC1 = 0x20000000,
  199. EESR_TUC = 0x10000000,
  200. EESR_ROC = 0x08000000,
  201. EESR_TABT = 0x04000000,
  202. EESR_RABT = 0x02000000,
  203. EESR_RFRMER = 0x01000000, /* same as RFCOF */
  204. EESR_ADE = 0x00800000,
  205. EESR_ECI = 0x00400000,
  206. EESR_FTC = 0x00200000, /* same as TC or TC0 */
  207. EESR_TDE = 0x00100000,
  208. EESR_TFE = 0x00080000, /* same as TFUF */
  209. EESR_FRC = 0x00040000, /* same as FR */
  210. EESR_RDE = 0x00020000,
  211. EESR_RFE = 0x00010000,
  212. EESR_CND = 0x00000800,
  213. EESR_DLC = 0x00000400,
  214. EESR_CD = 0x00000200,
  215. EESR_TRO = 0x00000100,
  216. EESR_RMAF = 0x00000080,
  217. EESR_CEEF = 0x00000040,
  218. EESR_CELF = 0x00000020,
  219. EESR_RRF = 0x00000010,
  220. EESR_RTLF = 0x00000008,
  221. EESR_RTSF = 0x00000004,
  222. EESR_PRE = 0x00000002,
  223. EESR_CERF = 0x00000001,
  224. };
  225. #define EESR_RX_CHECK (EESR_FRC | /* Frame recv */ \
  226. EESR_RMAF | /* Multicast address recv */ \
  227. EESR_RRF | /* Bit frame recv */ \
  228. EESR_RTLF | /* Long frame recv */ \
  229. EESR_RTSF | /* Short frame recv */ \
  230. EESR_PRE | /* PHY-LSI recv error */ \
  231. EESR_CERF) /* Recv frame CRC error */
  232. #define DEFAULT_TX_CHECK (EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | \
  233. EESR_TRO)
  234. #define DEFAULT_EESR_ERR_CHECK (EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE | \
  235. EESR_RDE | EESR_RFRMER | EESR_ADE | \
  236. EESR_TFE | EESR_TDE)
  237. /* EESIPR */
  238. enum EESIPR_BIT {
  239. EESIPR_TWB1IP = 0x80000000,
  240. EESIPR_TWBIP = 0x40000000, /* same as TWB0IP */
  241. EESIPR_TC1IP = 0x20000000,
  242. EESIPR_TUCIP = 0x10000000,
  243. EESIPR_ROCIP = 0x08000000,
  244. EESIPR_TABTIP = 0x04000000,
  245. EESIPR_RABTIP = 0x02000000,
  246. EESIPR_RFCOFIP = 0x01000000,
  247. EESIPR_ADEIP = 0x00800000,
  248. EESIPR_ECIIP = 0x00400000,
  249. EESIPR_FTCIP = 0x00200000, /* same as TC0IP */
  250. EESIPR_TDEIP = 0x00100000,
  251. EESIPR_TFUFIP = 0x00080000,
  252. EESIPR_FRIP = 0x00040000,
  253. EESIPR_RDEIP = 0x00020000,
  254. EESIPR_RFOFIP = 0x00010000,
  255. EESIPR_CNDIP = 0x00000800,
  256. EESIPR_DLCIP = 0x00000400,
  257. EESIPR_CDIP = 0x00000200,
  258. EESIPR_TROIP = 0x00000100,
  259. EESIPR_RMAFIP = 0x00000080,
  260. EESIPR_CEEFIP = 0x00000040,
  261. EESIPR_CELFIP = 0x00000020,
  262. EESIPR_RRFIP = 0x00000010,
  263. EESIPR_RTLFIP = 0x00000008,
  264. EESIPR_RTSFIP = 0x00000004,
  265. EESIPR_PREIP = 0x00000002,
  266. EESIPR_CERFIP = 0x00000001,
  267. };
  268. /* Receive descriptor 0 bits */
  269. enum RD_STS_BIT {
  270. RD_RACT = 0x80000000, RD_RDLE = 0x40000000,
  271. RD_RFP1 = 0x20000000, RD_RFP0 = 0x10000000,
  272. RD_RFE = 0x08000000, RD_RFS10 = 0x00000200,
  273. RD_RFS9 = 0x00000100, RD_RFS8 = 0x00000080,
  274. RD_RFS7 = 0x00000040, RD_RFS6 = 0x00000020,
  275. RD_RFS5 = 0x00000010, RD_RFS4 = 0x00000008,
  276. RD_RFS3 = 0x00000004, RD_RFS2 = 0x00000002,
  277. RD_RFS1 = 0x00000001,
  278. };
  279. #define RDF1ST RD_RFP1
  280. #define RDFEND RD_RFP0
  281. #define RD_RFP (RD_RFP1|RD_RFP0)
  282. /* Receive descriptor 1 bits */
  283. enum RD_LEN_BIT {
  284. RD_RFL = 0x0000ffff, /* receive frame length */
  285. RD_RBL = 0xffff0000, /* receive buffer length */
  286. };
  287. /* FCFTR */
  288. enum FCFTR_BIT {
  289. FCFTR_RFF2 = 0x00040000, FCFTR_RFF1 = 0x00020000,
  290. FCFTR_RFF0 = 0x00010000, FCFTR_RFD2 = 0x00000004,
  291. FCFTR_RFD1 = 0x00000002, FCFTR_RFD0 = 0x00000001,
  292. };
  293. #define DEFAULT_FIFO_F_D_RFF (FCFTR_RFF2 | FCFTR_RFF1 | FCFTR_RFF0)
  294. #define DEFAULT_FIFO_F_D_RFD (FCFTR_RFD2 | FCFTR_RFD1 | FCFTR_RFD0)
  295. /* Transmit descriptor 0 bits */
  296. enum TD_STS_BIT {
  297. TD_TACT = 0x80000000, TD_TDLE = 0x40000000,
  298. TD_TFP1 = 0x20000000, TD_TFP0 = 0x10000000,
  299. TD_TFE = 0x08000000, TD_TWBI = 0x04000000,
  300. };
  301. #define TDF1ST TD_TFP1
  302. #define TDFEND TD_TFP0
  303. #define TD_TFP (TD_TFP1|TD_TFP0)
  304. /* Transmit descriptor 1 bits */
  305. enum TD_LEN_BIT {
  306. TD_TBL = 0xffff0000, /* transmit buffer length */
  307. };
  308. /* RMCR */
  309. enum RMCR_BIT {
  310. RMCR_RNC = 0x00000001,
  311. };
  312. /* ECMR */
  313. enum FELIC_MODE_BIT {
  314. ECMR_TRCCM = 0x04000000, ECMR_RCSC = 0x00800000,
  315. ECMR_DPAD = 0x00200000, ECMR_RZPF = 0x00100000,
  316. ECMR_ZPF = 0x00080000, ECMR_PFR = 0x00040000, ECMR_RXF = 0x00020000,
  317. ECMR_TXF = 0x00010000, ECMR_MCT = 0x00002000, ECMR_PRCEF = 0x00001000,
  318. ECMR_MPDE = 0x00000200, ECMR_RE = 0x00000040, ECMR_TE = 0x00000020,
  319. ECMR_RTM = 0x00000010, ECMR_ILB = 0x00000008, ECMR_ELB = 0x00000004,
  320. ECMR_DM = 0x00000002, ECMR_PRM = 0x00000001,
  321. };
  322. /* ECSR */
  323. enum ECSR_STATUS_BIT {
  324. ECSR_BRCRX = 0x20, ECSR_PSRTO = 0x10,
  325. ECSR_LCHNG = 0x04,
  326. ECSR_MPD = 0x02, ECSR_ICD = 0x01,
  327. };
  328. #define DEFAULT_ECSR_INIT (ECSR_BRCRX | ECSR_PSRTO | ECSR_LCHNG | \
  329. ECSR_ICD | ECSIPR_MPDIP)
  330. /* ECSIPR */
  331. enum ECSIPR_STATUS_MASK_BIT {
  332. ECSIPR_BRCRXIP = 0x20, ECSIPR_PSRTOIP = 0x10,
  333. ECSIPR_LCHNGIP = 0x04,
  334. ECSIPR_MPDIP = 0x02, ECSIPR_ICDIP = 0x01,
  335. };
  336. #define DEFAULT_ECSIPR_INIT (ECSIPR_BRCRXIP | ECSIPR_PSRTOIP | \
  337. ECSIPR_LCHNGIP | ECSIPR_ICDIP | ECSIPR_MPDIP)
  338. /* APR */
  339. enum APR_BIT {
  340. APR_AP = 0x0000ffff,
  341. };
  342. /* MPR */
  343. enum MPR_BIT {
  344. MPR_MP = 0x0000ffff,
  345. };
  346. /* TRSCER */
  347. enum DESC_I_BIT {
  348. DESC_I_TINT4 = 0x0800, DESC_I_TINT3 = 0x0400, DESC_I_TINT2 = 0x0200,
  349. DESC_I_TINT1 = 0x0100, DESC_I_RINT8 = 0x0080, DESC_I_RINT5 = 0x0010,
  350. DESC_I_RINT4 = 0x0008, DESC_I_RINT3 = 0x0004, DESC_I_RINT2 = 0x0002,
  351. DESC_I_RINT1 = 0x0001,
  352. };
  353. #define DEFAULT_TRSCER_ERR_MASK (DESC_I_RINT8 | DESC_I_RINT5 | DESC_I_TINT2)
  354. /* RPADIR */
  355. enum RPADIR_BIT {
  356. RPADIR_PADS = 0x1f0000, RPADIR_PADR = 0xffff,
  357. };
  358. /* FDR */
  359. #define DEFAULT_FDR_INIT 0x00000707
  360. /* ARSTR */
  361. enum ARSTR_BIT { ARSTR_ARST = 0x00000001, };
  362. /* TSU_FWEN0 */
  363. enum TSU_FWEN0_BIT {
  364. TSU_FWEN0_0 = 0x00000001,
  365. };
  366. /* TSU_ADSBSY */
  367. enum TSU_ADSBSY_BIT {
  368. TSU_ADSBSY_0 = 0x00000001,
  369. };
  370. /* TSU_TEN */
  371. enum TSU_TEN_BIT {
  372. TSU_TEN_0 = 0x80000000,
  373. };
  374. /* TSU_FWSL0 */
  375. enum TSU_FWSL0_BIT {
  376. TSU_FWSL0_FW50 = 0x1000, TSU_FWSL0_FW40 = 0x0800,
  377. TSU_FWSL0_FW30 = 0x0400, TSU_FWSL0_FW20 = 0x0200,
  378. TSU_FWSL0_FW10 = 0x0100, TSU_FWSL0_RMSA0 = 0x0010,
  379. };
  380. /* TSU_FWSLC */
  381. enum TSU_FWSLC_BIT {
  382. TSU_FWSLC_POSTENU = 0x2000, TSU_FWSLC_POSTENL = 0x1000,
  383. TSU_FWSLC_CAMSEL03 = 0x0080, TSU_FWSLC_CAMSEL02 = 0x0040,
  384. TSU_FWSLC_CAMSEL01 = 0x0020, TSU_FWSLC_CAMSEL00 = 0x0010,
  385. TSU_FWSLC_CAMSEL13 = 0x0008, TSU_FWSLC_CAMSEL12 = 0x0004,
  386. TSU_FWSLC_CAMSEL11 = 0x0002, TSU_FWSLC_CAMSEL10 = 0x0001,
  387. };
  388. /* TSU_VTAGn */
  389. #define TSU_VTAG_ENABLE 0x80000000
  390. #define TSU_VTAG_VID_MASK 0x00000fff
  391. /* The sh ether Tx buffer descriptors.
  392. * This structure should be 20 bytes.
  393. */
  394. struct sh_eth_txdesc {
  395. u32 status; /* TD0 */
  396. u32 len; /* TD1 */
  397. u32 addr; /* TD2 */
  398. u32 pad0; /* padding data */
  399. } __aligned(2) __packed;
  400. /* The sh ether Rx buffer descriptors.
  401. * This structure should be 20 bytes.
  402. */
  403. struct sh_eth_rxdesc {
  404. u32 status; /* RD0 */
  405. u32 len; /* RD1 */
  406. u32 addr; /* RD2 */
  407. u32 pad0; /* padding data */
  408. } __aligned(2) __packed;
  409. /* This structure is used by each CPU dependency handling. */
  410. struct sh_eth_cpu_data {
  411. /* mandatory functions */
  412. int (*soft_reset)(struct net_device *ndev);
  413. /* optional functions */
  414. void (*chip_reset)(struct net_device *ndev);
  415. void (*set_duplex)(struct net_device *ndev);
  416. void (*set_rate)(struct net_device *ndev);
  417. /* mandatory initialize value */
  418. int register_type;
  419. u32 edtrr_trns;
  420. u32 eesipr_value;
  421. /* optional initialize value */
  422. u32 ecsr_value;
  423. u32 ecsipr_value;
  424. u32 fdr_value;
  425. u32 fcftr_value;
  426. /* interrupt checking mask */
  427. u32 tx_check;
  428. u32 eesr_err_check;
  429. /* Error mask */
  430. u32 trscer_err_mask;
  431. /* hardware features */
  432. unsigned long irq_flags; /* IRQ configuration flags */
  433. unsigned no_psr:1; /* EtherC DOES NOT have PSR */
  434. unsigned apr:1; /* EtherC has APR */
  435. unsigned mpr:1; /* EtherC has MPR */
  436. unsigned tpauser:1; /* EtherC has TPAUSER */
  437. unsigned bculr:1; /* EtherC has BCULR */
  438. unsigned tsu:1; /* EtherC has TSU */
  439. unsigned hw_swap:1; /* E-DMAC has DE bit in EDMR */
  440. unsigned nbst:1; /* E-DMAC has NBST bit in EDMR */
  441. unsigned rpadir:1; /* E-DMAC has RPADIR */
  442. unsigned no_trimd:1; /* E-DMAC DOES NOT have TRIMD */
  443. unsigned no_ade:1; /* E-DMAC DOES NOT have ADE bit in EESR */
  444. unsigned no_xdfar:1; /* E-DMAC DOES NOT have RDFAR/TDFAR */
  445. unsigned xdfar_rw:1; /* E-DMAC has writeable RDFAR/TDFAR */
  446. unsigned hw_checksum:1; /* E-DMAC has CSMR */
  447. unsigned select_mii:1; /* EtherC has RMII_MII (MII select register) */
  448. unsigned rmiimode:1; /* EtherC has RMIIMODE register */
  449. unsigned rtrate:1; /* EtherC has RTRATE register */
  450. unsigned magic:1; /* EtherC has ECMR.MPDE and ECSR.MPD */
  451. unsigned no_tx_cntrs:1; /* EtherC DOES NOT have TX error counters */
  452. unsigned cexcr:1; /* EtherC has CERCR/CEECR */
  453. unsigned dual_port:1; /* Dual EtherC/E-DMAC */
  454. };
  455. struct sh_eth_private {
  456. struct platform_device *pdev;
  457. struct sh_eth_cpu_data *cd;
  458. const u16 *reg_offset;
  459. void __iomem *addr;
  460. void __iomem *tsu_addr;
  461. struct clk *clk;
  462. u32 num_rx_ring;
  463. u32 num_tx_ring;
  464. dma_addr_t rx_desc_dma;
  465. dma_addr_t tx_desc_dma;
  466. struct sh_eth_rxdesc *rx_ring;
  467. struct sh_eth_txdesc *tx_ring;
  468. struct sk_buff **rx_skbuff;
  469. struct sk_buff **tx_skbuff;
  470. spinlock_t lock; /* Register access lock */
  471. u32 cur_rx, dirty_rx; /* Producer/consumer ring indices */
  472. u32 cur_tx, dirty_tx;
  473. u32 rx_buf_sz; /* Based on MTU+slack. */
  474. struct napi_struct napi;
  475. bool irq_enabled;
  476. /* MII transceiver section. */
  477. u32 phy_id; /* PHY ID */
  478. struct mii_bus *mii_bus; /* MDIO bus control */
  479. int link;
  480. phy_interface_t phy_interface;
  481. int msg_enable;
  482. int speed;
  483. int duplex;
  484. int port; /* for TSU */
  485. int vlan_num_ids; /* for VLAN tag filter */
  486. unsigned no_ether_link:1;
  487. unsigned ether_link_active_low:1;
  488. unsigned is_opened:1;
  489. unsigned wol_enabled:1;
  490. };
  491. #endif /* #ifndef __SH_ETH_H__ */