Whats the difference between delay and DELAY in the NetBSD ported drivers?
The NetBSD drivers have two different delay functions, both of which take an argument of microseconds. From the NetBSD docs, DELAY() is reentrant (doesn’t modify any global kernel or machine state) and is safe to use in interrupt or process context. HOWEVER, Neutrino’s version of delay is in milliseconds so this could result in very long timeouts if used directly as is in the drivers. We’ve defined DELAY to do the appropriate thing for a microsecond delay, so all NetBSD ported drivers should macro delay to DELAY.