Fix compilation of DEVICE_POLLING code.
This commit is contained in:
parent
a04d8dc73a
commit
cd49c1d16c
@ -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