android_kernel_motorola_sm6225/drivers/net/ethernet
Matt Carlson 7d41e49ac2 tg3: PTP - Implement the ptp api and ethtool functions
This patch adds the ptp_caps structure, ptp api implementation,
reference clock read and register/unregister functions.  All the basic
clock operations as described in Documentation/ptp/ptp.txt are
supported.

Frequency adjustment is performed using hardware with a 24 bit
accumulator and a programmable correction value. On each clk, the
correction value gets added to the accumulator and when it overflows,
the time counter is incremented/decremented and the accumulator reset.

So conversion from ppb to correction value is
	ppb * (1 << 24) / 1000000000

[Re-organized to put the ptp_clock_info struct declaration in one patch,
 added ptp_clock_info.name, and added locking to tg3_ptp_adjtime() based
 on input from Richard Cochran.]

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-12-04 12:58:49 -05:00
..
3com 3c509: remove __dev* attributes 2012-12-03 11:16:25 -08:00
8390 8390: remove __dev* attributes 2012-12-03 11:16:32 -08:00
adaptec starfire: remove __dev* attributes 2012-12-03 11:16:41 -08:00
adi bfin_mac: remove __dev* attributes 2012-12-03 11:16:41 -08:00
aeroflex aeroflex: remove __dev* attributes 2012-12-03 11:16:41 -08:00
alteon acenic: remove __dev* attributes 2012-12-03 11:16:38 -08:00
amd net/amd: remove __dev* attributes 2012-12-03 11:16:54 -08:00
apple net/apple: remove __dev* attributes 2012-12-03 11:16:54 -08:00
atheros net/atheros: remove __dev* attributes 2012-12-03 11:16:54 -08:00
broadcom tg3: PTP - Implement the ptp api and ethtool functions 2012-12-04 12:58:49 -05:00
brocade bna: remove __dev* attributes 2012-12-03 11:16:42 -08:00
cadence net/cadence: remove __dev* attributes 2012-12-03 11:16:54 -08:00
calxeda net: calxedaxgmac: ip align receive buffers 2012-11-07 03:51:14 -05:00
chelsio chelsio: remove __dev* attributes 2012-12-03 11:16:42 -08:00
cirrus cs89x0 : packet reception not working 2012-08-31 15:48:56 -04:00
cisco enic: remove __dev* attributes 2012-12-03 11:16:42 -08:00
davicom dm9000: remove __dev* attributes 2012-12-03 11:16:42 -08:00
dec tulip: remove __dev* attributes 2012-12-03 11:16:52 -08:00
dlink Networking: Remove __dev* markings from the networking drivers 2012-12-03 15:35:28 -05:00
emulex be2net: remove __dev* attributes 2012-12-03 11:16:43 -08:00
faraday net: ftgmac100/ftmac100: dont pull too much data 2012-07-18 09:40:53 -07:00
freescale net/freescale: remove __dev* attributes 2012-12-03 11:16:54 -08:00
fujitsu drivers/net: delete all code/drivers depending on CONFIG_MCA 2012-05-17 16:37:41 -04:00
hp hp100: remove __dev* attributes 2012-12-03 11:16:43 -08:00
i825xx i825xx: remove __dev* attributes 2012-12-03 11:16:12 -08:00
ibm ibm/emac: remove __dev* attributes 2012-12-03 11:16:43 -08:00
icplus icplus: remove __dev* attributes 2012-12-03 11:16:54 -08:00
intel net/intel: remove __dev* attributes 2012-12-03 11:17:07 -08:00
marvell Networking: Remove __dev* markings from the networking drivers 2012-12-03 15:35:28 -05:00
mellanox mlx4_core: remove __dev* attributes 2012-12-03 11:16:44 -08:00
micrel net/micrel: remove __dev* attributes 2012-12-03 11:16:54 -08:00
microchip enc28j60: remove __dev* attributes 2012-12-03 11:16:44 -08:00
myricom myri10ge: fix incorrect use of ntohs() 2012-12-01 11:36:37 -05:00
natsemi natsemi: remove __dev* attributes 2012-12-03 11:16:44 -08:00
neterion vxge/s2io: remove __dev* attributes 2012-12-03 11:16:44 -08:00
nuvoton nuvoton: remove __dev* attributes 2012-12-03 11:16:44 -08:00
nvidia forcedeth: remove __dev* attributes 2012-12-03 11:16:44 -08:00
nxp lpc_eth: remove __dev* attributes 2012-12-03 11:16:44 -08:00
octeon net/octeon_mgmt: remove __dev* attributes 2012-12-03 11:16:45 -08:00
oki-semi pch_gbe, ptp_pch: Fix the dependency direction between these drivers 2012-11-17 22:11:45 -05:00
packetengines packetengines: remove __dev* attributes 2012-12-03 11:16:45 -08:00
pasemi net/pasemi: remove __dev* attributes 2012-12-03 11:16:55 -08:00
qlogic qlge: remove __dev* attributes 2012-12-03 11:16:45 -08:00
racal netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-08 18:46:38 -05:00
rdc r6040: remove __dev* attributes 2012-12-03 11:16:46 -08:00
realtek Networking: Remove __dev* markings from the networking drivers 2012-12-03 15:35:28 -05:00
renesas net: sh_eth: Fix a typo - replace regist with register. 2012-11-03 15:37:35 -04:00
seeq seeq: remove __dev* attributes 2012-12-03 11:16:46 -08:00
sfc sfc: remove __dev* attributes 2012-12-03 11:16:46 -08:00
sgi net/sgi: remove __dev* attributes 2012-12-03 11:16:55 -08:00
silan sc92031: remove __dev* attributes 2012-12-03 11:16:46 -08:00
sis sis900: remove __dev* attributes 2012-12-03 11:16:51 -08:00
smsc epic100: remove __dev* attributes 2012-12-03 11:16:52 -08:00
stmicro Networking: Remove __dev* markings from the networking drivers 2012-12-03 15:35:28 -05:00
sun net/sun: remove __dev* attributes 2012-12-03 11:16:55 -08:00
tehuti tehuti: remove __dev* attributes 2012-12-03 11:16:53 -08:00
ti net/davinci_emac: remove __dev* attributes 2012-12-03 11:16:55 -08:00
tile tilegx: request_irq with a non-null device name 2012-11-16 01:40:41 -05:00
toshiba net/ps3_gelic_wireless: remove __dev* attributes 2012-12-03 11:16:55 -08:00
tundra drivers/net/ethernet/tundra/tsi108_eth.c: delete double assignment 2012-08-30 13:08:37 -04:00
via via-velocity: remove __dev* attributes 2012-12-03 11:16:53 -08:00
wiznet net/wiznet: remove __dev* attributes 2012-12-03 11:16:56 -08:00
xilinx net/xilinx: remove __dev* attributes 2012-12-03 11:16:56 -08:00
xircom Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
xscale ixp4xx_eth: remove __dev* attributes 2012-12-03 11:16:53 -08:00
dnet.c net/ethernet: remove __dev* attributes 2012-12-03 11:16:56 -08:00
dnet.h
ethoc.c net/ethernet: remove __dev* attributes 2012-12-03 11:16:56 -08:00
fealnx.c net/ethernet: remove __dev* attributes 2012-12-03 11:16:56 -08:00
jme.c jme: remove __dev* attributes 2012-12-03 11:16:54 -08:00
jme.h jme: Fix FIFO flush issue 2012-02-22 14:44:41 -05:00
Kconfig net: mipsnet: Remove the MIPSsim Ethernet driver. 2012-09-24 16:47:23 -04:00
korina.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
lantiq_etop.c net/ethernet: remove __dev* attributes 2012-12-03 11:16:56 -08:00
Makefile net: mipsnet: Remove the MIPSsim Ethernet driver. 2012-09-24 16:47:23 -04:00
netx-eth.c ARM: netx: move platform_data definitions 2012-09-14 11:17:36 +02:00
s6gmac.c net/ethernet: remove __dev* attributes 2012-12-03 11:16:56 -08:00