fix typo in TI1515 ID.

This commit is contained in:
Warner Losh 2003-05-04 12:49:37 +00:00
parent cf764e45ae
commit 452855111a
2 changed files with 9 additions and 1 deletions

View File

@ -976,10 +976,14 @@ cbb_intr(void *arg)
/*
* This ISR needs work XXX
*/
printf("Cbb 1\n");
sockevent = cbb_get(sc, CBB_SOCKET_EVENT);
printf("Cbb 2\n");
if (sockevent) {
printf("Cbb 3\n");
/* ack the interrupt */
cbb_setb(sc, CBB_SOCKET_EVENT, sockevent);
printf("Cbb 4\n");
/*
* If anything has happened to the socket, we assume that
@ -995,11 +999,13 @@ cbb_intr(void *arg)
* excellent results.
*/
if (sockevent & CBB_SOCKET_EVENT_CD) {
printf("Cbb 5\n");
mtx_lock(&sc->mtx);
sc->flags &= ~CBB_CARD_OK;
cv_signal(&sc->cv);
mtx_unlock(&sc->mtx);
}
printf("Cbb 6\n");
if (sockevent & CBB_SOCKET_EVENT_CSTS) {
DPRINTF((" cstsevent occured: 0x%08x\n",
cbb_get(sc, CBB_SOCKET_STATE)));
@ -1011,7 +1017,9 @@ cbb_intr(void *arg)
/* Other bits? */
}
if (sc->flags & CBB_CARD_OK) {
printf("Cbb 7\n");
STAILQ_FOREACH(ih, &sc->intr_handlers, entries) {
printf("Cbb 8\n");
(*ih->intr)(ih->arg);
}
}

View File

@ -68,7 +68,7 @@
#define PCIC_ID_TI1450 0xac1b104cul
#define PCIC_ID_TI1451 0xac52104cul
#define PCIC_ID_TI1510 0xac56104cul
#define PCIC_ID_TI1510 0xac58104cul
#define PCIC_ID_TI1515 0xac58104cul
#define PCIC_ID_TI1520 0xac55104cul
#define PCIC_ID_TI1530 0xac57104cul
#define PCIC_ID_TI1620 0xac54104cul