staging: vt6655: Replace MACvStart with VNSvOutPortB
Replace macro MACvStart with VNSvOutPortB and as it was the only user, it can now be removed. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/d998305b4dec2827b0e13e49938e68a32517c487.1651957741.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
c0235e384e
Коммит
7436b3ea27
|
@ -406,7 +406,8 @@ static void device_init_registers(struct vnt_private *priv)
|
||||||
MACvReceive1(priv->port_offset);
|
MACvReceive1(priv->port_offset);
|
||||||
|
|
||||||
/* start the adapter */
|
/* start the adapter */
|
||||||
MACvStart(priv->port_offset);
|
VNSvOutPortB(priv->port_offset + MAC_REG_HOSTCR,
|
||||||
|
(HOSTCR_MACEN | HOSTCR_RXON | HOSTCR_TXON));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void device_print_info(struct vnt_private *priv)
|
static void device_print_info(struct vnt_private *priv)
|
||||||
|
|
|
@ -605,10 +605,6 @@ do { \
|
||||||
VNSvOutPortB(iobase + MAC_REG_PAGE1SEL, 0); \
|
VNSvOutPortB(iobase + MAC_REG_PAGE1SEL, 0); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define MACvStart(iobase) \
|
|
||||||
VNSvOutPortB(iobase + MAC_REG_HOSTCR, \
|
|
||||||
(HOSTCR_MACEN | HOSTCR_RXON | HOSTCR_TXON))
|
|
||||||
|
|
||||||
#define MACvRx0PerPktMode(iobase) \
|
#define MACvRx0PerPktMode(iobase) \
|
||||||
VNSvOutPortD(iobase + MAC_REG_RXDMACTL0, RX_PERPKT)
|
VNSvOutPortD(iobase + MAC_REG_RXDMACTL0, RX_PERPKT)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче