summaryrefslogtreecommitdiff
path: root/drivers/enc28j60.c
diff options
context:
space:
mode:
authorPeter Pearse <peter.pearse@arm.com>2007-05-18 16:47:03 +0100
committerPeter Pearse <peter.pearse@arm.com>2007-05-18 16:47:03 +0100
commit3e3b956906eba9e4ad7931581ecedaad10eccce8 (patch)
tree2f8d461030a62106c2314451ee149e9ab55e9a11 /drivers/enc28j60.c
parentfdda367561f0f6fb21d5b575402c0f9d2fd08e76 (diff)
downloadu-boot-imx-3e3b956906eba9e4ad7931581ecedaad10eccce8.zip
u-boot-imx-3e3b956906eba9e4ad7931581ecedaad10eccce8.tar.gz
u-boot-imx-3e3b956906eba9e4ad7931581ecedaad10eccce8.tar.bz2
Reduce line lengths to 80 characters max.
Diffstat (limited to 'drivers/enc28j60.c')
-rwxr-xr-x[-rw-r--r--]drivers/enc28j60.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/enc28j60.c b/drivers/enc28j60.c
index c2ed485..36b084c 100644..100755
--- a/drivers/enc28j60.c
+++ b/drivers/enc28j60.c
@@ -548,7 +548,10 @@ static void encRx (void)
m_nic_bfs (CTL_REG_ECON2, ENC_ECON2_PKTDEC);
/* taken from the Linux driver */
- /* Only odd values should be written to ERXRDPTL, see errata B4 pt.13 */ rxbuf_rdpt = (next_pointer_msb << 8 | next_pointer_lsb) - 1;
+ /* Only odd values should be written to ERXRDPTL,
+ * see errata B4 pt.13
+ */
+ rxbuf_rdpt = (next_pointer_msb << 8 | next_pointer_lsb) - 1;
if ((rxbuf_rdpt < (m_nic_read(CTL_REG_ERXSTH) << 8 |
m_nic_read(CTL_REG_ERXSTL))) || (rxbuf_rdpt >
(m_nic_read(CTL_REG_ERXNDH) << 8 |
@@ -799,13 +802,15 @@ static void encInit (unsigned char *pEthAddr)
/* enable MAC to receive frames */
/* added some bits from the Linux driver */
- m_nic_write_retry (CTL_REG_MACON1, (ENC_MACON1_MARXEN | ENC_MACON1_TXPAUS | ENC_MACON1_RXPAUS), 10);
+ m_nic_write_retry (CTL_REG_MACON1
+ ,(ENC_MACON1_MARXEN | ENC_MACON1_TXPAUS | ENC_MACON1_RXPAUS)
+ ,10);
/* configure pad, tx-crc and duplex */
/* added a bit from the Linux driver */
- m_nic_write_retry (CTL_REG_MACON3,
- (ENC_MACON3_PADCFG0 | ENC_MACON3_TXCRCEN | ENC_MACON3_FRMLNEN),
- 10);
+ m_nic_write_retry (CTL_REG_MACON3
+ ,(ENC_MACON3_PADCFG0 | ENC_MACON3_TXCRCEN | ENC_MACON3_FRMLNEN)
+ ,10);
/* added 4 new lines from the Linux driver */
/* Allow infinite deferals if the medium is continously busy */