Deleted Added
full compact
dcons_os.c (189752) dcons_os.c (190756)
1/*-
2 * Copyright (C) 2003,2004
3 * Hidetoshi Shimokawa. 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (C) 2003,2004
3 * Hidetoshi Shimokawa. 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/dev/dcons/dcons_os.c 189752 2009-03-13 02:15:49Z imp $
34 * $FreeBSD: head/sys/dev/dcons/dcons_os.c 190756 2009-04-06 02:29:28Z kan $
35 */
36
37#include <sys/param.h>
38#include <sys/kdb.h>
39#include <gdb/gdb.h>
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/systm.h>

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

398static int
399dcons_modevent(module_t mode, int type, void *data)
400{
401 int err = 0, ret;
402
403 switch (type) {
404 case MOD_LOAD:
405 ret = dcons_drv_init(1);
35 */
36
37#include <sys/param.h>
38#include <sys/kdb.h>
39#include <gdb/gdb.h>
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/systm.h>

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

398static int
399dcons_modevent(module_t mode, int type, void *data)
400{
401 int err = 0, ret;
402
403 switch (type) {
404 case MOD_LOAD:
405 ret = dcons_drv_init(1);
406 if (ret == 0) {
406 if (ret != -1)
407 dcons_attach();
407 dcons_attach();
408 if (ret == 0) {
408 dcons_cnprobe(&dcons_consdev);
409 dcons_cninit(&dcons_consdev);
410 cnadd(&dcons_consdev);
411 }
412 break;
413 case MOD_UNLOAD:
414 printf("dcons: unload\n");
415 if (drv_init == 1) {

--- 72 unchanged lines hidden ---
409 dcons_cnprobe(&dcons_consdev);
410 dcons_cninit(&dcons_consdev);
411 cnadd(&dcons_consdev);
412 }
413 break;
414 case MOD_UNLOAD:
415 printf("dcons: unload\n");
416 if (drv_init == 1) {

--- 72 unchanged lines hidden ---