-/* $OpenBSD: cn30xxgmx.c,v 1.11 2013/10/30 20:48:04 pirofti Exp $ */
+/* $OpenBSD: cn30xxgmx.c,v 1.12 2014/05/07 14:44:54 pirofti Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
clk_rx_setting = 24;
break;
}
-
+
/* board specific overrides */
switch (octeon_boot_info->board_type) {
case BOARD_TYPE_UBIQUITI_E100:
-/* $OpenBSD: octrng.c,v 1.4 2013/11/05 16:37:06 pirofti Exp $ */
+/* $OpenBSD: octrng.c,v 1.5 2014/05/07 14:44:54 pirofti Exp $ */
/*
* Copyright (c) 2013 Paul Irofti <pirofti@openbsd.org>
*
{
struct iobus_attach_args *aa = aux;
struct cfdata *cf = match;
-
+
/* XXX: check for board type */
if (aa->aa_name == NULL ||
printf(": can't map registers");
}
- control_reg = octeon_xkphys_read_8(OCTRNG_CONTROL_ADDR);
+ control_reg = octeon_xkphys_read_8(OCTRNG_CONTROL_ADDR);
control_reg |= (OCTRNG_ENABLE_OUTPUT | OCTRNG_ENABLE_ENTROPY);
octeon_xkphys_write_8(OCTRNG_CONTROL_ADDR, control_reg);
value = bus_space_read_8(sc->sc_iot, sc->sc_ioh, OCTRNG_ENTROPY_REG);
- DPRINTF(("%#llX ", value)); /* WARNING: very verbose */
+ DPRINTF(("%#llX ", value)); /* WARNING: very verbose */
- add_true_randomness(value);
+ add_true_randomness(value);
timeout_add_msec(&sc->sc_to, 10);
}
-/* $OpenBSD: octrtc.c,v 1.1 2014/01/15 10:29:45 pirofti Exp $ */
+/* $OpenBSD: octrtc.c,v 1.2 2014/05/07 14:44:54 pirofti Exp $ */
/*
* Copyright (c) 2013, 2014 Paul Irofti.
} while (twsi.field.v);
DPRINTF(("%#llX ", twsi.reg));
- /*
+ /*
* The data field is in the upper 32 bits and we're only
* interested in the first byte.
*/