summaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x/et131x.h
Commit message (Collapse)AuthorAgeFilesLines
* staging: et131x: Use register defines instead of magic numbersMark Einon2013-01-071-24/+64
| | | | | | | | | | | Use register name defines instead of magic numbers where a bit of clarity would be useful. Also a small typo fix and some register prefixes added, for further clarity. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: et131x: Replace rxdma csr register magic numbers with definesMark Einon2013-01-071-0/+8
| | | | | | | | Several magic numbers were used to represent rxdma csr register bitmasks. Replace them with descriptive defines. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: et131x: Remove unnecessary PHY register writeMark Einon2012-10-301-4/+0
| | | | | | | | | | | | The PHY registers are now being controlled from the connected phydev, so there shouldn't be any reason for the et131x code to perform any extra setup. Removing the interrupt setup code, and register defines that are now unused. On testing, no changes in behaviour were experienced. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* drivers:staging:et131x Fix some typo's in staging et131x.Justin P. Mattock2012-02-241-2/+2
| | | | | | | | The below patch fixes some comments with typos in the them and makes a comment make more sense. Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: et131x: Moving two extern inline functions to .c fileMark Einon2011-10-231-10/+0
| | | | | | | | Two helper functions for adding 10bit/12bit umbers with wrapping are defined in the header. Moved them to the driver .c file. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: move et1310_phy.h contents into et131x.hMark Einon2011-10-231-0/+227
| | | | | | | | Move et1310_phy.h register defines into et131x.h and delete et1310_phy.h Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: move et1310_address_map.h contents into et131x.hMark Einon2011-10-231-0/+1370
| | | | | | | | Move et1310_address_map.h register defines into et131x.h and delete et1310_address_map.h Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Move non-register defines from et131x.h to et131x.cMark Einon2011-10-231-32/+1
| | | | | | | | Header file should only have register defines, moved non-register defines to et131x.c Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Move function declarations from et131x.h to et131x.cMark Einon2011-10-231-102/+0
| | | | | | | | | The function declarations in et131x.h are no longer used now all functions are in one file. Removed declarations from et131x.h and added any required forward declarations to et131x.c. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Put all .c files into one big fileMark Einon2011-10-231-2/+60
| | | | | | | | Created one big .c file for the driver, moving the contents of all driver .c files into it. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Remove file et131x_version.hMark Einon2011-10-111-0/+3
| | | | | | | | Removed defines in et131x_version.h and replaced them by actual strings where convinient, or moved them to et131x.h Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Remove error path from suspend/resume codeMark Einon2011-10-111-0/+2
| | | | | | | | | | | | Removing an error path from et131x suspend/resume functions. Also added a call to phy_stop() to complement the phy_start() call during device start/stop routine. Thanks to Francois Romieu <romieu@fr.zoreil.com> for pointing this out. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Fix add_timer() from et131x_openMark Einon2011-10-041-0/+1
| | | | | | | | | The error_timer was only getting initialised and an initial jiffies value set following a probe. This could result in the timer needlessly expiring immediately after et131x_open is called. Now this is all done from the open call instead. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Add pci suspend & resume functionsMark Einon2011-10-041-0/+2
| | | | | | | | | Added basic suspend & resume functionality. Tested on an et1310 device, and putting Fedora15 host in and out of hibernation successfully. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Introduce et1310_in_phy_coma() callMark Einon2011-10-041-0/+1
| | | | | | | | | In several places in the code, the pm_csr register is read and the PHY_SW_COMA bit checked. Move this check into its own small function to make the code more readable. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Remove header declaration of et131x_check_mii()Mark Einon2011-09-261-2/+0
| | | | | | | et131x_check_mii no longer exists, remove its declaration from the header file Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Create et131x_[dis|en]able_txrx() callsMark Einon2011-09-261-0/+2
| | | | | | | | In et131x_netdev.c, a series of calls to enable and diasble the rx/tx engine and queue are being used in several different places. Create two functions to encapsulate these calls, and replace many calls with just the one. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Remove redundant phy codeMark Einon2011-09-061-6/+1
| | | | | | | Now we are using a phy_device, remove driver functionality that is now handled by the phydev. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Remove xcvr_addr and et131x_xcvr_findMark Einon2011-09-061-10/+7
| | | | | | | Use the phy_device equivalents instead. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Use phy-device, mii_bus and ethtool_opsMark Einon2011-08-291-0/+6
| | | | | | | Adding some basic ethtool ops and supporting functionality using a phy device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Converting et1310_tx.c function and local names from CamelCaseMark Einon2011-08-231-1/+1
| | | | | | | | Also some minor code clean-ups. Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Rename et131x_config_global_regs > et131x_configure_global_regsMark Einon2011-08-231-2/+2
| | | | | | | Typo in header file. Also renaming a few adapter references to fit in with the rest of the file. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Convert et1310_tx.c function name from CamelCaseMark Einon2011-08-231-2/+1
| | | | | | | Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: add et1310_ prefix to et1310_mac.c functionsMark Einon2011-08-231-10/+10
| | | | | | | | Making finger pointing that bit easier. Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Converting et1310_rx.c function and local names from CamelCaseMark Einon2011-08-231-2/+2
| | | | | | | | Also renamed some items to improve readability, and other minor tidy-ups. Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Converting et1310_pm.c function and local names from CamelCaseMark Einon2011-08-231-4/+4
| | | | | | | Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Converting et1310_phy.c function and local names from CamelCaseMark Einon2011-08-231-20/+15
| | | | | | | Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Converting et1310_mac.c function and local names from CamelCaseMark Einon2011-08-231-10/+10
| | | | | | | Tested on an ET-131x device. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Remove typedefs from et1310_phy.hMark Einon2011-07-051-1/+1
| | | | | | | | | Fixes the associated checkpatch warnings. Tested with ifconfig/general use of a device (Agere Systems ET-131x PCI-E Ethernet Controller (rev 02)). Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Removing '_t' from ce_stats_t structMark Einon2011-06-281-1/+1
| | | | | | | | Removing '_t' from ce_stats_t struct name and renaming et131x_adapter ce_stats member from 'Stats' to 'stats' Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: et131x: Clean up the RFD struct/typesAlan Cox2011-02-041-2/+2
| | | | | Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: et131x: Collapse all the function definitions into one placeAlan Cox2010-03-031-0/+153
We have lots of tiny files right now that could be one Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud