Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/console/xen_console.c
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | static const struct xencons_ops xencons_hypervisor_ops = { | ||||
.write = xencons_write_hypervisor, | .write = xencons_write_hypervisor, | ||||
}; | }; | ||||
/*------------------ Helpers for the ring console ---------------------------*/ | /*------------------ Helpers for the ring console ---------------------------*/ | ||||
static void | static void | ||||
xencons_early_init_ring(struct xencons_priv *cons) | xencons_early_init_ring(struct xencons_priv *cons) | ||||
{ | { | ||||
cons->intf = pmap_mapdev_attr(ptoa(xen_get_console_mfn()), PAGE_SIZE, | cons->intf = pmap_mapdev_attr(ptoa(xen_get_console_mfn()), PAGE_SIZE, | ||||
VM_MEMATTR_WRITE_BACK); | VM_MEMATTR_XEN_SHARED); | ||||
cons->evtchn = xen_get_console_evtchn(); | cons->evtchn = xen_get_console_evtchn(); | ||||
} | } | ||||
static int | static int | ||||
xencons_init_ring(device_t dev, struct tty *tp, driver_intr_t intr_handler) | xencons_init_ring(device_t dev, struct tty *tp, driver_intr_t intr_handler) | ||||
{ | { | ||||
struct xencons_priv *cons; | struct xencons_priv *cons; | ||||
int err; | int err; | ||||
▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines |