diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2013-11-05 16:34:46 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2013-11-05 16:34:46 +0000 |
commit | f7deb6ec55a859390d872f7d7d40c3eab06031b8 (patch) | |
tree | 3e23824096c0da2b4396a8bc461496a07057cda6 /sys/arch | |
parent | b50b1e5feca938b54116a2e835a9b687f412e4fb (diff) |
octrng: Fix control flags.
They had the wrong endian representation.
Found the hardway by bcallah@. Thanks!
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/octeon/dev/octrng.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/octeon/dev/octrng.c b/sys/arch/octeon/dev/octrng.c index f1f252b02ad..db410007fc5 100644 --- a/sys/arch/octeon/dev/octrng.c +++ b/sys/arch/octeon/dev/octrng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octrng.c,v 1.2 2013/11/05 16:32:14 pirofti Exp $ */ +/* $OpenBSD: octrng.c,v 1.3 2013/11/05 16:34:45 pirofti Exp $ */ /* * Copyright (c) 2013 Paul Irofti <pirofti@openbsd.org> * @@ -46,9 +46,9 @@ void octrng_rnd(void *arg); #define OCTRNG_CONTROL_ADDR 0x0001180040000000ULL -#define OCTRNG_RESET (1ULL << 60) -#define OCTRNG_ENABLE_OUTPUT (1ULL << 62) -#define OCTRNG_ENABLE_ENTROPY (1ULL << 63) +#define OCTRNG_RESET (1ULL << 3) +#define OCTRNG_ENABLE_OUTPUT (1ULL << 1) +#define OCTRNG_ENABLE_ENTROPY (1ULL << 0) struct octrng_softc { struct device sc_dev; |