Deleted Added
full compact
if_hnvar.h (307613) if_hnvar.h (307614)
1/*-
2 * Copyright (c) 2016 Microsoft Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2016 Microsoft Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/11/sys/dev/hyperv/netvsc/if_hnvar.h 307613 2016-10-19 07:24:32Z sephe $
26 * $FreeBSD: stable/11/sys/dev/hyperv/netvsc/if_hnvar.h 307614 2016-10-19 07:27:45Z sephe $
27 */
28
29#ifndef _IF_HNVAR_H_
30#define _IF_HNVAR_H_
31
32#include <sys/param.h>
33
34#include <dev/hyperv/include/vmbus.h>

--- 98 unchanged lines hidden (view full) ---

133void hn_nvs_detach(struct hn_softc *sc);
134int hn_nvs_alloc_subchans(struct hn_softc *sc, int *nsubch);
135void hn_nvs_sent_xact(struct hn_send_ctx *sndc, struct hn_softc *sc,
136 struct vmbus_channel *chan, const void *data, int dlen);
137
138int hn_rxpkt(struct hn_rx_ring *rxr, const void *data, int dlen,
139 const struct hn_recvinfo *info);
140void hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr);
27 */
28
29#ifndef _IF_HNVAR_H_
30#define _IF_HNVAR_H_
31
32#include <sys/param.h>
33
34#include <dev/hyperv/include/vmbus.h>

--- 98 unchanged lines hidden (view full) ---

133void hn_nvs_detach(struct hn_softc *sc);
134int hn_nvs_alloc_subchans(struct hn_softc *sc, int *nsubch);
135void hn_nvs_sent_xact(struct hn_send_ctx *sndc, struct hn_softc *sc,
136 struct vmbus_channel *chan, const void *data, int dlen);
137
138int hn_rxpkt(struct hn_rx_ring *rxr, const void *data, int dlen,
139 const struct hn_recvinfo *info);
140void hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr);
141void hn_link_status_update(struct hn_softc *sc);
141
142extern struct hn_send_ctx hn_send_ctx_none;
143
144#endif /* !_IF_HNVAR_H_ */
142
143extern struct hn_send_ctx hn_send_ctx_none;
144
145#endif /* !_IF_HNVAR_H_ */