Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a total newbie to the Linux world and I have a general question about it.
I have a computer station with Linux installed. I want to connect PCI cards to it through the PCI bus. I'm wondering if I absolutely need a device driver for the PCI card in order for the Linux OS to recognize the card at startup?
Depends on what you want do do with the card. To only detect it, no. To do something special with the card (what this special is, depends on the card), yes the os have to have some prior knowledge of the hardware in question to do some magic with it.
The PCI card is used for data acquisition. I want to poll a register on the PCI card to see if data is available, if it is, data will be transmitted over the PCI bus. Do I need a device driver to do that?
you always need some sort of driver to use a piece of hardware... i really don't understand what you're trying to say.... If you are doing it at the low level you seem to be suggesting then you would be writing the driver itself i guess...
Well, what I'm hoping to do is plug in the PCI card, bootup my linux machine, and the machine will "magically" recognize the card. I want to memory map some registers in the PCI card, poll the registers, and go in to grab data when it's available.
I know windows machines need drivers, i'm just wondering if Linux needs the same.
So what kind of PCI card is it? Do you know its I/O memory addressing etc?
If your expecting to do some high level programming with the card then yes you will need a device driver. Otherwise you should be able to write a program that can read the I/O memory.
So just like Acid_kewpie said you would be writing the driver in your program.
I do know the memory addressing of the PCI Card. It's a card made by Xilinx (www.xilinx.com). I want to write software programs in C/C++ to access these memory addresses. Correct me if I'm wrong, but it looks like I might be able to use the link (http://www.tldp.org/HOWTO/IO-Port-Programming.html) as a guide to write codes to access the PCI card hardware?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.