PERFORCE change 37339 for review
Marcel Moolenaar
marcel at FreeBSD.org
Mon Sep 1 14:01:57 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=37339
Change 37339 by marcel at marcel_nfs on 2003/09/01 14:01:35
s/uart_close/uart_tty_close/g
s/uart_ioctl/uart_tty_ioctl/g
s/uart_open/uart_tty_open/g
Now that the TTY interface is not the only interface (well,
by design at least :-), avoid a naming scheme that implies
otherwise.
Affected files ...
.. //depot/projects/uart/dev/uart/uart_tty.c#9 edit
Differences ...
==== //depot/projects/uart/dev/uart/uart_tty.c#9 (text+ko) ====
@@ -62,16 +62,16 @@
CONS_DRIVER(uart, uart_cnprobe, uart_cninit, uart_cnterm, uart_cngetc,
uart_cncheckc, uart_cnputc, NULL);
-static d_open_t uart_open;
-static d_close_t uart_close;
-static d_ioctl_t uart_ioctl;
+static d_open_t uart_tty_open;
+static d_close_t uart_tty_close;
+static d_ioctl_t uart_tty_ioctl;
static struct cdevsw uart_cdevsw = {
- .d_open = uart_open,
- .d_close = uart_close,
+ .d_open = uart_tty_open,
+ .d_close = uart_tty_close,
.d_read = ttyread,
.d_write = ttywrite,
- .d_ioctl = uart_ioctl,
+ .d_ioctl = uart_tty_ioctl,
.d_poll = ttypoll,
.d_name = uart_driver_name,
.d_maj = MAJOR_AUTO,
@@ -335,7 +335,7 @@
}
static int
-uart_open(dev_t dev, int flags, int mode, struct thread *td)
+uart_tty_open(dev_t dev, int flags, int mode, struct thread *td)
{
struct uart_softc *sc;
struct tty *tp;
@@ -424,7 +424,7 @@
}
static int
-uart_close(dev_t dev, int flags, int mode, struct thread *td)
+uart_tty_close(dev_t dev, int flags, int mode, struct thread *td)
{
struct uart_softc *sc;
struct tty *tp;
@@ -452,7 +452,8 @@
}
static int
-uart_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
+uart_tty_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags,
+ struct thread *td)
{
struct uart_softc *sc;
struct tty *tp;
More information about the p4-projects
mailing list