Remove support for FreeBSD 7 and 8
Also, unifdef -DSFXGE_HAVE_DESCRIBE_INTR since it's now always defined.
This commit is contained in:
parent
77632fc70f
commit
adc1d71c8b
@ -72,11 +72,6 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#include "efx_types.h"
|
#include "efx_types.h"
|
||||||
|
|
||||||
/* Common code requires this */
|
|
||||||
#if __FreeBSD_version < 800068
|
|
||||||
#define memmove(d, s, l) bcopy(s, d, l)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef B_FALSE
|
#ifndef B_FALSE
|
||||||
#define B_FALSE FALSE
|
#define B_FALSE FALSE
|
||||||
#endif
|
#endif
|
||||||
@ -88,7 +83,7 @@ extern "C" {
|
|||||||
#define ISP2(x) (((x) & ((x) - 1)) == 0)
|
#define ISP2(x) (((x) & ((x) - 1)) == 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__x86_64__) && __FreeBSD_version >= 1000000
|
#if defined(__x86_64__)
|
||||||
|
|
||||||
#define SFXGE_USE_BUS_SPACE_8 1
|
#define SFXGE_USE_BUS_SPACE_8 1
|
||||||
|
|
||||||
|
@ -93,11 +93,6 @@
|
|||||||
#define IFM_40G_CR4 IFM_UNKNOWN
|
#define IFM_40G_CR4 IFM_UNKNOWN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (__FreeBSD_version >= 800501 && __FreeBSD_version < 900000) || \
|
|
||||||
__FreeBSD_version >= 900003
|
|
||||||
#define SFXGE_HAVE_DESCRIBE_INTR
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IFM_ETH_RXPAUSE
|
#ifdef IFM_ETH_RXPAUSE
|
||||||
#define SFXGE_HAVE_PAUSE_MEDIAOPTS
|
#define SFXGE_HAVE_PAUSE_MEDIAOPTS
|
||||||
#endif
|
#endif
|
||||||
|
@ -195,11 +195,9 @@ sfxge_intr_bus_enable(struct sfxge_softc *sc)
|
|||||||
sc->evq[index], &table[index].eih_tag)) != 0) {
|
sc->evq[index], &table[index].eih_tag)) != 0) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
#ifdef SFXGE_HAVE_DESCRIBE_INTR
|
|
||||||
if (intr->n_alloc > 1)
|
if (intr->n_alloc > 1)
|
||||||
bus_describe_intr(sc->dev, table[index].eih_res,
|
bus_describe_intr(sc->dev, table[index].eih_res,
|
||||||
table[index].eih_tag, "%d", index);
|
table[index].eih_tag, "%d", index);
|
||||||
#endif
|
|
||||||
#ifdef RSS
|
#ifdef RSS
|
||||||
bus_bind_intr(sc->dev, table[index].eih_res,
|
bus_bind_intr(sc->dev, table[index].eih_res,
|
||||||
rss_getcpu(index));
|
rss_getcpu(index));
|
||||||
|
Loading…
Reference in New Issue
Block a user