Click here to Skip to main content
15,792,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm beginner in Linux device driver.I want to write driver for PCI card which is related to serial(8250) driver.
- I want to learn to write code from begining.
- For that i need sample driver code like char driver.
Please provide sample PCI-serial driver code and inform me what should i read?

1 solution

Share this answer
Ronny3 23-Dec-14 3:00am    
Yes.I'm using same code for understanding.
- 1)I want to know that How PCI driver knows it has to correlate with Serial driver?Only using function calls?
- 2)In this file "serial8250_register_port".So it involves serial driver(8250.c) to open ports.Is it correct?
- 3) If i know Vendor and device ID then may I use "pci_find_device"to
find matched device?
Thanks for help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900