LinuxGuruz
  • Last 5 Forum Topics
    Replies
    Views
    Last post


The Web Only This Site
  • BOOKMARK

  • ADD TO FAVORITES

  • REFERENCES


  • MARC

    Mailing list ARChives
    - Search by -
     Subjects
     Authors
     Bodies





    FOLDOC

    Computing Dictionary




  • Text Link Ads






  • LINUX man pages
  • Linux Man Page Viewer


    The following form allows you to view linux man pages.

    Command:

    pciconfig_read

    
    
    
    

    SYNOPSIS

           #include <pci.h>
    
           int pciconfig_read(unsigned long bus, unsigned long dfn,
                     unsigned long off, unsigned long len, void *buf);
           int pciconfig_write(unsigned long bus, unsigned long dfn,
                     unsigned long off, unsigned long len, void *buf);
           int pciconfig_iobase(long which, unsigned long bus,
                     unsigned long devfn);
    
    
    

    DESCRIPTION

           Most of the interaction with PCI devices is already handled by the ker-
           nel  PCI  layer,  and  thus  these calls should not normally need to be
           accessed from user space.
    
           pciconfig_read()
                  Reads to buf from device dev at offset off value.
    
           pciconfig_write()
                  Writes from buf to device dev at offset off value.
    
           pciconfig_iobase()
                  You pass it a bus/devfn pair and  get  a  physical  address  for
                  either  the  memory  offset  (for  things  like  prep,  this  is
                  0xc0000000), the IO base for PIO cycles, or  the  ISA  holes  if
                  any.
    
    
    

    RETURN VALUE

           pciconfig_read()
                  On success zero is returned.  On error, -1 is returned and errno
                  is set appropriately.
    
           pciconfig_write()
                  On success zero is returned.  On error, -1 is returned and errno
                  is set appropriately.
    
           pciconfig_iobase()
                  Returns information on locations of various I/O regions in phys-
                  ical memory according to the which value.  Values for which are:
                  IOBASE_BRIDGE_NUMBER,  IOBASE_MEMORY,  IOBASE_IO, IOBASE_ISA_IO,
                  IOBASE_ISA_MEM.
    
    
    

    ERRORS

           EINVAL len  value  is  invalid.   This  does  not  apply   to   pcicon-
                  fig_iobase().
    
           EIO    I/O error.
    
           ENODEV For  pciconfig_iobase(),  "hose"  value  is NULL.  For the other
                  calls, could not find a slot.
    
           capabilities(7)
    
    
    

    Linux 2003-07-14 PCICONFIG_READ(2)

    
    
  • MORE RESOURCE


  • Linux

    The Distributions





    Linux

    The Software





    Linux

    The News



  • MARKETING






  • Toll Free

webmaster@linuxguruz.com
Copyright © 1999 - 2016 by LinuxGuruz