fgmac_g.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright : (C) 2022 Phytium Information Technology, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is OPEN SOURCE software: you can redistribute it and/or modify it
  6. * under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
  7. * either version 1.0 of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
  10. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * See the Phytium Public License for more details.
  12. *
  13. *
  14. * FilePath: fgmac_g.c
  15. * Date: 2022-04-06 14:46:52
  16. * LastEditTime: 2022-04-06 14:46:58
  17. * Description:  This file is for
  18. *
  19. * Modify History:
  20. * Ver   Who        Date         Changes
  21. * ----- ------     --------    --------------------------------------
  22. */
  23. /* - This file contains a configuration table that specifies the configuration
  24. - 驱动全局变量定义,包括静态配置参数 */
  25. /***************************** Include Files *********************************/
  26. #include "fparameters.h"
  27. #include "fgmac.h"
  28. /************************** Constant Definitions *****************************/
  29. const FGmacConfig FGMAC_CONFIG_TBL[GMAC_INSTANCE_NUM] =
  30. {
  31. [GMAC_INSTANCE_0] =
  32. {
  33. .instance_id = GMAC_INSTANCE_0,
  34. .base_addr = GMAC_INSTANCE_0_BASE_ADDR,
  35. .irq_num = GMAC_INSTANC_0_IRQ,
  36. .irq_prority = 0,
  37. .cheksum_mode = FGMAC_CHECKSUM_BY_SOFTWARE,
  38. .max_packet_size = GMAC_MAX_PACKET_SIZE
  39. },
  40. [GMAC_INSTANCE_1] =
  41. {
  42. .instance_id = GMAC_INSTANCE_1,
  43. .base_addr = GMAC_INSTANCE_1_BASE_ADDR,
  44. .irq_num = GMAC_INSTANC_1_IRQ,
  45. .irq_prority = 0,
  46. .cheksum_mode = FGMAC_CHECKSUM_BY_SOFTWARE,
  47. .max_packet_size = GMAC_MAX_PACKET_SIZE
  48. }
  49. };
  50. /**************************** Type Definitions *******************************/
  51. /***************** Macros (Inline Functions) Definitions *********************/
  52. /************************** Function Prototypes ******************************/
  53. /************************** Variable Definitions *****************************/
  54. /*****************************************************************************/