Ignore:
Timestamp:
Dec 20, 2016, 9:35:27 PM (9 years ago)
Author:
David Azarewicz
Message:

Fix for sparse port hardware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/trace.c

    r184 r185  
    11/******************************************************************************
    2  * trace.c - code for our internal trace ring buffer
    32 *
    4  * Copyright (c) 2011 thi.guten Software Development
    5  * Copyright (c) 2011 Mensys B.V.
    63 * Copyright (c) 2013-2016 David Azarewicz
    74 *
    8  * Authors: Christian Mueller, Markus Thielen
    9  *
    10  * Parts copied from/inspired by the Linux AHCI driver;
    11  * those parts are (c) Linux AHCI/ATA maintainers
    12  *
    13  *  This program is free software; you can redistribute it and/or modify
    14  *  it under the terms of the GNU General Public License as published by
    15  *  the Free Software Foundation; either version 2 of the License, or
    16  *  (at your option) any later version.
    17  *
    18  *  This program is distributed in the hope that it will be useful,
    19  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    20  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21  *  GNU General Public License for more details.
    22  *
    23  *  You should have received a copy of the GNU General Public License
    24  *  along with this program; if not, write to the Free Software
    25  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    265 */
    276
     
    5837      ai->bios_config[HOST_VERSION / sizeof(u32)]);
    5938
    60     for (p = 0; p < ai->hw_ports; p++)
     39    for (p = 0; p <= ai->port_max; p++)
    6140    {
    6241      P_INFO *pi = &ai->ports[p];
     
    8059          }
    8160          dprintf(0,"\n");
     61          dprintf(0,"             Model: %s\n", pi->devs[d].dev_name);
    8262        } /* if */
    8363      } /* for d */
Note: See TracChangeset for help on using the changeset viewer.