release/src/linux/linux/drivers/ide/ide-dma.c
/*
 * Needed for allowing full modular support of ide-driver
 */
Needed for allowing full modular support of ide-driver
Needed for allowing full modular support of ide - driver
int ide_release_dma (ide_hwif_t *hwif)
{
	if (hwif->dmatable_cpu) {
		pci_free_consistent(hwif->pci_dev,
				    PRD_ENTRIES * PRD_BYTES,
				    hwif->dmatable_cpu,
				    hwif->dmatable_dma);
		hwif->dmatable_cpu = NULL;
	}
	if (hwif->sg_table) {
		kfree(hwif->sg_table);
		hwif->sg_table = NULL;
	}
	if ((hwif->dma_extra) && (hwif->channel == 0))
		release_region((hwif->dma_base + 16), hwif->dma_extra);
	release_region(hwif->dma_base, 8);
	return 1;
}
int ide_release_dma ( ide_hwif_t * hwif ) { if ( hwif -> dmatable_cpu ) { pci_free_consistent ( hwif -> pci_dev , PRD_ENTRIES * PRD_BYTES , hwif -> dmatable_cpu , hwif -> dmatable_dma ) ; hwif -> dmatable_cpu = NULL ; } if ( hwif -> sg_table ) { kfree ( hwif -> sg_table ) ; hwif -> sg_table = NULL ; } if ( ( hwif -> dma_extra ) && ( hwif -> channel == 0 ) ) release_region ( ( hwif -> dma_base + 16 ) , hwif -> dma_extra ) ; release_region ( hwif -> dma_base , 8 ) ; return 1 ; }
Needed for allowing full modular support of ide-driver
Needed for allowing full modular support of ide - driver