摘要
为了满足航空电子系统对确定性和实时性的要求,针对AFDX端系统硬件结构,功能需求和Linux驱动程序的特点,提出了一种满足AFDX协议的Linux内核态驱动程序的实现方法。在Linux内核态驱动程序的实现中先注册一个PCI总线驱动程序,然后在PCI总线驱动程序中注册字符型设备驱动程序。字符型设备驱动程序注册成功后,在其open()函数中注册中断处理程序,利用其ioctl()函数实现初始化表和端口,利用read()和write()函数来读写设备。测试结果显示,该Linux内核态驱动程序的设计和实现是可以满足航空电子系统对确定性和实时性的要求的。
In order to meet the aviation electronic systems for deterministic and real-time requirements, for the AFDX end system's the hardware architecture, functional requirements and the Linux kernel mode driver characteristics, this paper proposed an approach that met the AFDX protocol to implement the AFDX end system's function. The first step to implement the Linux driver was to register a PCI bus driver, then used the PCI bus driver to register a character device driver. After the character device driver registration was successful, used its open ( ) function to register interrupt handler, used the ioetl () function to achieve initialization table and port, used its read ( ) and write ( ) function to read and write device. Test results show that the design and implementation of Linux kernel mode driver can meet the deterministic and real-time requirements of air electronic systems.
出处
《电子设计工程》
2011年第6期10-12,16,共4页
Electronic Design Engineering