summaryrefslogtreecommitdiff
path: root/sys/arch/arm32
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 14:57:09 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 14:57:09 +0000
commit86808c1792db3660ec637ca3878dbf939075b0a7 (patch)
tree1954a02d9b60c4afc0e4bfd12f6749c5da3ce70f /sys/arch/arm32
parent6536d74345a497354f7559bb6d2f1f8f5ff3ad49 (diff)
add rnd driver
Diffstat (limited to 'sys/arch/arm32')
-rw-r--r--sys/arch/arm32/arm32/conf.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/arch/arm32/arm32/conf.c b/sys/arch/arm32/arm32/conf.c
index 6da8418cc10..216cea8ecbb 100644
--- a/sys/arch/arm32/arm32/conf.c
+++ b/sys/arch/arm32/arm32/conf.c
@@ -172,20 +172,6 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
0, seltrue, dev_init(c,n,mmap), 0 }
/* open, close, write, ioctl */
-#define cdev_uk_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), \
- (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev, 0 }
-
-/* open, close, read, ioctl */
-#define cdev_ss_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
- (dev_type_stop((*))) enodev, 0, seltrue, \
- (dev_type_mmap((*))) enodev }
-
-/* open, close, write, ioctl */
#define cdev_iic_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
@@ -259,6 +245,8 @@ cdev_decl(cpu);
cdev_decl(iic);
#include "rtc.h"
cdev_decl(rtc);
+#include "rnd.h"
+cdev_decl(rnd);
/* Temporary hack for ATAPI CDROM */
cdev_decl(wcd);
@@ -309,6 +297,7 @@ struct cdevsw cdevsw[] = {
cdev_lkm_dummy(), /* 41: */
cdev_iic_init(NIIC, iic), /* 42: IIC bus driver */
cdev_rtc_init(NRTC, rtc), /* 43: RTC driver */
+ cdev_rnd_init(NRND, rnd), /* 44: random data source */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);