Changes in uspace/lib/nic/src/nic_driver.c [49bd793b:fd6bd6d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
r49bd793b rfd6bd6d 1329 1329 } 1330 1330 1331 // FIXME: Later1332 #if 01333 1334 1331 /** Lock packet for DMA usage 1335 1332 * … … 1340 1337 { 1341 1338 void *phys_addr; 1342 size_t locked; 1343 int rc = dma_lock(packet, &phys_addr, 1, &locked); 1339 int rc = dmamem_lock(packet, &phys_addr, 1); 1344 1340 if (rc != EOK) 1345 1341 return NULL; 1346 1342 1347 assert(locked == 1);1348 1343 return phys_addr; 1349 1344 } … … 1353 1348 * @param packet 1354 1349 */ 1355 void nic_dma_unlock_packet(packet_t *packet) 1356 { 1357 size_t unlocked; 1358 int rc = dma_unlock(packet, 1, &unlocked); 1359 if (rc != EOK) 1360 return; 1361 1362 assert(unlocked == 1); 1363 } 1364 1365 #endif 1350 int nic_dma_unlock_packet(packet_t *packet) 1351 { 1352 return dmamem_unlock(packet, 1); 1353 } 1366 1354 1367 1355 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.