LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-24-2012, 12:47 PM   #1
shade963
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
PCI Driver supports 2 different devices, how do I specify which device to use?


I am writing a driver that supports 2 different but similar devices. I am doing this so that the same library APIs can be used when writing apps for each device. I've got it working and everything runs fine for both devices when they're on separate machines, but I want to be able to have both devices on the same machine and specify which device to use in the user space app.

How do I specify which of the 2 devices I want to use in a user space app?
 
Old 08-24-2012, 01:54 PM   #2
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 533
Blog Entries: 1

Rep: Reputation: 37
Use a boot code for disabling the IRQ from one card or from the other one depending of the choice?
 
  


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
PCI Device Driver Question jxu1106 Linux - Kernel 3 02-24-2010 05:21 AM
How can I write a pci device driver??? hrmb Linux - Kernel 1 01-01-2010 04:47 PM
Accessing USB devices without device-driver barunparichha Linux - Software 5 07-22-2008 09:59 AM
PCI device driver for 64bit OS kushneeraj Linux - Kernel 0 08-07-2006 08:31 PM
PCI Device Driver bozkan Linux - Software 0 10-20-2004 08:51 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration