Changeset 1f4f1e2e in rtems for cpukit/libpci/pci_cfg_auto.c


Ignore:
Timestamp:
Apr 8, 2015, 8:39:41 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
f4bf22c
Parents:
346a9a5
git-author:
Daniel Hellstrom <daniel@…> (04/08/15 08:39:41)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:28)
Message:

LIBPCI: various comment/unsed clean-ups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libpci/pci_cfg_auto.c

    r346a9a5 r1f4f1e2e  
    1919#include <pci/access.h>
    2020#include <pci/cfg.h>
    21 
    22 /* Define PCI_INFO_ON_STARTUP to get a listing of configured devices at boot
    23  * time
    24  */
    25 #undef PCI_INFO_ON_STARTUP
    2621
    2722/* #define DEBUG */
     
    6964         * Normally the boundary=size of the BAR, however when
    7065         * PCI bridges are involved the bridge's boundary may be
    71          * smaller that the size due to the fact that a bridge
     66         * smaller than the size due to the fact that a bridge
    7267         * may have different-sized BARs behind, the largest BAR
    7368         * (also the BAR with the largest boundary) will decide
     
    137132 *
    138133 * Normally a BAR has the same alignment requirements as the size of the
    139  * BAR. However, when bridges are invloved the alignment need may be smaller
    140  * that the size, because a bridge resource consist or multiple BARs.
     134 * BAR. However, when bridges are involved the alignment need may be smaller
     135 * than the size, because a bridge resource consist or multiple BARs.
    141136 * For example, say that a bridge with a 256Mb and a 16Mb BAR is found, then
    142137 * the alignment is required to be 256Mb but the size 256+16Mb.
    143138 *
    144  * In order to minimize dead space on the bus, the bounadry ordered list
     139 * In order to minimize dead space on the bus, the boundary ordered list
    145140 * is reordered, example:
    146141 *  BUS0
     
    157152 *  |            |          |-- BAR3: SIZE=16Mb, ALIGNMENT=16MB
    158153 *
    159  * A alignement/boundary ordered list of BUS1 will look like:
     154 * A alignment/boundary ordered list of BUS1 will look like:
    160155 *      - BAR_BRIDGE1
    161156 *      - BAR0            (ALIGMENT NEED 256Mb)
     
    185180                                        ~(curr->boundary - 1);
    186181
    187                 /* Find hole size, the unsed space inbetween last resource
    188                  *and next */
     182                /* Find hole size, the unsed space in between last resource
     183                 * and next */
    189184                hole_size = start_next - start;
    190185
     
    231226                }
    232227
    233                 /* No hole or nothing fitted into hole. */
     228                /* No hole or nothing fit into hole. */
    234229                start = start_next;
    235230
     
    852847/* This routine assumes that PCI access library has been successfully
    853848 * initialized. All information about the PCI bus needed is found in
    854  * the argument.
     849 * the pci_auto_cfg structure passed on by pci_config_register().
    855850 *
    856851 * The PCI buses are enumerated as bridges are found, PCI devices are
Note: See TracChangeset for help on using the changeset viewer.