freebsd-skq/sys/arm
marius b4610d98b0 - Import the common MII bitbang'ing code from NetBSD and convert drivers to
take advantage of it instead of duplicating it. This reduces the size of
  the i386 GENERIC kernel by about 4k. The only potential in-tree user left
  unconverted is xe(4), which generally should be changed to use miibus(4)
  instead of implementing PHY handling on its own, as otherwise it makes not
  much sense to add a dependency on miibus(4)/mii_bitbang(4) to xe(4) just
  for the MII bitbang'ing code. The common MII bitbang'ing code also is
  useful in the embedded space for using GPIO pins to implement MII access.
- Based on lessons learnt with dc(4) (see r185750), add bus barriers to the
  MII bitbang read and write functions of the other drivers converted in
  order to ensure the intended ordering. Given that register access via an
  index register as well as register bank/window switching is subject to the
  same problem, also add bus barriers to the respective functions of smc(4),
  tl(4) and xl(4).
- Sprinkle some const.

Thanks to the following testers:
Andrew Bliznak (nge(4)), nwhitehorn@ (bm(4)), yongari@ (sis(4) and ste(4))
Thanks to Hans-Joerg Sirtl for supplying hardware to test stge(4).

Reviewed by:	yongari (subset of drivers)
Obtained from:	NetBSD (partially)
2011-11-01 16:13:59 +00:00
..
arm Trace attempts to call restricted MD syscalls. 2011-10-18 07:39:27 +00:00
at91 Check the return value of BUS_SETUP_INTR() 2011-10-27 10:21:40 +00:00
compile
conf - Import the common MII bitbang'ing code from NetBSD and convert drivers to 2011-11-01 16:13:59 +00:00
econa Check the return value of BUS_SETUP_INTR() 2011-10-27 10:21:40 +00:00
include People porting FreeBSD to new architectures ought not have to 2011-10-21 06:41:46 +00:00
mv Fix build when DEBUG is defined in the kernel configuration file (e.g. 2011-10-04 16:58:20 +00:00
s3c2xx0 Get myself a brain, move the call to init_param1() before the first use in 2011-02-21 13:11:05 +00:00
sa11x0 Fix for arm and mips case the size of storage for sintrcnt/sintrnames. 2011-08-02 17:49:27 +00:00
xscale Check the return value of BUS_SETUP_INTR() 2011-10-27 10:21:40 +00:00