Deleted Added
full compact
console.c (192285) console.c (193018)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/xen/console/console.c 192285 2009-05-18 04:50:31Z adrian $");
2__FBSDID("$FreeBSD: head/sys/dev/xen/console/console.c 193018 2009-05-29 06:41:23Z ed $");
3
4#include <sys/param.h>
5#include <sys/module.h>
6#include <sys/systm.h>
7#include <sys/consio.h>
8#include <sys/priv.h>
9#include <sys/proc.h>
10#include <sys/uio.h>

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

225xc_attach(device_t dev)
226{
227 int error;
228
229 if (xen_start_info->flags & SIF_INITDOMAIN) {
230 xc_consdev.cn_putc = xccnputc_dom0;
231 }
232
3
4#include <sys/param.h>
5#include <sys/module.h>
6#include <sys/systm.h>
7#include <sys/consio.h>
8#include <sys/priv.h>
9#include <sys/proc.h>
10#include <sys/uio.h>

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

225xc_attach(device_t dev)
226{
227 int error;
228
229 if (xen_start_info->flags & SIF_INITDOMAIN) {
230 xc_consdev.cn_putc = xccnputc_dom0;
231 }
232
233 xccons = tty_alloc(&xc_ttydevsw, NULL, NULL);
233 xccons = tty_alloc(&xc_ttydevsw, NULL);
234 tty_makedev(xccons, NULL, "xc%r", 0);
235
236 callout_init(&xc_callout, 0);
237
238 xencons_ring_init();
239
240 cnsl_evt_reg = 1;
241 callout_reset(&xc_callout, XC_POLLTIME, xc_timeout, xccons);

--- 196 unchanged lines hidden ---
234 tty_makedev(xccons, NULL, "xc%r", 0);
235
236 callout_init(&xc_callout, 0);
237
238 xencons_ring_init();
239
240 cnsl_evt_reg = 1;
241 callout_reset(&xc_callout, XC_POLLTIME, xc_timeout, xccons);

--- 196 unchanged lines hidden ---