In recently, information security becomes more and more important, so, there are many technologies what focus on information security. Encryption is one of the most effective technologies. There are two kinds of manners for information encryption: hardware encryption and software encryption. Hardware encryption has great advantages to software encryption, it will free computer CPU and improve system overall performation. Consequently, it is necessary that universal encryption devices have been researched. At the same time, it is more and more important that the interface of encryption devices has been researched.In the many bus standards, PCI interface with a higher transfer rate and USB interface with its flexibility and portability have been the most extensive and the most universal bus standard in computer system. Therefore, the work is valuable on developing PCI device driver and USB device driver. Linux is popularly applied for it's speciality of free and open codes. The application based on Linux kernel in Embedded operation system is imperative for low cost. So, it's applied and universal to develop the device drivers for Linux.Linux device driver for PCI interface of the database encryptcard is the background of the thesis. After the PCI bus features, control mechanism, interface specification and interface design pattern is studied, we expatiate the driver specialty in Linux. Then, the PCI device drivers are developped respective for Linux.Meanwhile, paper simply introduces the characteristics of USB, the USB structure of software and hardware and the translation technique. Then it also analyzes USB subsystem under Linux, especially the host control driver (HCD). Under this analysis, the required mdifications for the USB host control driver to the ARM architecture has been analyzsed. The relevance of the hardware and operation of synchronization and mutex are considered fully to settle the drivers development.In the end, this paper concludes the shortage in our research work to develop PCI and USB interface. Apart from this, the paper also brings forward some aspects that need improve in future work. Simultantly, it supposes the fine prospect about PCI and USB development. |