PCIe driver: add functions to load/save internal packet generator memory
This commit is contained in:
@@ -201,3 +201,9 @@ std::string PCIExpressDevice::GetIPv4Address() const {
|
||||
"Failed getting MAC address", errno);
|
||||
return IPv4AddressToStr(tmp);
|
||||
}
|
||||
|
||||
void PCIExpressDevice::HW_ReadInternalPacketGen(uint16_t *tmp) const {
|
||||
if (ioctl(fd, IOCTL_JFJOCH_GET_INT_PKT, tmp) != 0)
|
||||
throw JFJochException(JFJochExceptionCategory::PCIeError,
|
||||
"Failed getting internal packet generator frame", errno);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user