Ignore:
Timestamp:
Aug 1, 2013, 5:11:07 PM (12 years ago)
Author:
David Azarewicz
Message:

added ability to ignore individual ports

File:
1 edited

Legend:

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

    r165 r166  
    144144u8              link_power[MAX_AD][AHCI_MAX_PORTS];
    145145u8              track_size[MAX_AD][AHCI_MAX_PORTS];
     146u8              port_ignore[MAX_AD][AHCI_MAX_PORTS];
    146147
    147148static char     init_msg[] = "%s driver version %d.%02d\n";
     
    324325        /* ignore current adapter index */
    325326        if (adapter_index >= 0) {
    326           ad_ignore |= 1U << adapter_index;
     327          if (port_index >= 0) port_ignore[adapter_index][port_index] = !invert_option;
     328          else ad_ignore |= 1U << adapter_index;
    327329        }
    328330        break;
     
    400402  }
    401403
    402   /* print initialization message */
    403   ciprintf(init_msg, drv_name, VERSION / 100, VERSION % 100);
    404 
    405404  if (com_baud) init_com(com_baud); /* initialize com port for debug output */
    406405
     
    415414  ntprintf("BldLevel: %s\n", BldLevel);
    416415  ntprintf("CmdLine: %Fs\n", cmd_line);
     416
     417  /* print initialization message */
     418  ciprintf(init_msg, drv_name, VERSION / 100, VERSION % 100);
    417419
    418420  /* scan PCI bus for supported devices */
Note: See TracChangeset for help on using the changeset viewer.