1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Add support for IC Book Ironclad Pro/Lite 8-port cards.

Sponsired by:	IC Book Labs
MFC After:	2 weeks
This commit is contained in:
Maxim Sobolev 2003-04-30 22:15:47 +00:00
parent 5dacb0cdba
commit e9442e03ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114344
2 changed files with 36 additions and 2 deletions

View File

@ -140,7 +140,7 @@ puc_probe_ilr(struct puc_softc *sc, struct resource *res)
case PUC_ILR_TYPE_DIGI:
sc->ilr_st = rman_get_bustag(res);
sc->ilr_sh = rman_get_bushandle(res);
for (i = 0; i < 2; i++) {
for (i = 0; i < 2 && sc->sc_desc->ilr_offset[i] != 0; i++) {
t1 = bus_space_read_1(sc->ilr_st, sc->ilr_sh,
sc->sc_desc->ilr_offset[i]);
t1 = ~t1;
@ -353,7 +353,7 @@ puc_ilr_read(struct puc_softc *sc)
mask = 0;
switch (sc->sc_desc->ilr_type) {
case PUC_ILR_TYPE_DIGI:
for (i = 1; i >= 0; i--) {
for (i = 1; i >= 0 && sc->sc_desc->ilr_offset[i] != 0; i--) {
mask = (mask << 8) | (bus_space_read_1(sc->ilr_st,
sc->ilr_sh, sc->sc_desc->ilr_offset[i]) & 0xff);
}

View File

@ -1008,6 +1008,40 @@ const struct puc_device_description puc_devices[] = {
},
},
{ "IC Book Labs Ironclad x8 Lite",
NULL,
{ 0xb00c, 0x041c, 0, 0 },
{ 0xffff, 0xffff, 0, 0 },
{
{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x20, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x28, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x30, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x38, COM_FREQ }
},
PUC_ILR_TYPE_DIGI, { 0x07 },
},
{ "IC Book Labs Ironclad x8 Pro",
NULL,
{ 0xb00c, 0x051c, 0, 0 },
{ 0xffff, 0xffff, 0, 0 },
{
{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x20, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x28, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x30, COM_FREQ },
{ PUC_PORT_TYPE_COM, 0x10, 0x38, COM_FREQ }
},
PUC_ILR_TYPE_DIGI, { 0x07 },
},
{ "IC Book Labs Dreadnought x16 Lite",
NULL,
{ 0xb00c, 0x091c, 0, 0 },