Changeset View
Changeset View
Standalone View
Standalone View
sys/xen/xen_intr.c
Show First 20 Lines • Show All 1,152 Lines • ▼ Show 20 Lines | #endif | ||||
* responsible for closing it automatically on unbind. | * responsible for closing it automatically on unbind. | ||||
*/ | */ | ||||
isrc->xi_close = 1; | isrc->xi_close = 1; | ||||
isrc->xi_virq = virq; | isrc->xi_virq = virq; | ||||
return (0); | return (0); | ||||
} | } | ||||
#if defined(__amd64__) || defined(__i386__) | |||||
int | int | ||||
xen_intr_alloc_and_bind_ipi(u_int cpu, driver_filter_t filter, | xen_intr_alloc_and_bind_ipi(u_int cpu, driver_filter_t filter, | ||||
enum intr_type flags, xen_intr_handle_t *port_handlep) | enum intr_type flags, xen_intr_handle_t *port_handlep) | ||||
{ | { | ||||
#ifdef SMP | #ifdef SMP | ||||
int vcpu_id = pcpu_find(cpu)->pc_vcpu_id; | int vcpu_id = pcpu_find(cpu)->pc_vcpu_id; | ||||
struct xenisrc *isrc; | struct xenisrc *isrc; | ||||
struct evtchn_bind_ipi bind_ipi = { .vcpu = vcpu_id }; | struct evtchn_bind_ipi bind_ipi = { .vcpu = vcpu_id }; | ||||
Show All 39 Lines | #ifdef SMP | ||||
* responsible for closing it automatically on unbind. | * responsible for closing it automatically on unbind. | ||||
*/ | */ | ||||
isrc->xi_close = 1; | isrc->xi_close = 1; | ||||
return (0); | return (0); | ||||
#else | #else | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
#endif | #endif | ||||
} | } | ||||
#endif | |||||
int | int | ||||
xen_intr_describe(xen_intr_handle_t port_handle, const char *fmt, ...) | xen_intr_describe(xen_intr_handle_t port_handle, const char *fmt, ...) | ||||
{ | { | ||||
char descr[MAXCOMLEN + 1]; | char descr[MAXCOMLEN + 1]; | ||||
struct xenisrc *isrc; | struct xenisrc *isrc; | ||||
va_list ap; | va_list ap; | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |