Results 1 to 4 of 4

Thread: Device Drivers

  1. #1
    vivekr
    Guest

    Device Drivers

    Hi,
    I am new to this group and i am starting to write device drivers for a PCI peripheral which is used for some high speed data transfers.
    When the system boots,the BIOS identifies any new hardware and fills in the details of this device in the configuration register in the PCI configuration space.Now when i tried to access its info using the device ID and the vendor ID,the config registers say that the device is not found.So does it mean that the BIOS did not fill in the right values of the device during system bootup?If so what is the solution?
    Vivek.

  2. #2
    JimH
    Guest

    Re:Device Drivers

    Quote Originally Posted by vivekr
    So does it mean that the BIOS did not fill in the right values of the device during system bootup? If so what is the solution?
    Hmm, I don't think we have any kernel programming guru's around here. :'(

    But looking through the kernel docs I found this:

    "5. Addresses and interrupts
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Memory and port addresses and interrupt numbers should NOT be read from the config space. You should use the values in the pci_dev structure as they might have been remapped by the kernel."

    This is from pci.txt in the kernel source documentation. Might want to take a glance at it and see if you find anything that helps you out.

    Jim H

  3. #3

    Re:Device Drivers

    WoW JimH,

    I'm not sure if this solved his problem, but it seems as if you hit the nail on the head. I would love to hear a response from this guy.
    AMD Athlon 2200+ 1.8Ghz
    1280MB PC-3200 CAS2.5 RAM
    ATI Radeon 9600 Pro 128MB AGP
    Western Digital WDC WD2500JB-00FUA0 250GB 7200 rpm ATA/133
    Seagate ST3200822A 200GB 7200 rpm ATA/133
    Western Digital WDC WD1200BB-00CAA1 120GB 7200 rpm ATA/133
    Western Digital WDC WD800BB-00CAA1 80GB 7200 rpm ATA/133
    Maxtor OneTouch 2HA43R32 1TB 7200 rpm USB 2.0
    D-Link DFE-530TX+ 10/100 NIC
    D-Link DWL-G520 Rev.A
    Debian 5.0r1 Lenny

  4. #4
    JimH
    Guest

    Re:Device Drivers

    Quote Originally Posted by SkyNet
    I would love to hear a response from this guy.
    That makes two of us. ;D

    Jim H

Similar Threads

  1. errors while compiling device drivers
    By yeah in forum Redhat / Fedora
    Replies: 1
    Last Post: 09-08-2007, 08:52 AM
  2. USB Device
    By mugs in forum Linux - Hardware, Networking & Security
    Replies: 6
    Last Post: 08-04-2003, 09:53 AM
  3. Device Label
    By mugs in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 11-23-2002, 03:02 AM
  4. DSP-device fsk'd up ;-(
    By Pantheus in forum Linux - General Topics
    Replies: 28
    Last Post: 09-05-2002, 01:13 AM
  5. What are the device names??
    By Compunuts in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 08-24-2002, 05:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •