Changes between Version 11 and Version 12 of nic_driver
- Timestamp:
- Oct 29, 2014, 6:35:23 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
nic_driver
v11 v12 36 36 == __Blocking functions using a physical_memcpy__ == 37 37 38 === int '''_nic_sync_send'''( unsigned long long pbuf ) === 39 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from a single user buffer to the NIC channel allocated to the calling task. The '''pbuf''' argument is the user buffer physical base address. 40 38 === int '''_nic_sync_send'''( unsigned int channel, unsigned long long user_paddr ) === 39 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from a single user buffer to the NIC channel allocated to the calling task. 40 * '''channel''' : NIC channel index 41 * '''user_paddr''': user buffer physical base address 41 42 Return 0 in case of success. Return -1 if buffer not mapped or not user accessible. 42 43 43 === int '''_nic_sync_receive'''( unsigned long long pbuf ) === 44 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from the NIC channel allocated to the calling task, to a single user buffer. The '''pbuf''' argument is the user buffer vphysical base address. 45 44 === int '''_nic_sync_receive'''( unsigned int channel, unsigned long long user_paddr ) === 45 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from the NIC channel allocated to the calling task, to a single user buffer. 46 * '''channel''' : NIC channel index 47 * '''user_paddr''': user buffer physical base address 46 48 Return 0 in case of success. Return -1 if buffer not mapped or not user accessible. 47 49