25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_random.c,v 1.5 2006/02/09 20:02:59 debug Exp $ |
* $Id: dev_random.c,v 1.6 2006/02/25 12:55:20 debug Exp $ |
29 |
* |
* |
30 |
* A simple device which returns random data for all reads, and discards all |
* A simple device which returns random data for all reads, and discards all |
31 |
* writes. |
* writes. |
41 |
#include "misc.h" |
#include "misc.h" |
42 |
|
|
43 |
|
|
|
/* |
|
|
* dev_random_access(): |
|
|
* |
|
|
* Returns 1 if ok, 0 on error. |
|
|
*/ |
|
44 |
DEVICE_ACCESS(random) |
DEVICE_ACCESS(random) |
45 |
{ |
{ |
46 |
if (writeflag == MEM_READ) { |
if (writeflag == MEM_READ) { |