这是indexloc提供的服务,不要输入任何密码
Skip to content

hzsunzixiang/pci_parport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

This repository contains a simple Linux Kernel Module for a PCI to Parallel Port Adapter. It was made for educational purposes and doesn't intend to replace an existing driver!

Content

  • pci_parport.c: Sourcefile for LKM
  • Makefile: To build and compile LKM

Functionality

I have written this code for a PCI to Parallel Port Adapter to which I have connected a little board. On the Board a 7 Segment display is connected to the Data Out Pins. 5 DIP-Switches are connected to the Inputs of the port. The Linux Kernel Module reads in the state of the DIP-switches every 200ms and then sets the 7 segment display according to the DIP's value.

But the purpose of this Linux Kernel Module is to show you how to access a PCI device and its IO space.

Dependencies

Make sure, you have the kernel headers and binutils (make, gcc, ...) installed

More information

For more information about the source code and the module, check out the following video:

About

A simple Linux Kernel Module for a PCI to parallel port adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.1%
  • Makefile 3.9%