Deleted Added
full compact
if_bwnvar.h (299790) if_bwnvar.h (300075)
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
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

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

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
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

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

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/bwn/if_bwnvar.h 299790 2016-05-14 23:38:21Z adrian $
29 * $FreeBSD: head/sys/dev/bwn/if_bwnvar.h 300075 2016-05-17 20:18:23Z adrian $
30 */
31
32#ifndef _IF_BWNVAR_H
33#define _IF_BWNVAR_H
34
35struct siba_dev_softc;
36struct bwn_softc;
37struct bwn_mac;

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

54 struct timespec ts; \
55 nanouptime(&ts); \
56 (v) = ts.tv_nsec / 1000000 + ts.tv_sec * 1000; \
57} while (0)
58#define BWN_ISOLDFMT(mac) ((mac)->mac_fw.rev <= 351)
59#define BWN_TSSI2DBM(num, den) \
60 ((int32_t)((num < 0) ? num / den : (num + den / 2) / den))
61#define BWN_HDRSIZE(mac) bwn_tx_hdrsize(mac)
30 */
31
32#ifndef _IF_BWNVAR_H
33#define _IF_BWNVAR_H
34
35struct siba_dev_softc;
36struct bwn_softc;
37struct bwn_mac;

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

54 struct timespec ts; \
55 nanouptime(&ts); \
56 (v) = ts.tv_nsec / 1000000 + ts.tv_sec * 1000; \
57} while (0)
58#define BWN_ISOLDFMT(mac) ((mac)->mac_fw.rev <= 351)
59#define BWN_TSSI2DBM(num, den) \
60 ((int32_t)((num < 0) ? num / den : (num + den / 2) / den))
61#define BWN_HDRSIZE(mac) bwn_tx_hdrsize(mac)
62#define BWN_MAXTXHDRSIZE (112 + (sizeof(struct bwn_plcp6)))
62
63#define BWN_PIO_COOKIE(tq, tp) \
64 ((uint16_t)((((uint16_t)tq->tq_index + 1) << 12) | tp->tp_index))
65#define BWN_DMA_COOKIE(dr, slot) \
66 ((uint16_t)(((uint16_t)dr->dr_index + 1) << 12) | (uint16_t)slot)
67#define BWN_READ_2(mac, o) (siba_read_2(mac->mac_sc->sc_dev, o))
68#define BWN_READ_4(mac, o) (siba_read_4(mac->mac_sc->sc_dev, o))
69#define BWN_WRITE_2(mac, o, v) \

--- 1059 unchanged lines hidden ---
63
64#define BWN_PIO_COOKIE(tq, tp) \
65 ((uint16_t)((((uint16_t)tq->tq_index + 1) << 12) | tp->tp_index))
66#define BWN_DMA_COOKIE(dr, slot) \
67 ((uint16_t)(((uint16_t)dr->dr_index + 1) << 12) | (uint16_t)slot)
68#define BWN_READ_2(mac, o) (siba_read_2(mac->mac_sc->sc_dev, o))
69#define BWN_READ_4(mac, o) (siba_read_4(mac->mac_sc->sc_dev, o))
70#define BWN_WRITE_2(mac, o, v) \

--- 1059 unchanged lines hidden ---