›› 2016, Vol. 29 ›› Issue (10): 54-.

• 论文 • 上一篇    下一篇

天脉1下龙芯1B网卡驱动设计与实现

梅 涛,王宏伟,麦先根   

  1. (中航工业西安计算技术研究所 基础软件室,陕西 西安710068)
  • 出版日期:2016-10-15 发布日期:2016-11-14
  • 作者简介:梅涛(1984-),男,硕士,工程师。研究方向:嵌入式实时操作系统和网络。
  • 基金资助:

    国家某重点科研基金资助项目(MJ-S-2012-05)

Design and Realization of the Network Driver for Loongson 1B in ACoreOS

MEI Tao, WANG Hongwei, MAI Xiangen   

  1. (Basic Software Section, Aeronautical Computing Technique Research Institute, Xian 710068, China)
  • Online:2016-10-15 Published:2016-11-14

摘要:

针对某嵌入式项目需要实现基于龙芯1B处理器的计算和以太网通信功能。文中采用龙心1B处理器集成两路千兆以太网,基于天脉1嵌入式实时操作系统,设计实现了龙芯1B处理器平台下双网卡以太网驱动。网卡驱动可同时支持基于以太网的调试和通信功能;也可通过一路网卡进行调试,同时使用另外一路网卡进行通信。实验结果证明,所设计实现的以太网驱动功能正确,在天脉1嵌入式操作系统下,能正确实现对龙芯1B处理器两路千兆网卡的控制;网卡驱动能正确,可靠地工作,以太网通信功能正常。

关键词: 天脉1操作系统, 龙芯1B处理器, 以太网驱动, 设计与实现

Abstract:

A driver for the double Gigabit Ethernet cards integrated in the Loongson 1B processor on the Tianmai embedded realtime operating system is designed and implemented. The driver supports not only simultaneous Ethernetbased debugging and communication but also one card for debugging and the other for communication. Experimental results show that the designed Ethernet driver functions correctly for the Loongson 1B double Gigabit Ethernet cards on the Tianmai embedded operating system, realizing reliable operation and normal Ethernet communication functions.

Key words: ACoreOS RTOS, Loongson 1B processor, ethernet driver, design and realization

中图分类号: 

  • TP316