LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2009, 05:30 PM   #1
ddeeks
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Question In pci.h in 2.6 .27.24; static inline int pci_enable_device returns error -EIO


I am writing a pci device driver, as per "LINUX DEVICE DRIVERS"
by Corbet, Alessandro et al. In Chapter 12. section entitled
"Enabling the PCI device"

" IN the probe function for the PCI driver, before the driver can access any resource (I/O region or interrupt)of the PCI device, the driver must call the function pci_enaable_device function."

In pci.h this inline function returns -EIO.

AN IO ERROR.

How does one therefore enable a PCI device???
 
  


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
ioread32 returns 0xffffffff; pci driver niteshg Linux - General 3 12-02-2009 05:48 AM
Linking error. static const int kerenLinuxForum Linux - Software 1 08-28-2008 08:18 AM
invalid types ‘int[int]’ for array subscript medha Programming 16 08-25-2006 09:30 AM
invalid types int[int] for array subscript scuzzman Programming 2 11-16-2004 10:34 PM
anyone got an InnoVision EIO AP-1680 ATA133 RAID PCI controller card? Jestrik Linux - Hardware 0 12-26-2003 10:50 PM


All times are GMT -5. The time now is 03:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration