Deleted Added
full compact
bxe.h (266979) bxe.h (268854)
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 266979 2014-06-02 18:54:45Z marcel $");
31__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 268854 2014-07-18 20:04:11Z 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>

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

2296 ## args); \
2297 } else { \
2298 device_printf((sc)->dev, \
2299 "ERROR: " format, \
2300 ## args); \
2301 } \
2302 } while(0)
2303
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>

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

2296 ## args); \
2297 } else { \
2298 device_printf((sc)->dev, \
2299 "ERROR: " format, \
2300 ## args); \
2301 } \
2302 } while(0)
2303
2304#ifdef ECORE_STOP_ON_ERROR
2305
2304#define bxe_panic(sc, msg) \
2305 do { \
2306 panic msg; \
2307 } while (0)
2308
2306#define bxe_panic(sc, msg) \
2307 do { \
2308 panic msg; \
2309 } while (0)
2310
2311#else
2312
2313#define bxe_panic(sc, msg) \
2314 device_printf((sc)->dev, "%s (%s,%d)\n", __FUNCTION__, __FILE__, __LINE__);
2315
2316#endif
2317
2309#define CATC_TRIGGER(sc, data) REG_WR((sc), 0x2000, (data));
2310#define CATC_TRIGGER_START(sc) CATC_TRIGGER((sc), 0xcafecafe)
2311
2312void bxe_dump_mem(struct bxe_softc *sc, char *tag,
2313 uint8_t *mem, uint32_t len);
2314void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag,
2315 struct mbuf *m, uint8_t contents);
2316

--- 177 unchanged lines hidden ---
2318#define CATC_TRIGGER(sc, data) REG_WR((sc), 0x2000, (data));
2319#define CATC_TRIGGER_START(sc) CATC_TRIGGER((sc), 0xcafecafe)
2320
2321void bxe_dump_mem(struct bxe_softc *sc, char *tag,
2322 uint8_t *mem, uint32_t len);
2323void bxe_dump_mbuf_data(struct bxe_softc *sc, char *pTag,
2324 struct mbuf *m, uint8_t contents);
2325

--- 177 unchanged lines hidden ---