Deleted Added
full compact
cy.c (131981) cy.c (132226)
1/*-
2 * cyclades cyclom-y serial driver
3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993
4 *
5 * Copyright (c) 1993 Andrew Herbert.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 15 unchanged lines hidden (view full) ---

24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * cyclades cyclom-y serial driver
3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993
4 *
5 * Copyright (c) 1993 Andrew Herbert.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 15 unchanged lines hidden (view full) ---

24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/cy/cy.c 131981 2004-07-11 15:18:39Z phk $");
32__FBSDID("$FreeBSD: head/sys/dev/cy/cy.c 132226 2004-07-15 20:47:41Z phk $");
33
34#include "opt_compat.h"
35
36/*
37 * TODO:
38 * Atomic COR change.
39 * Consoles.
40 */

--- 740 unchanged lines hidden (view full) ---

781 return (0);
782 com = com_addr(MINOR_TO_UNIT(mynor));
783 tp = com->tp;
784 s = spltty();
785 cd_etc(com, CD1400_ETC_STOPBREAK);
786 ttyld_close(tp, flag);
787 disc_optim(tp, &tp->t_termios, com);
788 comhardclose(com);
33
34#include "opt_compat.h"
35
36/*
37 * TODO:
38 * Atomic COR change.
39 * Consoles.
40 */

--- 740 unchanged lines hidden (view full) ---

781 return (0);
782 com = com_addr(MINOR_TO_UNIT(mynor));
783 tp = com->tp;
784 s = spltty();
785 cd_etc(com, CD1400_ETC_STOPBREAK);
786 ttyld_close(tp, flag);
787 disc_optim(tp, &tp->t_termios, com);
788 comhardclose(com);
789 ttyclose(tp);
789 tty_close(tp);
790 siosettimeout();
791 splx(s);
792#ifdef broken /* session holds a ref to the tty; can't deallocate */
793 ttyfree(tp);
794 com->tp = NULL;
795#endif
796 return (0);
797}

--- 2037 unchanged lines hidden ---
790 siosettimeout();
791 splx(s);
792#ifdef broken /* session holds a ref to the tty; can't deallocate */
793 ttyfree(tp);
794 com->tp = NULL;
795#endif
796 return (0);
797}

--- 2037 unchanged lines hidden ---