diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-01-23 03:04:58 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-01-23 03:04:58 +0000 |
commit | 6d799d9725a0badc2a9f4069a6506539c9e72906 (patch) | |
tree | f63d4425f282070e2391ac6008abc8e839f5db65 /sys | |
parent | 0f0e5c9555df94782935f18c5c97624bc33131ce (diff) |
Add gpio(4) and switch(4) to cdevsw.
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm64/arm64/conf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/conf.c b/sys/arch/arm64/arm64/conf.c index d481499b2fa..89c15a68e31 100644 --- a/sys/arch/arm64/arm64/conf.c +++ b/sys/arch/arm64/arm64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.3 2017/01/21 08:45:45 patrick Exp $ */ +/* $OpenBSD: conf.c,v 1.4 2017/01/23 03:04:57 jsg Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -142,6 +142,8 @@ cdev_decl(pci); #include "vscsi.h" #include "pppx.h" #include "fuse.h" +#include "gpio.h" +#include "switch.h" struct cdevsw cdevsw[] = { @@ -241,11 +243,16 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 85 */ cdev_notdef(), /* 86 */ cdev_drm_init(NDRM,drm), /* 87: drm */ - cdev_notdef(), /* 88 */ + cdev_gpio_init(NGPIO,gpio), /* 88: GPIO interface */ cdev_vscsi_init(NVSCSI,vscsi), /* 89: vscsi */ cdev_disk_init(1,diskmap), /* 90: disk mapper */ cdev_pppx_init(NPPPX,pppx), /* 91: pppx */ cdev_fuse_init(NFUSE,fuse), /* 92: fuse */ + cdev_notdef(), /* 93 */ + cdev_notdef(), /* 94 */ + cdev_notdef(), /* 95 */ + cdev_notdef(), /* 96 */ + cdev_switch_init(NSWITCH,switch), /* 97: switch(4) control interface */ }; int nchrdev = nitems(cdevsw); |