The NetBSD Project

CVS log for src/sys/arch/mips/cavium/dev/octeon_rnmreg.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / mips / cavium / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 22 03:05:07 2020 UTC (2 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.4: +1 -21 lines
Diff to previous 1.4 (colored)

Remove unused snprintb format strings.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 18 13:52:08 2020 UTC (2 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.3: +7 -25 lines
Diff to previous 1.3 (colored)

General code cleanup:
 - use generic macros for building IO and IOBDMA addresses instead
   of many different variations of the same theme.
 - use #define's for CVMSEG addresses instead of magic numbers.
 - use __BIT/__BITS/__SHIFTIN/__SHIFTOUT in most places, instead of
   foo_SHIFT defines or (worse) shifting by magic numbers.

No functional changes.

Revision 1.1.26.1 / (download) - annotate - [select for diffs], Tue May 19 17:35:50 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.1: +20 -2 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Pull up following revision(s) (requested by simonb in ticket #918):

	sys/arch/mips/cavium/dev/octeon_rnm.c: revision 1.3
	sys/arch/mips/cavium/dev/octeon_rnm.c: revision 1.4
	sys/arch/mips/cavium/dev/octeon_rnm.c: revision 1.5
	sys/arch/mips/cavium/dev/octeon_rnm.c: revision 1.6 (+ patch)
	sys/arch/mips/cavium/dev/octeon_rnmreg.h: revision 1.2
	sys/arch/mips/cavium/dev/octeon_rnmreg.h: revision 1.3
	sys/arch/mips/cavium/octeonvar.h: revision 1.7

Add a few more bits.
XXX convert to __BITS.
--
If bus_space_map fails, just don't attach the driver instead of panicing.
Check RNG built in self test, don't attach if that fails too.
--
Oceton RNG/RNM driver modernisation to fit new entropy world order by
riastradh@, with some tweaks to get working in RNG mode.
XXX TODO: work out how to get raw entropy mode working.
--
Rework octeon_rnm(4) random number generator driver.
- Do a little on-line self-test for fun.
- Draw raw samples from the ring oscillators.
- Draw substantially more samples:
  =3D> early RO samples seem to have considerably lower entropy
  =3D> consecutive RO samples are not independent
- Make sure to use rnd_add_data_sync in the callback.
  =3D> not technically needed in HEAD, but would be needed for pullup
--
Adjust entropy estimate for the Octeon.
We are hedging in serial and in parallel, and more conservative than
the Linux driver from Cavium seems to be, so although I don't know
exactly what the thermal jitter of the device is, this seems like a
reasonable compromise.

Revision 1.3 / (download) - annotate - [select for diffs], Wed May 13 21:09:02 2020 UTC (3 years ago) by riastradh
Branch: MAIN
Changes since 1.2: +15 -1 lines
Diff to previous 1.2 (colored)

Rework octeon_rnm(4) random number generator driver.

- Do a little on-line self-test for fun.
- Draw raw samples from the ring oscillators.
- Draw substantially more samples:
  => early RO samples seem to have considerably lower entropy
  => consecutive RO samples are not independent
- Make sure to use rnd_add_data_sync in the callback.
  => not technically needed in HEAD, but would be needed for pullup

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 12 10:12:08 2020 UTC (3 years ago) by simonb
Branch: MAIN
Changes since 1.1: +6 -2 lines
Diff to previous 1.1 (colored)

Add a few more bits.
XXX convert to __BITS.

Revision 1.1.18.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:27 2017 UTC (5 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.1.18.1: +88 -0 lines
Diff to previous 1.1.18.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

update from HEAD

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:01 2015 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +88 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.1.18.1, Wed Apr 29 08:32:01 2015 UTC (8 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.1: +0 -88 lines
FILE REMOVED

file octeon_rnmreg.h was added on branch tls-maxphys on 2017-12-03 11:36:27 +0000

Revision 1.1.2.1, Wed Apr 29 08:32:01 2015 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -88 lines
FILE REMOVED

file octeon_rnmreg.h was added on branch nick-nhusb on 2015-06-06 14:40:01 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 29 08:32:01 2015 UTC (8 years, 1 month ago) by hikaru
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: tls-maxphys, nick-nhusb, netbsd-9

Initial import of Cavium Octeon and Octeon Plus SoC and
specifically Ubiquiti Networks EdgeRouter LITE support.
Currently the ethernet and uart are worked.
This support was contributed by Internet Initiative Japan Inc.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>