aboutsummaryrefslogtreecommitdiffstats
path: root/cvmx-rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'cvmx-rng.h')
-rw-r--r--cvmx-rng.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cvmx-rng.h b/cvmx-rng.h
index 8ef128bd9b51..4b791b3c2c89 100644
--- a/cvmx-rng.h
+++ b/cvmx-rng.h
@@ -1,5 +1,5 @@
/***********************license start***************
- * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights
+ * Copyright (c) 2003-2010 Cavium Inc. (support@cavium.com). All rights
* reserved.
*
*
@@ -15,7 +15,7 @@
* disclaimer in the documentation and/or other materials provided
* with the distribution.
- * * Neither the name of Cavium Networks nor the names of
+ * * Neither the name of Cavium Inc. nor the names of
* its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
@@ -26,7 +26,7 @@
* countries.
* TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
- * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR
+ * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR
* WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
* THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
* DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
@@ -48,7 +48,7 @@
*
* Function and structure definitions for random number generator hardware
*
- * <hr>$Revision: 49448 $<hr>
+ * <hr>$Revision: 70030 $<hr>
*/
@@ -149,6 +149,7 @@ static inline int cvmx_rng_request_random_async(uint64_t scr_addr, uint64_t num_
if (num_bytes & 0x7 || scr_addr & 0x7)
return(1);
+ data.u64 = 0;
/* scr_addr must be 8 byte aligned */
data.s.scraddr = scr_addr >> 3;
data.s.len = num_bytes >> 3;