LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-15-2007, 01:10 AM   #1
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
pci programming


I have to write a programme for a pci device under Linux.
are there any good tutorials/website for learning basic things?
-thanks-
 
Old 12-15-2007, 08:03 AM   #2
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 14.x, Raspbian, Kali
Posts: 226

Rep: Reputation: 30
Do you mean that you want to write a piece of software to install and use a PCI device that the system doesn't previously know or rather just use a PCI device that is already in a system such as a sound card or modem?

Look here http://www.fpga4fun.com/PCI6.html to create your own driver.
 
Old 12-15-2007, 10:39 AM   #3
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Do you mean that you want to write a piece of software to install and use a PCI device that the system doesn't previously know or rather just use a PCI device that is already in a system such as a sound card or modem?

i want to use that PCI device for a different purpose in my application. (modem).
 
Old 12-15-2007, 11:27 AM   #4
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 14.x, Raspbian, Kali
Posts: 226

Rep: Reputation: 30
OK. What type of application are you thinking of? What do you want the modem to do?
 
Old 12-15-2007, 12:17 PM   #5
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
i have to connect with other pc through the PSTN line and i have to exchange the data.

(if i want to connect then i have to dial that pstn no, so in the destination i have to detect that signals and after verifying i have to allow them to exchange data.)

i am writing this module for a management application because some peoples don't have internet connection (so i can't do anything with network programming.) and i have to give this kind of solutions.
 
Old 12-16-2007, 04:59 AM   #6
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 14.x, Raspbian, Kali
Posts: 226

Rep: Reputation: 30
You could do worse than take a look at the source code for a piece of modem software such as minicom http://linux.about.com/od/commands/l...l1_minicom.htm to give you ideas. (That's the beauty of the open source community!)

There's also some useful tips at http://linux.about.com/od/mdm_howto/a/hwtmdm07t03.htm
 
Old 12-17-2007, 01:15 AM   #7
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up

thank you very much.


your previous links also (fedora) very useful for getting basic ideas.

and i got a Linux device drivers 3rd edition and i am refereeing that book also.

and i will download that source code and i will analyse.

thanks again.

Last edited by jeyram; 12-17-2007 at 01:21 AM.
 
Old 12-17-2007, 03:48 AM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
To help you quickly make a Linux driver, use WinDriver from Jungo.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to allocate PCI Ethernet controller. Too many PCI devices already configured. tirtildim Linux - Software 2 04-17-2008 07:18 AM
PCI-X Raid card wont fit in motherboards PCI Express x16 slot???? abefroman Linux - Hardware 4 12-01-2006 08:24 AM
Good sites to research PCI programming cstrask Linux - Hardware 2 11-04-2005 11:42 PM
PCI programming help needed sarin Programming 2 09-01-2002 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration