Results 1 to 3 of 3

Thread: new comer to understanding PCI device drivers

  1. #1
    Join Date
    Jun 2010
    Beans
    380

    new comer to understanding PCI device drivers

    Hi,
    I have been reading some books about device driver development etc.I
    made a char driver of bond (dummy) device.
    My book says that PCI devices contain three addressable regions,
    configuration space,IO ports,and device memory,the book talks about a
    file include/linux/pci_ids.h and PCI addressing etc.I read about
    following functions
    1) pci_read_config_
    2) pci_write_config_

    some thing known as offset is defined to be passed on as an argument
    to above functions
    3) IRQ number assigned to a card function pci_read_config_byte_
    ,configuration register offsets
    4) pci_request_region
    I want to write a pci driver for my own understanding and I am reading
    some books about it.
    I am not clear with terms
    1) configuration space,
    2) I/O ports
    3) device memory
    4) the offsets defined in include/linux/pci_ids.h
    5) PCI addressing.
    Can some one point me to a resource for understanding this stuff.
    The book I am reading does have good amount of information but just by
    reading it I find myself
    in a difficult situation and not able to appreciate the driver explained in it.
    I am not clear as what should I be googling to understand my questions.

  2. #2
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Lightbulb Re: new comer to understanding PCI device drivers

    Well, stop Googling. Wikipedia has the stuff you are looking for:

    http://en.wikipedia.org/wiki/Conventional_PCI

    http://en.wikipedia.org/wiki/PCI_configuration_space

    http://en.wikipedia.org/wiki/Interrupt_request

    http://en.wikipedia.org/wiki/Memory-mapped_I/O

    Just copy the keywords from your post here and paste them (one by one) into Wikipedia's search field.

  3. #3
    Join Date
    Jun 2010
    Beans
    380

    Re: new comer to understanding PCI device drivers

    Quote Originally Posted by NathanB View Post
    Well, stop Googling. Wikipedia has the stuff you are looking for:
    Thanks I had been madly searching for such stuff.

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
  •