aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ramips.c
Commit message (Collapse)AuthorAgeFilesLines
* ramips: move the ethernet driver into a separate directoryGabor Juhos2012-02-211-1025/+0
| | | | | | Also clean up the Kconfig symbols. SVN-Revision: 30670
* ramips: raeth: separate ring allocation and setupGabor Juhos2012-02-161-44/+90
| | | | SVN-Revision: 30573
* ramips: raeth: add a helper function for skb allocationGabor Juhos2012-02-151-6/+16
| | | | SVN-Revision: 30555
* ramips: raeth: use netdev_alloc_skbGabor Juhos2012-02-151-2/+3
| | | | SVN-Revision: 30554
* ramips: raeth: use 're' instead of 'priv' everywhereGabor Juhos2012-02-151-73/+73
| | | | SVN-Revision: 30552
* ramips: raeth: force link down in ramips_phy_stopGabor Juhos2012-02-151-7/+6
| | | | SVN-Revision: 30550
* ramips: raeth: serialize ramips_link_adjust callsGabor Juhos2012-02-151-0/+8
| | | | SVN-Revision: 30549
* ramips: raeth: add PHYLIB supportGabor Juhos2012-02-151-7/+216
| | | | SVN-Revision: 30547
* ramips: raeth: enable MDIO code for RT3883Gabor Juhos2012-02-131-2/+2
| | | | SVN-Revision: 30497
* ramips: add MDIO bus support for RT288XGabor Juhos2012-02-111-2/+150
| | | | SVN-Revision: 30455
* ramips: raeth: make debugging messages configurableGabor Juhos2012-02-111-3/+9
| | | | SVN-Revision: 30450
* ramips: raeth: use device pointer in DMA API callsGabor Juhos2012-02-111-11/+12
| | | | SVN-Revision: 30449
* ramips: raeth: add netdev pointer to private structureGabor Juhos2012-02-111-0/+1
| | | | SVN-Revision: 30448
* ramips: raeth: cleanup DMA API usage in ramips_eth_hard_start_xmitGabor Juhos2012-02-111-5/+4
| | | | SVN-Revision: 30447
* ramips: raeth: unmap rx DMA address in ramips_cleanup_dmaGabor Juhos2012-02-111-1/+4
| | | | SVN-Revision: 30446
* ramips: raeth: add rx_dma array to store the DMA address of the rx packetsGabor Juhos2012-02-111-10/+16
| | | | SVN-Revision: 30445
* ramips: raeth: use dma_addr_t for the descriptorsGabor Juhos2012-02-111-7/+7
| | | | SVN-Revision: 30444
* ramips: raeth: unmap DMA memory when a packet is receivedGabor Juhos2012-02-111-0/+4
| | | | SVN-Revision: 30443
* ramips: raeth: add a temporary pktlen variableGabor Juhos2012-02-111-3/+6
| | | | SVN-Revision: 30442
* ramips: raeth: indicate dropped packets in statsGabor Juhos2012-02-111-0/+2
| | | | SVN-Revision: 30440
* ramips: Rework ramips_eth to not require irqsave locking anymoreJohn Crispin2012-01-171-6/+9
| | | | | | | | | | | | | | | | | Previously the tx housekeeping was done in a spin_lock_irqsave critical section which causes irqs to be disabled during that time. Since the housekeeping is already prepared to be scheduled as a tasklet process the housekeeping only in softirq context and revise the locking between the tx path and the housekeeping tasklet by using a normal spin_lock which in most situations will be a NOP anyway. This makes sure that interrupts are only disabled for a short time since in the worst case the housekeeping might have to free up to 256 skbs. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 29762
* ramips: ramips_esw: convert it to be a platform driverGabor Juhos2010-12-081-4/+18
| | | | SVN-Revision: 24331
* ramips: Use NET_IP_ALIGN instead of hardcoding 2Gabor Juhos2010-11-241-4/+5
| | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 24124
* ramips: DMA map the correct RX skb sizeGabor Juhos2010-11-241-2/+2
| | | | | | | | | | The skb_reserve call prior to DMA mapping the RX skb reduced the skb data len by 2. To not allow DMA to write behind the skb we should pass the correct skb data len to the device. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 24123
* ramips: Don't trigger BUG_ON due to skb allocation failureGabor Juhos2010-11-241-16/+19
| | | | | | | | | Instead just drop the rx'ed frame silently and reuse the already available buffer. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 24122
* ramips: Remove unnecessary skb_putGabor Juhos2010-11-241-1/+1
| | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 24121
* ramips: Allow ethernet interface to be taken down and up againGabor Juhos2010-10-051-0/+4
| | | | | | | | | | Taking the ramips ethernet interface down and up again resulted in the driver not receiving any frames anymore. Fix this by correctly disabling interrupts in the hw on ifdown. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 23243
* ramips: add mdio_cfg configuration for the ethernet driverGabor Juhos2010-07-151-0/+49
| | | | SVN-Revision: 22211
* ramips: Fix bridging in ramips ethernet driverGabor Juhos2010-07-131-1/+1
| | | | | | | | | | | | | | | | | | Bridging between the ramips ethernet driver and rt2800pci was somewhat broken. Frames received by the ethernet driver which were passed to the wifi driver for transmission were sometimes corrupted or sent out with huge delays. The reason for this is the missing assignment of skb->tail in the ramips ethernet driver's rx path resulting in skb->tail pointing to skb->data. Since skb->tail is used by mac80211 it writes into skb->data which messes up the frames content. Fix this by using skb_put to correctly set skb->len and skb->tail. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 22172
* ramips_eth: cleanup mac_address changingGabor Juhos2010-01-311-19/+12
| | | | SVN-Revision: 19464
* ramips_eth: pass sys_clk via platform_dataGabor Juhos2010-01-311-1/+1
| | | | SVN-Revision: 19462
* ramips_eth: add helper functions to {ed,dis}able interruptsGabor Juhos2010-01-311-6/+21
| | | | SVN-Revision: 19446
* ramips_eth: remove unnecessary typecastsGabor Juhos2010-01-311-2/+2
| | | | SVN-Revision: 19445
* ramips_eth: simplify tx_next computationGabor Juhos2010-01-311-5/+2
| | | | SVN-Revision: 19444
* ramips_eth: simplify tx descriptor initializationGabor Juhos2010-01-311-3/+2
| | | | SVN-Revision: 19443
* ramips_eth: pass 'raeth_priv' struct directly to dma specific functionsGabor Juhos2010-01-311-39/+35
| | | | SVN-Revision: 19442
* ramips_eth: convert to use netdev_opsGabor Juhos2010-01-311-6/+12
| | | | SVN-Revision: 19440
* ramips_eth: fix invalid register writesGabor Juhos2010-01-301-4/+5
| | | | SVN-Revision: 19417
* ramips_eth: move memset call out from the loopGabor Juhos2010-01-301-1/+1
| | | | SVN-Revision: 19416
* ramips_eth: coding style cleanupGabor Juhos2010-01-301-54/+66
| | | | SVN-Revision: 19414
* missing header file changes, and fix mtu valueJohn Crispin2009-10-301-1/+1
| | | | SVN-Revision: 18220
* fixes rx path for eth, spinlock it, increases buffer size, board now ↵John Crispin2009-10-291-28/+23
| | | | | | survives ping -f SVN-Revision: 18212
* hopefully fixes dma issues seen on ethernet driver when under high loadJohn Crispin2009-10-291-2/+7
| | | | SVN-Revision: 18203
* ramips: move 'arch/mips/include/asm/mach-ralink/eth.h' to ↵Gabor Juhos2009-10-261-1/+1
| | | | | | 'drivers/net/ramips_eth.h' SVN-Revision: 18176
* ramips: move ramips_eth_platform_data into a separate fileGabor Juhos2009-10-261-0/+1
| | | | SVN-Revision: 18174
* ramips: request_irq prior to dma allocation, and handle the case if it failsGabor Juhos2009-10-261-2/+10
| | | | SVN-Revision: 18173
* ramips: add error handling to ramips_alloc_dmaGabor Juhos2009-10-261-7/+29
| | | | SVN-Revision: 18172
* ramips: free allocated skbs in ramips_cleanup_dmaGabor Juhos2009-10-261-0/+5
| | | | SVN-Revision: 18171
* ramips: add ramips_setup_dma helper to the ethernet driverGabor Juhos2009-10-261-6/+15
| | | | SVN-Revision: 18170
* ramips: add ramips_cleanup_dma helperGabor Juhos2009-10-261-4/+13
| | | | SVN-Revision: 18169