mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Catch up to the cdevsw changes in 5-current.
This commit is contained in:
parent
1810492abe
commit
685cd723aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101673
@ -1,5 +1,5 @@
|
||||
--- sys/dev/ltmdm/ltmdmsio.c.orig Mon Mar 11 20:47:31 2002
|
||||
+++ sys/dev/ltmdm/ltmdmsio.c Wed Sep 17 16:34:20 2003
|
||||
--- sys/dev/ltmdm/ltmdmsio.c.orig Mon Mar 11 18:47:31 2002
|
||||
+++ sys/dev/ltmdm/ltmdmsio.c Sat Feb 21 20:56:45 2004
|
||||
@@ -60,7 +60,9 @@
|
||||
#include <sys/proc.h>
|
||||
#include <sys/module.h>
|
||||
@ -86,7 +86,7 @@
|
||||
/* dump */ nodump,
|
||||
/* psize */ nopsize,
|
||||
#if __FreeBSD_version < 430000
|
||||
@@ -373,10 +395,25 @@
|
||||
@@ -373,10 +395,30 @@
|
||||
/* bmaj */ -1,
|
||||
/* kqfilter */ ttykqfilter,
|
||||
#else /* __FreeBSD_version >= 500000 */
|
||||
@ -101,7 +101,6 @@
|
||||
+ .d_read = sioread,
|
||||
+ .d_write = siowrite,
|
||||
+ .d_ioctl = sioioctl,
|
||||
+ .d_poll = ttypoll,
|
||||
+ .d_name = driver_name,
|
||||
+#ifdef MAJOR_AUTO
|
||||
+ .d_maj = MAJOR_AUTO,
|
||||
@ -109,11 +108,17 @@
|
||||
+ .d_maj = CDEV_MAJOR,
|
||||
+#endif
|
||||
+ .d_kqfilter = ttykqfilter,
|
||||
+#endif
|
||||
+#if __FreeBSD_version >= 502102
|
||||
+ .d_flags = D_TTY | D_NEEDGIANT,
|
||||
+ .d_version = D_VERSION
|
||||
+#else
|
||||
+ .d_poll = ttypoll,
|
||||
+#endif
|
||||
};
|
||||
|
||||
static u_int com_events; /* input chars + weighted output completions */
|
||||
@@ -1295,8 +1332,11 @@
|
||||
@@ -1295,8 +1337,11 @@
|
||||
DPRINTF(1,(" x_chip_version = %d\n", x_chip_version));
|
||||
|
||||
com->flags = flags;
|
||||
@ -125,7 +130,7 @@
|
||||
|
||||
/*
|
||||
* initialize the device registers as follows:
|
||||
@@ -1685,7 +1725,9 @@
|
||||
@@ -1685,7 +1730,9 @@
|
||||
s = splfunc();
|
||||
com->do_timestamp = FALSE;
|
||||
com->do_dcd_timestamp = FALSE;
|
||||
@ -135,7 +140,7 @@
|
||||
write_vuart_port(UART_CFCR, com->cfcr_image &= ~CFCR_SBREAK);
|
||||
{
|
||||
write_vuart_port(UART_IER, 0);
|
||||
@@ -1894,23 +1936,34 @@
|
||||
@@ -1894,23 +1941,34 @@
|
||||
u_char recv_data;
|
||||
u_char int_ctl;
|
||||
u_char int_ctl_new;
|
||||
@ -170,7 +175,7 @@
|
||||
line_status = read_vuart_port(UART_LSR);
|
||||
|
||||
/* input event? (check first to help avoid overruns) */
|
||||
@@ -2195,7 +2248,9 @@
|
||||
@@ -2195,7 +2253,9 @@
|
||||
break;
|
||||
default:
|
||||
splx(s);
|
||||
@ -180,7 +185,7 @@
|
||||
if (error == ENODEV)
|
||||
error = ENOTTY;
|
||||
return (error);
|
||||
@@ -2796,7 +2851,7 @@
|
||||
@@ -2796,7 +2856,7 @@
|
||||
#endif
|
||||
|
||||
DRIVER_MODULE(ltmdm, pci, ltmdm_pci_driver, ltmdm_devclass, ltmdm_event, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user