aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h')
-rw-r--r--src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h b/src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h
index 3ca3f00710..3308859733 100644
--- a/src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h
+++ b/src/vendorcode/cavium/include/bdk/libbdk-hal/device/bdk-device.h
@@ -1,3 +1,6 @@
+#ifndef __CB_BDK_DEVICE_H__
+#define __CB_BDK_DEVICE_H__
+
/***********************license start***********************************
* Copyright (c) 2003-2017 Cavium Inc. (support@cavium.com). All rights
* reserved.
@@ -250,10 +253,11 @@ extern void bdk_bar_write(const bdk_device_t *device, int bar, int size, uint64_
} else if (bdk_clock_get_count(BDK_CLOCK_TIME) > done) { \
result = -1; \
break; \
- } else \
- bdk_thread_yield(); \
+ } \
} \
} while (0); \
result;})
/** @} */
+
+#endif /* !__CB_BDK_DEVICE_H__ */