Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/if_hnvar.h
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | hn_nvs_send_sglist(struct vmbus_channel *chan, struct vmbus_gpa sg[], int sglen, | ||||
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; | struct rndis_packet_msg; | ||||
void hn_nvs_sent_xact(struct hn_send_ctx *sndc, struct hn_softc *sc, | |||||
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); | ||||
int hn_rndis_attach(struct hn_softc *sc); | |||||
int hn_rndis_conf_rss(struct hn_softc *sc, int nchan); | |||||
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_rndis_get_rsscaps(struct hn_softc *sc, int *rxr_cnt); | |||||
int hn_rndis_get_eaddr(struct hn_softc *sc, uint8_t *eaddr); | int hn_rndis_get_eaddr(struct hn_softc *sc, uint8_t *eaddr); | ||||
int hn_rndis_get_linkstatus(struct hn_softc *sc, | int hn_rndis_get_linkstatus(struct hn_softc *sc, | ||||
uint32_t *link_status); | uint32_t *link_status); | ||||
int hn_nvs_attach(struct hn_softc *sc, int mtu); | |||||
int hn_nvs_alloc_subchans(struct hn_softc *sc, int *nsubch); | int hn_nvs_alloc_subchans(struct hn_softc *sc, int *nsubch); | ||||
void hn_nvs_sent_xact(struct hn_send_ctx *sndc, struct hn_softc *sc, | |||||
struct vmbus_channel *chan, const void *data, int dlen); | |||||
int hn_rxpkt(struct hn_rx_ring *rxr, const void *data, int dlen, | int hn_rxpkt(struct hn_rx_ring *rxr, const void *data, int dlen, | ||||
const struct hn_recvinfo *info); | const struct hn_recvinfo *info); | ||||
void hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr); | 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_ */ |