Changes in uspace/lib/nic/src/nic_driver.c [fd6bd6d:c6ae4c2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
rfd6bd6d rc6ae4c2 46 46 #include <ipc/irc.h> 47 47 #include <sysinfo.h> 48 48 #include <as.h> 49 49 #include <devman.h> 50 50 #include <ddf/interrupt.h> … … 1334 1334 * @return physical address of packet 1335 1335 */ 1336 void *nic_dma_lock_packet(packet_t *packet) 1337 { 1338 void *phys_addr; 1339 int rc = dmamem_lock(packet, &phys_addr, 1); 1340 if (rc != EOK) 1341 return NULL; 1342 1343 return phys_addr; 1336 int nic_dma_lock_packet(packet_t *packet, size_t size, void **phys) 1337 { 1338 return dmamem_map(packet, SIZE2PAGES(size), 0, 0, phys); 1344 1339 } 1345 1340 … … 1348 1343 * @param packet 1349 1344 */ 1350 int nic_dma_unlock_packet(packet_t *packet )1351 { 1352 return dmamem_un lock(packet, 1);1345 int nic_dma_unlock_packet(packet_t *packet, size_t size) 1346 { 1347 return dmamem_unmap(packet, size, 0); 1353 1348 } 1354 1349
Note:
See TracChangeset
for help on using the changeset viewer.