Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/fe/if_fe_cbus.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
fe_outb(sc, FE_RE1000_IRQCONF, sc->priv_info); | fe_outb(sc, FE_RE1000_IRQCONF, sc->priv_info); | ||||
} | } | ||||
static int | static int | ||||
fe_probe_re1000(device_t dev) | fe_probe_re1000(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
int i, n; | int i, n; | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
u_char sum; | u_char sum; | ||||
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 83 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Probe for Allied-Telesis RE1000Plus/ME1500 series. | * Probe for Allied-Telesis RE1000Plus/ME1500 series. | ||||
*/ | */ | ||||
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, xirq, error; | int i, n, xirq, error; | ||||
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] = | ||||
{ 0x1D6, 0x1D8, 0x1DA, 0x1D4, 0x0D4, 0x0D2, 0x0D8, 0x0D0 }; | { 0x1D6, 0x1D8, 0x1DA, 0x1D4, 0x0D4, 0x0D2, 0x0D8, 0x0D0 }; | ||||
static struct fe_simple_probe_struct const probe_table [] = { | static struct fe_simple_probe_struct const probe_table [] = { | ||||
/* { FE_DLCR1, 0x20, 0x00 }, Doesn't work. */ | /* { FE_DLCR1, 0x20, 0x00 }, Doesn't work. */ | ||||
{ FE_DLCR2, 0x50, 0x00 }, | { FE_DLCR2, 0x50, 0x00 }, | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
/* Enable interrupt? FIXME. */ | /* Enable interrupt? FIXME. */ | ||||
fe_outb(sc, FE_CNET9NE_INTR, 0x10); | fe_outb(sc, FE_CNET9NE_INTR, 0x10); | ||||
} | } | ||||
static int | static int | ||||
fe_probe_cnet9ne (device_t dev) | fe_probe_cnet9ne (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, 0x58, 0x00 }, | { FE_DLCR2, 0x58, 0x00 }, | ||||
{ FE_DLCR4, 0x08, 0x00 }, | { FE_DLCR4, 0x08, 0x00 }, | ||||
{ 0 } | { 0 } | ||||
}; | }; | ||||
/* See if the specified I/O address is possible for C-NET(9N)E. */ | /* See if the specified I/O address is possible for C-NET(9N)E. */ | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Probe for Contec C-NET(98)P2 series. | * Probe for Contec C-NET(98)P2 series. | ||||
* (Logitec LAN-98TP/LAN-98T25P - parhaps) | * (Logitec LAN-98TP/LAN-98T25P - parhaps) | ||||
*/ | */ | ||||
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 } | ||||
}; | }; | ||||
static u_short const irqmap[] = { | static u_short const irqmap[] = { | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Probe for TDK LAC-98012/013/025/9N011 - parhaps. | * Probe for TDK LAC-98012/013/025/9N011 - parhaps. | ||||
*/ | */ | ||||
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 84 Lines • ▼ Show 20 Lines | |||||
* Probe for Ungermann-Bass Access/PC N98C+(Model 85152). | * Probe for Ungermann-Bass Access/PC N98C+(Model 85152). | ||||
*/ | */ | ||||
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_char sum, save7; | u_char sum, save7; | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
int i; | int i; | ||||
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 } | ||||
}; | }; | ||||
/* See if the specified I/O address is possible for Access/PC. */ | /* See if the specified I/O address is possible for Access/PC. */ | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
* Probe for RATOC REX-9880/81/82/83 series. | * Probe for RATOC REX-9880/81/82/83 series. | ||||
*/ | */ | ||||
static int | static int | ||||
fe_probe_rex(device_t dev) | fe_probe_rex(device_t dev) | ||||
{ | { | ||||
struct fe_softc *sc = device_get_softc(dev); | struct fe_softc *sc = device_get_softc(dev); | ||||
int i; | int i; | ||||
u_long iobase, irq; | rman_res_t iobase, irq; | ||||
u_char eeprom [REX_EEPROM_SIZE]; | u_char eeprom [REX_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 42 Lines • Show Last 20 Lines |