LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration