Deleted Added
full compact
sio.c (132226) sio.c (132561)
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
30 * from: i386/isa sio.c,v 1.234
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
30 * from: i386/isa sio.c,v 1.234
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 132226 2004-07-15 20:47:41Z phk $");
34__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 132561 2004-07-22 23:16:12Z imp $");
35
36#include "opt_comconsole.h"
37#include "opt_compat.h"
38#include "opt_gdb.h"
39#include "opt_kdb.h"
40#include "opt_sio.h"
41
42/*

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

449 int i;
450
451 com = (struct com_s *) device_get_softc(dev);
452 if (com == NULL) {
453 device_printf(dev, "NULL com in siounload\n");
454 return (0);
455 }
456 com->gone = TRUE;
35
36#include "opt_comconsole.h"
37#include "opt_compat.h"
38#include "opt_gdb.h"
39#include "opt_kdb.h"
40#include "opt_sio.h"
41
42/*

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

449 int i;
450
451 com = (struct com_s *) device_get_softc(dev);
452 if (com == NULL) {
453 device_printf(dev, "NULL com in siounload\n");
454 return (0);
455 }
456 com->gone = TRUE;
457 ttygone(com->tp);
457 if (com->tp)
458 ttygone(com->tp);
458 for (i = 0 ; i < 6; i++)
459 destroy_dev(com->devs[i]);
460 if (com->irqres) {
461 bus_teardown_intr(dev, com->irqres, com->cookie);
462 bus_release_resource(dev, SYS_RES_IRQ, 0, com->irqres);
463 }
464 if (com->ioportres)
465 bus_release_resource(dev, SYS_RES_IOPORT, com->ioportrid,

--- 2637 unchanged lines hidden ---
459 for (i = 0 ; i < 6; i++)
460 destroy_dev(com->devs[i]);
461 if (com->irqres) {
462 bus_teardown_intr(dev, com->irqres, com->cookie);
463 bus_release_resource(dev, SYS_RES_IRQ, 0, com->irqres);
464 }
465 if (com->ioportres)
466 bus_release_resource(dev, SYS_RES_IOPORT, com->ioportrid,

--- 2637 unchanged lines hidden ---