Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2003 06:17:18 -0800 (PST)
From:      Alexander Langer <alex@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 27111 for review
Message-ID:  <200303191417.h2JEHILL062817@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=27111

Change 27111 by alex@alex_fump on 2003/03/19 06:16:28

	sync the struct cdevsw initialization with the way
	it's done in -CURRENT nowadays.

Affected files ...

.. //depot/projects/mips/sys/dev/arcbios/arcbios_tty.c#4 edit

Differences ...

==== //depot/projects/mips/sys/dev/arcbios/arcbios_tty.c#4 (text+ko) ====

@@ -46,7 +46,7 @@
 #include <dev/arcbios/arcbios.h>
 #include <dev/arcbios/arcbiosvar.h>
 
-#define CDEV_MAJOR 97
+#define CDEV_MAJOR 97			/* XXX use MAJOR_AUTO? */
 
 struct callout arcbios_tty_ch = { { { NULL } }, 
 				  0, 
@@ -71,20 +71,16 @@
 
 /* This structure is defined in sys/conf.h */
 struct cdevsw arcbios_cdevsw = {
-	arcbios_ttyopen, 
-	arcbios_ttyclose, 
-	arcbios_ttyread, 
-	arcbios_ttywrite,
-	arcbios_ttyioctl, 
-	ttypoll,
-	nommap, 
-	nostrategy  /* Strategy */,
-	"console"   /* Name */,
-	CDEV_MAJOR  /* Major Number */,
-	nodump      /* Dump */,
-	nopsize     /* PSize */,
-	D_TTY       /* Flags */,
-	ttykqfilter /* kqueue filter */
+	.d_maj = 	CDEV_MAJOR,
+	.d_flags = 	D_TTY,
+	.d_name = 	"console",
+	.d_open =	arcbios_ttyopen, 
+	.d_close = 	arcbios_ttyclose, 
+	.d_read = 	arcbios_ttyread, 
+	.d_write =	arcbios_ttywrite,
+	.d_ioctl =	arcbios_ttyioctl, 
+	.d_poll = 	ttypoll,
+	.d_kqfilter =	ttykqfilter
 };
 
 int arcbios_ttyopen( dev_t dev, int flag, int mode, struct thread *p )

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303191417.h2JEHILL062817>