Ignore:
Timestamp:
Dec 13, 2016, 10:30:24 PM (9 years ago)
Author:
David Azarewicz
Message:

Rearranged CAPS configuration.

File:
1 edited

Legend:

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

    r178 r182  
    602602  if (!ad_info->mmio) goto add_pci_fail;
    603603
    604   /* fill in DMA scratch buffer addresses in adapter info */
    605   for (i = 0; i < AHCI_MAX_PORTS; i++)
    606   {
    607     ad_info->dma_buf[i] = MemAlloc(AHCI_PORT_PRIV_DMA_SZ);
    608     ad_info->dma_buf_phys[i] = MemPhysAdr(ad_info->dma_buf[i]);
    609   }
    610 
    611604  /* register adapter with resource manager */
    612605  memset(&adj, 0x00, sizeof(adj));
     
    634627  }
    635628
     629  if (ahci_config_caps(ad_info)) goto add_pci_fail;
     630
     631  #ifndef DAZ_NEW_CODE
     632  /* fill in DMA scratch buffer addresses in adapter info */
     633  for (i = 0; i < ad_info->hw_ports; i++)
     634  {
     635    ad_info->dma_buf[i] = MemAlloc(AHCI_PORT_PRIV_DMA_SZ);
     636    ad_info->dma_buf_phys[i] = MemPhysAdr(ad_info->dma_buf[i]);
     637  }
     638  #endif
     639
    636640  /* Successfully added the adapter and reserved its resources; the adapter
    637641   * is still under BIOS control so we're not going to do anything else at
    638642   * this point.
    639643   */
     644
    640645  ad_info_cnt++;
    641646  return;
Note: See TracChangeset for help on using the changeset viewer.