Fix compilation of DEVICE_POLLING code.
This commit is contained in:
parent
05fb35c306
commit
aeaf0a3a68
@ -1641,12 +1641,12 @@ sis_intr(void *arg)
|
||||
|
||||
SIS_LOCK(sc);
|
||||
#ifdef DEVICE_POLLING
|
||||
if (ifp->if_flags & IFF_POLLING)
|
||||
goto done;
|
||||
if ((ifp->if_capenable & IFCAP_POLLING) &&
|
||||
ether_poll_register(sis_poll, ifp)) { /* ok, disable interrupts */
|
||||
if ((ifp->if_flags & IFF_POLLING) ||
|
||||
((ifp->if_capenable & IFCAP_POLLING) &&
|
||||
ether_poll_register(sis_poll, ifp))) { /* ok, disable interrupts */
|
||||
CSR_WRITE_4(sc, SIS_IER, 0);
|
||||
goto done;
|
||||
SIS_UNLOCK(sc);
|
||||
return;
|
||||
}
|
||||
#endif /* DEVICE_POLLING */
|
||||
|
||||
|
@ -362,7 +362,7 @@ struct sis_desc {
|
||||
#define SIS_TXSTAT_UNDERRUN 0x02000000
|
||||
#define SIS_TXSTAT_TX_ABORT 0x04000000
|
||||
|
||||
#define SIS_RX_LIST_CNT 64
|
||||
#define SIS_RX_LIST_CNT 128
|
||||
#define SIS_TX_LIST_CNT 128
|
||||
|
||||
#define SIS_RX_LIST_SZ SIS_RX_LIST_CNT * sizeof(struct sis_desc)
|
||||
|
Loading…
Reference in New Issue
Block a user