Changeset 108


Ignore:
Timestamp:
Jun 10, 2011, 11:32:11 AM (14 years ago)
Author:
Markus Thielen
Message:

fix for #1

Location:
trunk/src/os2ahci
Files:
3 edited

Legend:

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

    r93 r108  
    7373int             thorough_scan = 1; /* if != 0, perform thorough PCI scan */
    7474int             init_reset;        /* if != 0, reset ports during init */
     75int             verbosity;         /* if > 0, show some info during boot */
    7576
    7677PFN             Device_Help = 0;   /* pointer to device helper entry point */
     
    300301        break;
    301302
     303      case 'v':
     304        /* be verbose during boot */
     305        verbosity++;
     306        break;
     307
    302308      default:
    303309        cprintf("invalid option: /%c\n", *s);
  • trunk/src/os2ahci/os2ahci.h

    r87 r108  
    485485extern int           thorough_scan; /* if != 0, perform thorough PCI scan */
    486486extern int           init_reset;    /* if != 0, reset ports during init */
     487extern int           verbosity;     /* if != 0, show some info during boot */
    487488
    488489extern HDRIVER       rm_drvh;       /* resource manager driver handle */
  • trunk/src/os2ahci/pci.c

    r87 r108  
    619619
    620620  /* found a supported AHCI device */
    621   cprintf("found AHCI device: %s %s (%04x:%04x)\n"
    622           " class:0x%06lx bus:%d devfunc:0x%02x\n",
    623           vendor_from_id(vendor), device_from_id(device),
    624           vendor, device,
    625           class, bus, dev_func);
     621  if (verbosity > 0) {
     622    cprintf("found AHCI device: %s %s (%04x:%04x)\n"
     623            " class:0x%06lx bus:%d devfunc:0x%02x\n",
     624            vendor_from_id(vendor), device_from_id(device),
     625            vendor, device,
     626            class, bus, dev_func);
     627  }
    626628
    627629  /* make sure we got room in the adapter information array */
Note: See TracChangeset for help on using the changeset viewer.