Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/if_hnvar.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | hn_nvs_send_sglist(struct vmbus_channel *chan, struct vmbus_gpa sg[], int sglen, | ||||
void *nvs_msg, int nvs_msglen, struct hn_send_ctx *sndc) | void *nvs_msg, int nvs_msglen, struct hn_send_ctx *sndc) | ||||
{ | { | ||||
return (vmbus_chan_send_sglist(chan, sg, sglen, nvs_msg, nvs_msglen, | return (vmbus_chan_send_sglist(chan, sg, sglen, nvs_msg, nvs_msglen, | ||||
(uint64_t)(uintptr_t)sndc)); | (uint64_t)(uintptr_t)sndc)); | ||||
} | } | ||||
struct vmbus_xact; | struct vmbus_xact; | ||||
struct rndis_packet_msg; | |||||
const void *hn_nvs_xact_execute(struct hn_softc *sc, | const void *hn_nvs_xact_execute(struct hn_softc *sc, | ||||
struct vmbus_xact *xact, void *req, int reqlen, | struct vmbus_xact *xact, void *req, int reqlen, | ||||
size_t *resp_len, uint32_t type); | size_t *resp_len, uint32_t type); | ||||
void hn_nvs_sent_xact(struct hn_send_ctx *sndc, struct hn_softc *sc, | void hn_nvs_sent_xact(struct hn_send_ctx *sndc, struct hn_softc *sc, | ||||
struct vmbus_channel *chan, const void *data, int dlen); | struct vmbus_channel *chan, const void *data, int dlen); | ||||
uint32_t hn_chim_alloc(struct hn_softc *sc); | uint32_t hn_chim_alloc(struct hn_softc *sc); | ||||
void hn_chim_free(struct hn_softc *sc, uint32_t chim_idx); | void hn_chim_free(struct hn_softc *sc, uint32_t chim_idx); | ||||
void *hn_rndis_pktinfo_append(struct rndis_packet_msg *, | void *hn_rndis_pktinfo_append(struct rndis_packet_msg *, | ||||
size_t pktsize, size_t pi_dlen, uint32_t pi_type); | size_t pktsize, size_t pi_dlen, uint32_t pi_type); | ||||
int hn_rxpkt(struct hn_rx_ring *rxr, const void *data, int dlen, | |||||
const struct hn_recvinfo *info); | |||||
void hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr); | |||||
extern struct hn_send_ctx hn_send_ctx_none; | extern struct hn_send_ctx hn_send_ctx_none; | ||||
#endif /* !_IF_HNVAR_H_ */ | #endif /* !_IF_HNVAR_H_ */ |