Changeset 182 for trunk/src/os2ahci/pci.c
- Timestamp:
- Dec 13, 2016, 10:30:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/pci.c
r178 r182 602 602 if (!ad_info->mmio) goto add_pci_fail; 603 603 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 611 604 /* register adapter with resource manager */ 612 605 memset(&adj, 0x00, sizeof(adj)); … … 634 627 } 635 628 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 636 640 /* Successfully added the adapter and reserved its resources; the adapter 637 641 * is still under BIOS control so we're not going to do anything else at 638 642 * this point. 639 643 */ 644 640 645 ad_info_cnt++; 641 646 return;
Note:
See TracChangeset
for help on using the changeset viewer.