2002-05-03 18:12:59 +04:00
|
|
|
/* $NetBSD: isic_pci_elsa_qs1p.c,v 1.10 2002/05/03 14:12:59 drochner Exp $ */
|
2002-04-19 14:55:46 +04:00
|
|
|
|
2001-01-05 15:49:52 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
*---------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* isic - I4B Siemens ISDN Chipset Driver for ELSA Quickstep 1000pro PCI
|
|
|
|
* =====================================================================
|
|
|
|
*
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
|
2001-11-13 10:48:40 +03:00
|
|
|
#include <sys/cdefs.h>
|
2002-05-03 18:12:59 +04:00
|
|
|
__KERNEL_RCSID(0, "$NetBSD: isic_pci_elsa_qs1p.c,v 1.10 2002/05/03 14:12:59 drochner Exp $");
|
2001-01-05 15:49:52 +03:00
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/kernel.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/mbuf.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <net/if.h>
|
|
|
|
#include <sys/callout.h>
|
|
|
|
|
|
|
|
#include <machine/bus.h>
|
|
|
|
#include <sys/device.h>
|
|
|
|
|
|
|
|
#include <dev/pci/pcireg.h>
|
|
|
|
#include <dev/pci/pcivar.h>
|
|
|
|
#include <dev/pci/pcidevs.h>
|
|
|
|
|
|
|
|
#include <netisdn/i4b_debug.h>
|
|
|
|
#include <netisdn/i4b_ioctl.h>
|
|
|
|
#include <netisdn/i4b_global.h>
|
2002-03-24 23:35:43 +03:00
|
|
|
#include <netisdn/i4b_debug.h>
|
|
|
|
#include <netisdn/i4b_l2.h>
|
2001-01-05 15:49:52 +03:00
|
|
|
#include <netisdn/i4b_l1l2.h>
|
|
|
|
#include <netisdn/i4b_mbuf.h>
|
|
|
|
|
2001-02-21 01:24:31 +03:00
|
|
|
#include <dev/ic/isic_l1.h>
|
|
|
|
#include <dev/ic/isac.h>
|
|
|
|
#include <dev/ic/hscx.h>
|
|
|
|
#include <dev/ic/ipac.h>
|
2001-02-18 12:37:19 +03:00
|
|
|
#include <dev/pci/isic_pci.h>
|
2001-01-05 15:49:52 +03:00
|
|
|
|
|
|
|
/* masks for register encoded in base addr */
|
|
|
|
|
|
|
|
#define ELSA_BASE_MASK 0x0ffff
|
|
|
|
#define ELSA_OFF_MASK 0xf0000
|
|
|
|
|
|
|
|
/* register id's to be encoded in base addr */
|
|
|
|
|
|
|
|
#define ELSA_IDISAC 0x00000
|
|
|
|
#define ELSA_IDHSCXA 0x10000
|
|
|
|
#define ELSA_IDHSCXB 0x20000
|
|
|
|
#define ELSA_IDIPAC 0x40000
|
|
|
|
|
|
|
|
/* offsets from base address */
|
|
|
|
|
|
|
|
#define ELSA_OFF_ALE 0x00
|
|
|
|
#define ELSA_OFF_RW 0x01
|
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
/* LED values */
|
|
|
|
#define ELSA_NO_LED 0xff
|
|
|
|
#define ELSA_GREEN_LED 0x40
|
|
|
|
#define ELSA_YELLOW_LED 0x80
|
|
|
|
|
2001-01-11 00:41:36 +03:00
|
|
|
#define ELSA_PORT0_MEM_MAPOFF PCI_MAPREG_START
|
|
|
|
#define ELSA_PORT0_IO_MAPOFF PCI_MAPREG_START+4
|
2001-01-05 15:49:52 +03:00
|
|
|
#define ELSA_PORT1_MAPOFF PCI_MAPREG_START+12
|
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
|
|
|
|
static void elsa_cmd_req(struct isic_softc *sc, int cmd, void *data);
|
|
|
|
static void elsa_led_handler(void *token);
|
|
|
|
|
2001-01-05 15:49:52 +03:00
|
|
|
/*---------------------------------------------------------------------------*
|
|
|
|
* ELSA QuickStep 1000pro/PCI ISAC get fifo routine
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
static void
|
2002-03-24 23:35:43 +03:00
|
|
|
eqs1pp_read_fifo(struct isic_softc *sc, int what, void *buf, size_t size)
|
2001-01-05 15:49:52 +03:00
|
|
|
{
|
|
|
|
bus_space_tag_t t = sc->sc_maps[1].t;
|
|
|
|
bus_space_handle_t h = sc->sc_maps[1].h;
|
|
|
|
switch (what) {
|
|
|
|
case ISIC_WHAT_ISAC:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_ISAC_OFF);
|
|
|
|
bus_space_read_multi_1(t, h, ELSA_OFF_RW, buf, size);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_HSCXA:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXA_OFF);
|
|
|
|
bus_space_read_multi_1(t, h, ELSA_OFF_RW, buf, size);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_HSCXB:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXB_OFF);
|
|
|
|
bus_space_read_multi_1(t, h, ELSA_OFF_RW, buf, size);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
|
|
* ELSA QuickStep 1000pro/PCI ISAC put fifo routine
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
static void
|
2002-03-24 23:35:43 +03:00
|
|
|
eqs1pp_write_fifo(struct isic_softc *sc, int what, const void *buf, size_t size)
|
2001-01-05 15:49:52 +03:00
|
|
|
{
|
|
|
|
bus_space_tag_t t = sc->sc_maps[1].t;
|
|
|
|
bus_space_handle_t h = sc->sc_maps[1].h;
|
|
|
|
switch (what) {
|
|
|
|
case ISIC_WHAT_ISAC:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_ISAC_OFF);
|
|
|
|
bus_space_write_multi_1(t, h, ELSA_OFF_RW, (u_int8_t*)buf, size);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_HSCXA:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXA_OFF);
|
|
|
|
bus_space_write_multi_1(t, h, ELSA_OFF_RW, (u_int8_t*)buf, size);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_HSCXB:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXB_OFF);
|
|
|
|
bus_space_write_multi_1(t, h, ELSA_OFF_RW, (u_int8_t*)buf, size);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
|
|
* ELSA QuickStep 1000pro/PCI ISAC put register routine
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
static void
|
2002-03-24 23:35:43 +03:00
|
|
|
eqs1pp_write_reg(struct isic_softc *sc, int what, bus_size_t offs, u_int8_t data)
|
2001-01-05 15:49:52 +03:00
|
|
|
{
|
|
|
|
bus_space_tag_t t = sc->sc_maps[1].t;
|
|
|
|
bus_space_handle_t h = sc->sc_maps[1].h;
|
|
|
|
switch (what) {
|
|
|
|
case ISIC_WHAT_ISAC:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_ISAC_OFF+offs);
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_RW, data);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_HSCXA:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXA_OFF+offs);
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_RW, data);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_HSCXB:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXB_OFF+offs);
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_RW, data);
|
|
|
|
break;
|
|
|
|
case ISIC_WHAT_IPAC:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_IPAC_OFF+offs);
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_RW, data);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
|
|
* ELSA QuickStep 1000pro/PCI ISAC get register routine
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
static u_int8_t
|
2002-03-24 23:35:43 +03:00
|
|
|
eqs1pp_read_reg(struct isic_softc *sc, int what, bus_size_t offs)
|
2001-01-05 15:49:52 +03:00
|
|
|
{
|
|
|
|
bus_space_tag_t t = sc->sc_maps[1].t;
|
|
|
|
bus_space_handle_t h = sc->sc_maps[1].h;
|
|
|
|
switch (what) {
|
|
|
|
case ISIC_WHAT_ISAC:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_ISAC_OFF+offs);
|
|
|
|
return bus_space_read_1(t, h, ELSA_OFF_RW);
|
|
|
|
case ISIC_WHAT_HSCXA:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXA_OFF+offs);
|
|
|
|
return bus_space_read_1(t, h, ELSA_OFF_RW);
|
|
|
|
case ISIC_WHAT_HSCXB:
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_HSCXB_OFF+offs);
|
|
|
|
return bus_space_read_1(t, h, ELSA_OFF_RW);
|
|
|
|
case ISIC_WHAT_IPAC:
|
|
|
|
{
|
|
|
|
bus_space_write_1(t, h, ELSA_OFF_ALE, IPAC_IPAC_OFF+offs);
|
|
|
|
return bus_space_read_1(t, h, ELSA_OFF_RW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
|
|
* isic_attach_Eqs1pp - attach for ELSA QuickStep 1000pro/PCI
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
void
|
|
|
|
isic_attach_Eqs1pp(psc, pa)
|
2002-03-24 23:35:43 +03:00
|
|
|
struct pci_isic_softc *psc;
|
2001-01-05 15:49:52 +03:00
|
|
|
struct pci_attach_args *pa;
|
|
|
|
{
|
2002-03-24 23:35:43 +03:00
|
|
|
struct isic_softc *sc = &psc->sc_isic;
|
2001-01-05 15:49:52 +03:00
|
|
|
|
|
|
|
/* setup io mappings */
|
|
|
|
sc->sc_num_mappings = 2;
|
|
|
|
MALLOC_MAPS(sc);
|
|
|
|
sc->sc_maps[0].size = 0;
|
2001-01-11 00:41:36 +03:00
|
|
|
if (pci_mapreg_map(pa, ELSA_PORT0_MEM_MAPOFF, PCI_MAPREG_TYPE_MEM, 0,
|
2002-03-27 10:39:35 +03:00
|
|
|
&sc->sc_maps[0].t, &sc->sc_maps[0].h, &psc->sc_base, &psc->sc_size) != 0
|
2001-01-11 00:41:36 +03:00
|
|
|
&& pci_mapreg_map(pa, ELSA_PORT0_IO_MAPOFF, PCI_MAPREG_TYPE_IO, 0,
|
2002-03-27 10:39:35 +03:00
|
|
|
&sc->sc_maps[0].t, &sc->sc_maps[0].h, &psc->sc_base, &psc->sc_size) != 0) {
|
2001-01-11 00:41:36 +03:00
|
|
|
printf("%s: can't map card registers\n", sc->sc_dev.dv_xname);
|
2001-01-05 15:49:52 +03:00
|
|
|
return;
|
|
|
|
}
|
2002-04-19 14:55:46 +04:00
|
|
|
|
|
|
|
/* PLX9050 Errata #1 */
|
|
|
|
if (PCI_REVISION(pa->pa_class) == 1 && psc->sc_base & 0x00000080) {
|
|
|
|
#ifdef DEBUG
|
|
|
|
printf("%s: no LCR access\n", sc->sc_dev.dv_xname);
|
|
|
|
#endif
|
|
|
|
} else
|
|
|
|
psc->flags |= PCIISIC_LCROK;
|
|
|
|
|
2001-01-05 15:49:52 +03:00
|
|
|
sc->sc_maps[1].size = 0;
|
|
|
|
if (pci_mapreg_map(pa, ELSA_PORT1_MAPOFF, PCI_MAPREG_TYPE_IO, 0,
|
|
|
|
&sc->sc_maps[1].t, &sc->sc_maps[1].h, NULL, NULL)) {
|
|
|
|
printf("%s: can't map i/o space\n", sc->sc_dev.dv_xname);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* setup access routines */
|
|
|
|
|
|
|
|
sc->clearirq = NULL;
|
|
|
|
sc->readreg = eqs1pp_read_reg;
|
|
|
|
sc->writereg = eqs1pp_write_reg;
|
|
|
|
|
|
|
|
sc->readfifo = eqs1pp_read_fifo;
|
|
|
|
sc->writefifo = eqs1pp_write_fifo;
|
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
sc->drv_command = elsa_cmd_req;
|
|
|
|
|
2001-01-05 15:49:52 +03:00
|
|
|
/* setup card type */
|
|
|
|
|
|
|
|
sc->sc_cardtyp = CARD_TYPEP_ELSAQS1PCI;
|
|
|
|
|
|
|
|
/* setup IOM bus type */
|
|
|
|
|
|
|
|
sc->sc_bustyp = BUS_TYPE_IOM2;
|
|
|
|
|
|
|
|
/* setup chip type = IPAC ! */
|
|
|
|
|
|
|
|
sc->sc_ipac = 1;
|
|
|
|
sc->sc_bfifolen = IPAC_BFIFO_LEN;
|
|
|
|
|
2002-04-18 19:32:30 +04:00
|
|
|
IPAC_WRITE(IPAC_ACFG, 0); /* outputs are open drain */
|
|
|
|
IPAC_WRITE(IPAC_AOE, /* aux 5..2 are inputs, 7, 6 outputs */
|
|
|
|
(IPAC_AOE_OE5 | IPAC_AOE_OE4 | IPAC_AOE_OE3 | IPAC_AOE_OE2));
|
|
|
|
IPAC_WRITE(IPAC_ATX, ELSA_NO_LED); /* set all output lines high */
|
2002-05-03 18:12:59 +04:00
|
|
|
callout_init(&((struct pci_isic_softc *)sc)->ledcallout);
|
2002-04-18 19:32:30 +04:00
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
/* disable any interrupts */
|
2002-04-18 19:32:30 +04:00
|
|
|
IPAC_WRITE(IPAC_MASK, 0xff);
|
2002-04-17 21:35:29 +04:00
|
|
|
bus_space_write_1(sc->sc_maps[0].t, sc->sc_maps[0].h, 0x4c, 0x01);
|
|
|
|
}
|
2001-01-05 15:49:52 +03:00
|
|
|
|
2002-04-19 14:55:46 +04:00
|
|
|
int
|
|
|
|
isic_intr_qs1p(vsc)
|
|
|
|
void *vsc;
|
|
|
|
{
|
|
|
|
struct pci_isic_softc *psc = vsc;
|
|
|
|
struct isic_softc *sc = &psc->sc_isic;
|
|
|
|
u_int32_t intcsr;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* if we are not hit by the PLX bug we can try a shortcut
|
|
|
|
* (should improve speed for shared IRQs)
|
|
|
|
*/
|
|
|
|
if (psc->flags & PCIISIC_LCROK) {
|
|
|
|
intcsr = bus_space_read_4(sc->sc_maps[0].t, sc->sc_maps[0].h,
|
|
|
|
0x4c /* INTCSR */);
|
|
|
|
if (!(intcsr & 0x4 /* LINTi1STAT */))
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (isicintr(sc));
|
|
|
|
}
|
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
static void
|
|
|
|
elsa_cmd_req(struct isic_softc *sc, int cmd, void *data)
|
|
|
|
{
|
2002-05-03 18:12:59 +04:00
|
|
|
int s, v;
|
|
|
|
struct pci_isic_softc *psc = (struct pci_isic_softc *)sc;
|
2002-04-17 21:35:29 +04:00
|
|
|
|
|
|
|
switch (cmd) {
|
|
|
|
case CMR_DOPEN:
|
|
|
|
s = splnet();
|
|
|
|
/* enable hscx/isac irq's */
|
|
|
|
IPAC_WRITE(IPAC_MASK, (IPAC_MASK_INT1 | IPAC_MASK_INT0));
|
2002-04-19 14:55:46 +04:00
|
|
|
/* enable card interrupt */
|
|
|
|
bus_space_write_1(sc->sc_maps[0].t, sc->sc_maps[0].h, 0x4c, 0x41);
|
2002-04-17 21:35:29 +04:00
|
|
|
splx(s);
|
|
|
|
break;
|
|
|
|
case CMR_DCLOSE:
|
|
|
|
s = splnet();
|
2002-05-03 18:12:59 +04:00
|
|
|
callout_stop(&psc->ledcallout);
|
2002-04-17 21:35:29 +04:00
|
|
|
IPAC_WRITE(IPAC_ATX, ELSA_NO_LED);
|
2002-04-18 19:32:30 +04:00
|
|
|
IPAC_WRITE(IPAC_MASK, 0xff);
|
2002-04-17 21:35:29 +04:00
|
|
|
bus_space_write_1(sc->sc_maps[0].t, sc->sc_maps[0].h, 0x4c, 0x01);
|
|
|
|
splx(s);
|
|
|
|
break;
|
|
|
|
case CMR_SETLEDS:
|
2002-05-03 18:12:59 +04:00
|
|
|
v = (int)data;
|
|
|
|
callout_stop(&psc->ledcallout);
|
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
/* the magic value and keep reset off */
|
2002-05-03 18:12:59 +04:00
|
|
|
psc->ledstat = ELSA_NO_LED;
|
|
|
|
psc->ledblinkmask = 0;
|
|
|
|
psc->ledblinkfreq = 0;
|
2002-04-17 21:35:29 +04:00
|
|
|
|
|
|
|
/* now see what LEDs we want to add */
|
|
|
|
if (v & CMRLEDS_TEI)
|
2002-05-03 18:12:59 +04:00
|
|
|
psc->ledstat &= ~ELSA_GREEN_LED;
|
|
|
|
|
2002-04-17 21:35:29 +04:00
|
|
|
if (v & (CMRLEDS_B0|CMRLEDS_B1)) {
|
2002-05-03 18:12:59 +04:00
|
|
|
psc->ledstat &= ~ELSA_YELLOW_LED;
|
|
|
|
psc->ledblinkmask |= ELSA_YELLOW_LED;
|
|
|
|
if ((v & (CMRLEDS_B0|CMRLEDS_B1))
|
|
|
|
== (CMRLEDS_B0|CMRLEDS_B1))
|
|
|
|
psc->ledblinkfreq = hz/4;
|
2002-04-17 21:35:29 +04:00
|
|
|
else
|
2002-05-03 18:12:59 +04:00
|
|
|
psc->ledblinkfreq = hz;
|
2002-04-17 21:35:29 +04:00
|
|
|
}
|
|
|
|
|
2002-05-03 18:12:59 +04:00
|
|
|
elsa_led_handler(psc);
|
2002-04-17 21:35:29 +04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
elsa_led_handler(void *token)
|
|
|
|
{
|
2002-05-03 18:12:59 +04:00
|
|
|
struct pci_isic_softc *psc = token;
|
|
|
|
struct isic_softc *sc = token; /* XXX */
|
|
|
|
int s;
|
2002-04-17 21:35:29 +04:00
|
|
|
|
|
|
|
s = splnet();
|
2002-05-03 18:12:59 +04:00
|
|
|
IPAC_WRITE(IPAC_ATX, psc->ledstat);
|
2002-04-17 21:35:29 +04:00
|
|
|
splx(s);
|
2002-05-03 18:12:59 +04:00
|
|
|
if (psc->ledblinkfreq) {
|
|
|
|
psc->ledstat ^= psc->ledblinkmask;
|
|
|
|
callout_reset(&psc->ledcallout, psc->ledblinkfreq,
|
|
|
|
elsa_led_handler, psc);
|
|
|
|
}
|
2001-01-05 15:49:52 +03:00
|
|
|
}
|