Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/fe/if_fe_isa.c
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | fe_msel_fmv184(struct fe_softc *sc) | ||||
fe_outb(sc, FE_BMPR13, sc->proto_bmpr13 | FE_B13_PORT_AUI); | fe_outb(sc, FE_BMPR13, sc->proto_bmpr13 | FE_B13_PORT_AUI); | ||||
} | } | ||||
static int | static int | ||||
fe_probe_fmv(device_t dev) | fe_probe_fmv(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
int n; | int n; | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
static u_short const irqmap [ 4 ] = { 3, 7, 10, 15 }; | static u_short const irqmap [ 4 ] = { 3, 7, 10, 15 }; | ||||
static struct fe_simple_probe_struct const probe_table [] = { | static struct fe_simple_probe_struct const probe_table [] = { | ||||
{ FE_DLCR2, 0x71, 0x00 }, | { FE_DLCR2, 0x71, 0x00 }, | ||||
{ FE_DLCR4, 0x08, 0x00 }, | { FE_DLCR4, 0x08, 0x00 }, | ||||
{ FE_FMV0, 0x78, 0x50 }, /* ERRDY+PRRDY */ | { FE_FMV0, 0x78, 0x50 }, /* ERRDY+PRRDY */ | ||||
▲ Show 20 Lines • Show All 478 Lines • ▼ Show 20 Lines | |||||
* Probe and initialization for all JLI implementations. | * Probe and initialization for all JLI implementations. | ||||
*/ | */ | ||||
static int | static int | ||||
fe_probe_jli(device_t dev) | fe_probe_jli(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
int i, n, error, xirq; | int i, n, error, xirq; | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
u_char eeprom [JLI_EEPROM_SIZE]; | u_char eeprom [JLI_EEPROM_SIZE]; | ||||
u_short const * irqmap; | u_short const * irqmap; | ||||
static u_short const baseaddr [8] = | static u_short const baseaddr [8] = | ||||
{ 0x260, 0x280, 0x2A0, 0x240, 0x340, 0x320, 0x380, 0x300 }; | { 0x260, 0x280, 0x2A0, 0x240, 0x340, 0x320, 0x380, 0x300 }; | ||||
static struct fe_simple_probe_struct const probe_table [] = { | static struct fe_simple_probe_struct const probe_table [] = { | ||||
{ FE_DLCR1, 0x20, 0x00 }, | { FE_DLCR1, 0x20, 0x00 }, | ||||
{ FE_DLCR2, 0x50, 0x00 }, | { FE_DLCR2, 0x50, 0x00 }, | ||||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | #endif | ||||
return 0; | return 0; | ||||
} | } | ||||
/* Probe for TDK LAK-AX031, which is an SSi 78Q8377A based board. */ | /* Probe for TDK LAK-AX031, which is an SSi 78Q8377A based board. */ | ||||
static int | static int | ||||
fe_probe_ssi(device_t dev) | fe_probe_ssi(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
u_char eeprom [SSI_EEPROM_SIZE]; | u_char eeprom [SSI_EEPROM_SIZE]; | ||||
static struct fe_simple_probe_struct probe_table [] = { | static struct fe_simple_probe_struct probe_table [] = { | ||||
{ FE_DLCR2, 0x08, 0x00 }, | { FE_DLCR2, 0x08, 0x00 }, | ||||
{ FE_DLCR4, 0x08, 0x00 }, | { FE_DLCR4, 0x08, 0x00 }, | ||||
{ 0 } | { 0 } | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Probe and initialization for TDK/LANX LAC-AX012/013 boards. | * Probe and initialization for TDK/LANX LAC-AX012/013 boards. | ||||
*/ | */ | ||||
static int | static int | ||||
fe_probe_lnx(device_t dev) | fe_probe_lnx(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
u_char eeprom [LNX_EEPROM_SIZE]; | u_char eeprom [LNX_EEPROM_SIZE]; | ||||
static struct fe_simple_probe_struct probe_table [] = { | static struct fe_simple_probe_struct probe_table [] = { | ||||
{ FE_DLCR2, 0x58, 0x00 }, | { FE_DLCR2, 0x58, 0x00 }, | ||||
{ FE_DLCR4, 0x08, 0x00 }, | { FE_DLCR4, 0x08, 0x00 }, | ||||
{ 0 } | { 0 } | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Probe and initialization for Gateway Communications' old cards. | * Probe and initialization for Gateway Communications' old cards. | ||||
*/ | */ | ||||
static int | static int | ||||
fe_probe_gwy(device_t dev) | fe_probe_gwy(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
static struct fe_simple_probe_struct probe_table [] = { | static struct fe_simple_probe_struct probe_table [] = { | ||||
/* { FE_DLCR2, 0x70, 0x00 }, */ | /* { FE_DLCR2, 0x70, 0x00 }, */ | ||||
{ FE_DLCR2, 0x58, 0x00 }, | { FE_DLCR2, 0x58, 0x00 }, | ||||
{ FE_DLCR4, 0x08, 0x00 }, | { FE_DLCR4, 0x08, 0x00 }, | ||||
{ 0 } | { 0 } | ||||
}; | }; | ||||
Show All 36 Lines | |||||
} | } | ||||
/* Probe and initialization for Ungermann-Bass Network | /* Probe and initialization for Ungermann-Bass Network | ||||
K.K. "Access/PC" boards. */ | K.K. "Access/PC" boards. */ | ||||
static int | static int | ||||
fe_probe_ubn(device_t dev) | fe_probe_ubn(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
#if 0 | #if 0 | ||||
u_char sum; | u_char sum; | ||||
#endif | #endif | ||||
static struct fe_simple_probe_struct const probe_table [] = { | static struct fe_simple_probe_struct const probe_table [] = { | ||||
{ FE_DLCR2, 0x58, 0x00 }, | { FE_DLCR2, 0x58, 0x00 }, | ||||
{ FE_DLCR4, 0x08, 0x00 }, | { FE_DLCR4, 0x08, 0x00 }, | ||||
{ 0 } | { 0 } | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |