Changes in uspace/lib/nic/src/nic_driver.c [fd6bd6d:49bd793b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
rfd6bd6d r49bd793b 1329 1329 } 1330 1330 1331 // FIXME: Later 1332 #if 0 1333 1331 1334 /** Lock packet for DMA usage 1332 1335 * … … 1337 1340 { 1338 1341 void *phys_addr; 1339 int rc = dmamem_lock(packet, &phys_addr, 1); 1342 size_t locked; 1343 int rc = dma_lock(packet, &phys_addr, 1, &locked); 1340 1344 if (rc != EOK) 1341 1345 return NULL; 1342 1346 1347 assert(locked == 1); 1343 1348 return phys_addr; 1344 1349 } … … 1348 1353 * @param packet 1349 1354 */ 1350 int nic_dma_unlock_packet(packet_t *packet) 1351 { 1352 return dmamem_unlock(packet, 1); 1353 } 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 1354 1366 1355 1367 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.