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

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

23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef __BXE_H__
28#define __BXE_H__
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

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

23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#ifndef __BXE_H__
28#define __BXE_H__
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 296071 2016-02-25 22:44:00Z davidcs $");
31__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 297155 2016-03-21 18:48:20Z davidcs $");
32
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/lock.h>
37#include <sys/mutex.h>
38#include <sys/sx.h>
39#include <sys/module.h>

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

2266#define CATC_TRIGGER(sc, data) REG_WR((sc), 0x2000, (data));
2267#define CATC_TRIGGER_START(sc) CATC_TRIGGER((sc), 0xcafecafe)
2268
2269void bxe_dump_mem(struct bxe_softc *sc, char *tag,
2270 uint8_t *mem, uint32_t len);
2271void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag,
2272 struct mbuf *m, uint8_t contents);
2273
32
33#include <sys/param.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/lock.h>
37#include <sys/mutex.h>
38#include <sys/sx.h>
39#include <sys/module.h>

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

2266#define CATC_TRIGGER(sc, data) REG_WR((sc), 0x2000, (data));
2267#define CATC_TRIGGER_START(sc) CATC_TRIGGER((sc), 0xcafecafe)
2268
2269void bxe_dump_mem(struct bxe_softc *sc, char *tag,
2270 uint8_t *mem, uint32_t len);
2271void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag,
2272 struct mbuf *m, uint8_t contents);
2273
2274
2275#if __FreeBSD_version >= 800000
2276#if __FreeBSD_version >= 1000000
2277#define BXE_SET_FLOWID(m) M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE)
2278#define BXE_VALID_FLOWID(m) (M_HASHTYPE_GET(m) != M_HASHTYPE_NONE)
2279#else
2280#define BXE_VALID_FLOWID(m) ((m->m_flags & M_FLOWID) != 0)
2281#define BXE_SET_FLOWID(m) m->m_flags |= M_FLOWID
2282#endif
2283#endif /* #if __FreeBSD_version >= 800000 */
2284
2274/***********/
2275/* INLINES */
2276/***********/
2277
2278static inline uint32_t
2279reg_poll(struct bxe_softc *sc,
2280 uint32_t reg,
2281 uint32_t expected,

--- 163 unchanged lines hidden ---
2285/***********/
2286/* INLINES */
2287/***********/
2288
2289static inline uint32_t
2290reg_poll(struct bxe_softc *sc,
2291 uint32_t reg,
2292 uint32_t expected,

--- 163 unchanged lines hidden ---