Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/vmbus/vmbus_var.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
struct vmbus_softc { | struct vmbus_softc { | ||||
void (*vmbus_event_proc)(struct vmbus_softc *, int); | void (*vmbus_event_proc)(struct vmbus_softc *, int); | ||||
u_long *vmbus_tx_evtflags; | u_long *vmbus_tx_evtflags; | ||||
/* event flags to host */ | /* event flags to host */ | ||||
void *vmbus_mnf2; /* monitored by host */ | void *vmbus_mnf2; /* monitored by host */ | ||||
u_long *vmbus_rx_evtflags; | u_long *vmbus_rx_evtflags; | ||||
/* compat evtflgs from host */ | /* compat evtflgs from host */ | ||||
struct vmbus_msghc_ctx *vmbus_msg_hc; | |||||
struct vmbus_pcpu_data vmbus_pcpu[MAXCPU]; | struct vmbus_pcpu_data vmbus_pcpu[MAXCPU]; | ||||
/* Rarely used fields */ | /* Rarely used fields */ | ||||
device_t vmbus_dev; | device_t vmbus_dev; | ||||
int vmbus_idtvec; | int vmbus_idtvec; | ||||
uint32_t vmbus_flags; /* see VMBUS_FLAG_ */ | uint32_t vmbus_flags; /* see VMBUS_FLAG_ */ | ||||
/* Shared memory for vmbus_{rx,tx}_evtflags */ | /* Shared memory for vmbus_{rx,tx}_evtflags */ | ||||
Show All 23 Lines | |||||
} | } | ||||
#define VMBUS_PCPU_GET(sc, field, cpu) (sc)->vmbus_pcpu[(cpu)].field | #define VMBUS_PCPU_GET(sc, field, cpu) (sc)->vmbus_pcpu[(cpu)].field | ||||
#define VMBUS_PCPU_PTR(sc, field, cpu) &(sc)->vmbus_pcpu[(cpu)].field | #define VMBUS_PCPU_PTR(sc, field, cpu) &(sc)->vmbus_pcpu[(cpu)].field | ||||
struct hv_vmbus_channel; | struct hv_vmbus_channel; | ||||
struct trapframe; | struct trapframe; | ||||
struct vmbus_message; | struct vmbus_message; | ||||
struct vmbus_msghc; | |||||
void vmbus_on_channel_open(const struct hv_vmbus_channel *); | void vmbus_on_channel_open(const struct hv_vmbus_channel *); | ||||
void vmbus_event_proc(struct vmbus_softc *, int); | void vmbus_event_proc(struct vmbus_softc *, int); | ||||
void vmbus_event_proc_compat(struct vmbus_softc *, int); | void vmbus_event_proc_compat(struct vmbus_softc *, int); | ||||
void vmbus_handle_intr(struct trapframe *); | void vmbus_handle_intr(struct trapframe *); | ||||
void vmbus_et_intr(struct trapframe *); | void vmbus_et_intr(struct trapframe *); | ||||
void vmbus_chan_msgproc(struct vmbus_softc *, const struct vmbus_message *); | void vmbus_chan_msgproc(struct vmbus_softc *, const struct vmbus_message *); | ||||
struct vmbus_msghc *vmbus_msghc_get(struct vmbus_softc *, size_t); | |||||
void vmbus_msghc_put(struct vmbus_softc *, struct vmbus_msghc *); | |||||
void *vmbus_msghc_dataptr(struct vmbus_msghc *); | |||||
int vmbus_msghc_exec_noresult(struct vmbus_msghc *); | |||||
int vmbus_msghc_exec(struct vmbus_softc *, struct vmbus_msghc *); | |||||
const struct vmbus_message *vmbus_msghc_wait_result(struct vmbus_softc *, | |||||
struct vmbus_msghc *); | |||||
void vmbus_msghc_wakeup(struct vmbus_softc *, const struct vmbus_message *); | |||||
#endif /* !_VMBUS_VAR_H_ */ | #endif /* !_VMBUS_VAR_H_ */ |