summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKazuya Goda <goda@cvs.openbsd.org>2016-09-02 17:06:15 +0000
committerKazuya Goda <goda@cvs.openbsd.org>2016-09-02 17:06:15 +0000
commitbde26d8769313496a8220d5c07b5d624af1f29bf (patch)
tree13b302e43e0d777562e3d182416e80bb7a1adab2 /sys/arch
parent06977ccc557d20e79ca68325775662be832962ec (diff)
Add switch(4) cdev entry
ok deraadt@ yasuoka@ reyk@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/alpha/conf.c4
-rw-r--r--sys/arch/amd64/amd64/conf.c4
-rw-r--r--sys/arch/arm/arm/conf.c5
-rw-r--r--sys/arch/hppa/hppa/conf.c4
-rw-r--r--sys/arch/i386/i386/conf.c4
-rw-r--r--sys/arch/landisk/landisk/conf.c4
-rw-r--r--sys/arch/loongson/loongson/conf.c4
-rw-r--r--sys/arch/luna88k/luna88k/conf.c4
-rw-r--r--sys/arch/macppc/macppc/conf.c4
-rw-r--r--sys/arch/octeon/octeon/conf.c4
-rw-r--r--sys/arch/sgi/sgi/conf.c4
-rw-r--r--sys/arch/socppc/socppc/conf.c4
-rw-r--r--sys/arch/sparc64/sparc64/conf.c4
13 files changed, 40 insertions, 13 deletions
diff --git a/sys/arch/alpha/alpha/conf.c b/sys/arch/alpha/alpha/conf.c
index dbdd31fcd54..625ba1a4819 100644
--- a/sys/arch/alpha/alpha/conf.c
+++ b/sys/arch/alpha/alpha/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.81 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.82 2016/09/02 17:06:12 goda Exp $ */
/* $NetBSD: conf.c,v 1.16 1996/10/18 21:26:57 cgd Exp $ */
/*-
@@ -124,6 +124,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -200,6 +201,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 66: was USB scanners */
cdev_fuse_init(NFUSE,fuse), /* 67: fuse */
cdev_tun_init(NTUN,tap), /* 68: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 69: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/amd64/amd64/conf.c b/sys/arch/amd64/amd64/conf.c
index 10091446bbd..57e2e2c93b8 100644
--- a/sys/arch/amd64/amd64/conf.c
+++ b/sys/arch/amd64/amd64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.58 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.59 2016/09/02 17:06:12 goda Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -183,6 +183,7 @@ cdev_decl(pci);
#include "fuse.h"
#include "pvbus.h"
#include "ipmi.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -295,6 +296,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NVIOCON,viocon), /* 94: virtio console */
cdev_pvbus_init(NPVBUS,pvbus), /* 95: pvbus(4) control interface */
cdev_ipmi_init(NIPMI,ipmi), /* 96: ipmi */
+ cdev_switch_init(NSWITCH,switch), /* 97: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/arm/arm/conf.c b/sys/arch/arm/arm/conf.c
index db2eb8a8f38..1beeb40ee0b 100644
--- a/sys/arch/arm/arm/conf.c
+++ b/sys/arch/arm/arm/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.47 2016/07/31 09:18:01 jsg Exp $ */
+/* $OpenBSD: conf.c,v 1.48 2016/09/02 17:06:12 goda Exp $ */
/* $NetBSD: conf.c,v 1.10 2002/04/19 01:04:38 wiz Exp $ */
/*
@@ -271,6 +271,8 @@ struct bdevsw bdevsw[] = {
#define NSPKR 0
#endif
+#include "switch.h"
+
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
cdev_ctty_init(1,ctty), /* 1: controlling terminal */
@@ -381,6 +383,7 @@ struct cdevsw cdevsw[] = {
cdev_disk_init(1,diskmap), /* 102: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 103: pppx */
cdev_tun_init(NTUN,tap), /* 104: Ethernet tap */
+ cdev_switch_init(NSWITCH,switch), /* 105: switch(4) control interface */
};
int nblkdev = nitems(bdevsw);
diff --git a/sys/arch/hppa/hppa/conf.c b/sys/arch/hppa/hppa/conf.c
index 9ef0253bc00..4f8e4b132c6 100644
--- a/sys/arch/hppa/hppa/conf.c
+++ b/sys/arch/hppa/hppa/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.64 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.65 2016/09/02 17:06:12 goda Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -116,6 +116,7 @@ cdev_decl(pci);
#include "ucom.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -184,6 +185,7 @@ struct cdevsw cdevsw[] =
cdev_pppx_init(NPPPX,pppx), /* 57: pppx */
cdev_fuse_init(NFUSE,fuse), /* 58: fuse */
cdev_tun_init(NTUN,tap), /* 59: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 60: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index 6f7b31f99fe..63c6499fc50 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.155 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.156 2016/09/02 17:06:12 goda Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -177,6 +177,7 @@ cdev_decl(pci);
#include "fuse.h"
#include "pvbus.h"
#include "ipmi.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -289,6 +290,7 @@ struct cdevsw cdevsw[] =
cdev_tun_init(NTUN,tap), /* 94: Ethernet network tunnel */
cdev_pvbus_init(NPVBUS,pvbus), /* 95: pvbus(4) control interface */
cdev_ipmi_init(NIPMI,ipmi), /* 96: ipmi */
+ cdev_switch_init(NSWITCH,switch), /* 97: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/landisk/landisk/conf.c b/sys/arch/landisk/landisk/conf.c
index 48ea972a282..181e9b72763 100644
--- a/sys/arch/landisk/landisk/conf.c
+++ b/sys/arch/landisk/landisk/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.35 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.36 2016/09/02 17:06:12 goda Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -245,6 +245,7 @@ struct bdevsw bdevsw[] = {
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -356,6 +357,7 @@ struct cdevsw cdevsw[] = {
cdev_pppx_init(NPPPX,pppx), /* 102: pppx */
cdev_fuse_init(NFUSE,fuse), /* 103: fuse */
cdev_tun_init(NTUN,tap), /* 104: Ethernet network tap */
+ cdev_switch_init(NSWITCH,switch), /* 105: switch(4) control interface */
};
int nblkdev = nitems(bdevsw);
diff --git a/sys/arch/loongson/loongson/conf.c b/sys/arch/loongson/loongson/conf.c
index 87bce553d57..d54f0c3242e 100644
--- a/sys/arch/loongson/loongson/conf.c
+++ b/sys/arch/loongson/loongson/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.21 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.22 2016/09/02 17:06:12 goda Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -125,6 +125,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -207,6 +208,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 72: was USB scanners */
cdev_fuse_init(NFUSE,fuse), /* 73: fuse */
cdev_tun_init(NTUN,tap), /* 74: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 75: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/luna88k/luna88k/conf.c b/sys/arch/luna88k/luna88k/conf.c
index b5e90357fa2..022e489f07e 100644
--- a/sys/arch/luna88k/luna88k/conf.c
+++ b/sys/arch/luna88k/luna88k/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.28 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.29 2016/09/02 17:06:12 goda Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -70,6 +70,7 @@
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct bdevsw bdevsw[] =
{
@@ -156,6 +157,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(1,diskmap), /* 54: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 55: pppx */
cdev_tun_init(NTUN,tap), /* 56: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 57: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/macppc/macppc/conf.c b/sys/arch/macppc/macppc/conf.c
index ebd45e0c206..a77bccdf813 100644
--- a/sys/arch/macppc/macppc/conf.c
+++ b/sys/arch/macppc/macppc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.65 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.66 2016/09/02 17:06:12 goda Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -125,6 +125,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -224,6 +225,7 @@ struct cdevsw cdevsw[] = {
cdev_tun_init(NTUN,tap), /* 86: Ethernet network tunnel */
cdev_drm_init(NDRM,drm), /* 87: drm */
cdev_fuse_init(NFUSE,fuse), /* 88: fuse */
+ cdev_switch_init(NSWITCH,switch), /* 89: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/octeon/octeon/conf.c b/sys/arch/octeon/octeon/conf.c
index 50e1d874442..46c1f0d1326 100644
--- a/sys/arch/octeon/octeon/conf.c
+++ b/sys/arch/octeon/octeon/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.18 2016/07/05 12:53:40 visa Exp $ */
+/* $OpenBSD: conf.c,v 1.19 2016/09/02 17:06:12 goda Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -141,6 +141,7 @@ cdev_decl(pci);
#include "pppx.h"
#include "fuse.h"
#include "openprom.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -227,6 +228,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 72: was USB scanners */
cdev_notdef(), /* 73: fuse on other mips64 */
cdev_tun_init(NTUN,tap), /* 74: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 75: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/sgi/sgi/conf.c b/sys/arch/sgi/sgi/conf.c
index 891253c2d0e..21508bc135a 100644
--- a/sys/arch/sgi/sgi/conf.c
+++ b/sys/arch/sgi/sgi/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.37 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.38 2016/09/02 17:06:13 goda Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -126,6 +126,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] =
{
@@ -208,6 +209,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 72: was USB scanners */
cdev_fuse_init(NFUSE,fuse), /* 73: fuse */
cdev_tun_init(NTUN,tap), /* 74: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 75: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/socppc/socppc/conf.c b/sys/arch/socppc/socppc/conf.c
index aee8351b3bb..c567012ad02 100644
--- a/sys/arch/socppc/socppc/conf.c
+++ b/sys/arch/socppc/socppc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.26 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.27 2016/09/02 17:06:13 goda Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -107,6 +107,7 @@ cdev_decl(pci);
#include "pppx.h"
#include "hotplug.h"
#include "fuse.h"
+#include "switch.h"
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -202,6 +203,7 @@ struct cdevsw cdevsw[] = {
cdev_hotplug_init(NHOTPLUG,hotplug), /* 84: devices hot plugging */
cdev_fuse_init(NFUSE,fuse), /* 85: fuse */
cdev_tun_init(NTUN,tap), /* 86: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 87: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index b05cec2a8ec..211598eefe4 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.77 2016/04/25 20:09:14 tedu Exp $ */
+/* $OpenBSD: conf.c,v 1.78 2016/09/02 17:06:13 goda Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -115,6 +115,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "switch.h"
struct bdevsw bdevsw[] =
{
@@ -290,6 +291,7 @@ struct cdevsw cdevsw[] =
cdev_vdsp_init(NVDSP,vdsp), /* 133: vdsp */
cdev_fuse_init(NFUSE,fuse), /* 134: fuse */
cdev_tun_init(NTUN,tap), /* 135: Ethernet network tunnel */
+ cdev_switch_init(NSWITCH,switch), /* 136: switch(4) control interface */
};
int nchrdev = nitems(cdevsw);