FreeBSD Bugzilla – Attachment 29261 Details for
Bug 48922
[PATCH] comms/ltmdm: fix building on -CURRENT (>=500105)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.92 KB, created by
osa
on 2003-03-04 16:10:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
osa
Created:
2003-03-04 16:10:04 UTC
Size:
3.92 KB
patch
obsolete
>Index: ports/comms/ltmdm/Makefile >=================================================================== >RCS file: /home/ncvs/ports/comms/ltmdm/Makefile,v >retrieving revision 1.10 >diff -u -r1.10 Makefile >--- ports/comms/ltmdm/Makefile 2 Mar 2003 22:03:52 -0000 1.10 >+++ ports/comms/ltmdm/Makefile 4 Mar 2003 15:58:27 -0000 >@@ -7,7 +7,7 @@ > > PORTNAME= ltmdm > PORTVERSION= 1.4 >-PORTREVISION= 4 >+PORTREVISION= 5 > CATEGORIES= comms > MASTER_SITES= http://www.dons.net.au/~darius/ \ > http://soupnazi.org/FreeBSD/ports/distfiles/ >Index: ports/comms/ltmdm/files/patch-aa >=================================================================== >RCS file: /home/ncvs/ports/comms/ltmdm/files/patch-aa,v >retrieving revision 1.2 >diff -u -r1.2 patch-aa >--- ports/comms/ltmdm/files/patch-aa 2 Mar 2003 22:03:52 -0000 1.2 >+++ ports/comms/ltmdm/files/patch-aa 4 Mar 2003 15:58:27 -0000 >@@ -1,6 +1,16 @@ >---- sys/dev/ltmdm/ltmdmsio.c.orig Tue Mar 12 03:47:31 2002 >-+++ sys/dev/ltmdm/ltmdmsio.c Sun Mar 2 23:49:45 2003 >-@@ -69,9 +69,13 @@ >+--- sys/dev/ltmdm/ltmdmsio.c.orig Tue Mar 12 04:47:31 2002 >++++ sys/dev/ltmdm/ltmdmsio.c Tue Mar 4 18:37:48 2003 >+@@ -60,7 +60,9 @@ >+ #include <sys/proc.h> >+ #include <sys/module.h> >+ #include <sys/conf.h> >++#if __FreeBSD_version < 500101 >+ #include <sys/dkstat.h> >++#endif >+ #include <sys/fcntl.h> >+ #include <sys/interrupt.h> >+ #include <sys/kernel.h> >+@@ -69,9 +71,13 @@ > #include <machine/bus.h> > #include <sys/rman.h> > #if __FreeBSD_version >= 500000 >@@ -14,7 +24,7 @@ > > #include <pci/pcireg.h> > #include <pci/pcivar.h> >-@@ -124,9 +128,11 @@ >+@@ -124,9 +130,11 @@ > #endif > > #if __FreeBSD_version >= 500023 /* >= 20010912 */ >@@ -27,7 +37,7 @@ > > > #define LOTS_OF_EVENTS 64 /* helps separate urgent events from input */ >-@@ -256,7 +262,9 @@ >+@@ -256,7 +264,9 @@ > bool_t do_dcd_timestamp; > struct timeval timestamp; > struct timeval dcd_timestamp; >@@ -37,7 +47,15 @@ > > u_long bytes_in; /* statistics */ > u_long bytes_out; >-@@ -361,7 +369,11 @@ >+@@ -352,6 +362,7 @@ >+ #endif >+ >+ static struct cdevsw sio_cdevsw = { >++#if __FreeBSD_version < 500105 >+ /* open */ sioopen, >+ /* close */ sioclose, >+ /* read */ sioread, >+@@ -361,7 +372,11 @@ > /* mmap */ nommap, > /* strategy */ nostrategy, > /* name */ driver_name, >@@ -49,7 +67,29 @@ > /* dump */ nodump, > /* psize */ nopsize, > #if __FreeBSD_version < 430000 >-@@ -1295,8 +1307,11 @@ >+@@ -377,6 +392,21 @@ >+ /* kqfilter */ ttykqfilter, >+ #endif >+ #endif >++#else >++ .d_open = sioopen, >++ .d_close = sioclose, >++ .d_read = sioread, >++ .d_write = siowrite, >++ .d_ioctl = sioioctl, >++ .d_poll = ttypoll, >++ .d_name = driver_name, >++#ifdef MAJOR_AUTO >++ .d_maj = MAJOR_AUTO, >++#else >++ .d_maj = CDEV_MAJOR, >++#endif >++ .d_kqfilter = ttykqfilter, >++#endif >+ }; >+ >+ static u_int com_events; /* input chars + weighted output completions */ >+@@ -1295,8 +1325,11 @@ > DPRINTF(1,(" x_chip_version = %d\n", x_chip_version)); > > com->flags = flags; >@@ -61,7 +101,7 @@ > > /* > * initialize the device registers as follows: >-@@ -1685,7 +1700,9 @@ >+@@ -1685,7 +1718,9 @@ > s = splfunc(); > com->do_timestamp = FALSE; > com->do_dcd_timestamp = FALSE; >@@ -71,7 +111,7 @@ > write_vuart_port(UART_CFCR, com->cfcr_image &= ~CFCR_SBREAK); > { > write_vuart_port(UART_IER, 0); >-@@ -1894,23 +1911,34 @@ >+@@ -1894,23 +1929,34 @@ > u_char recv_data; > u_char int_ctl; > u_char int_ctl_new; >@@ -106,7 +146,7 @@ > line_status = read_vuart_port(UART_LSR); > > /* input event? (check first to help avoid overruns) */ >-@@ -2195,7 +2223,9 @@ >+@@ -2195,7 +2241,9 @@ > break; > default: > splx(s); >@@ -116,7 +156,7 @@ > if (error == ENODEV) > error = ENOTTY; > return (error); >-@@ -2796,7 +2826,7 @@ >+@@ -2796,7 +2844,7 @@ > #endif > > DRIVER_MODULE(ltmdm, pci, ltmdm_pci_driver, ltmdm_devclass, ltmdm_event, 0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48922
: 29261