摘要: 基于现有的Linux普通方式传输的串口驱动,提出了通过利用DMA的高速串口驱动,根据传输时的实时数据量,利用DMA方式和普通方式相结合的方式进行数据传输,大大提高了传输速率,同时降低了系统的开销,减少了CPU的使用。在双核移动终端中进行验证,两芯片通过串口进行芯片间通信,实验结果证明了设计的高速串口驱动具有较好的可靠性和可行性。
关键词: DMA方式;Linux高速串口驱动;芯片间通信
中图分类号: TP36.2文献标识码: A
Linux High Speed Serial Driver Design
Qiao Mingchuang, Peng Daqin, Huang Yifeng
Chongqing Key Lab of Mobile Communications,Chongqing University of Posts and Telecommunications,Chongqing 400065,China
Abstract: This paper proposed high speed serial port driver using DMA is based on Linux serial port driver working in normal mode. According to the volume of data in realtime transmission,we decided to combine DMA mode with normal mode to transfer, greatly improving the transmission rate. In the same time it also reduces the overhead of the system and reduces the CPU utilization. In dualcore mobile terminal, two chips communicate with serial port. The results of implementation show that this method has high efficiency and good reliability in serial port driver design.
Key words: DMA mode; Linux high speed serial port driver; inter-processor communication
引言
本文讨论的双核终端硬件以AP(Application Processor,应用处理器)+CP(Cell phone Processor,基带处理器)的架构构建,CP运行TD/GSM双模协议栈,AP运行Android软件。两个芯片间通过串口进行IPC(InterProcessor Communication,芯片间通信)通信,像短信、电话等AT指令以及PS业务等均通过串口实现AP和CP的通信。当3G的网络环境对数据传输速率要求较高时ÿ