summaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/regio.c
Commit message (Collapse)AuthorAgeFilesLines
* e1000: implement register mapping for E1000_FLSW{CTL, DATA, CNT}Uwe Kleine-König2017-10-161-0/+9
| | | | | | | Fixes: 4ff3269a70b5 ("e1000: Expose i210's external flash as MTD") Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: e1000: fix i210 register remappingLucas Stach2016-11-031-3/+2
| | | | | | | | | | Don't mask out the remapping flag before checking the register offset, otherwise none of the switch statements will ever match. Fixes: ff6a64d42ffc (e1000: Consolidate register offset fixups) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* e1000: Add a "poll register" functionAndrey Smirnov2016-06-031-0/+16
| | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* e1000: Consolidate register offset fixupsAndrey Smirnov2016-06-031-0/+25
| | | | | | | | | | | | | | | | | | Consolidate all code taking care on CSR offset differences for i210 chips into a single place in the driver and integrate that funcionality into e1000_{read,write}_reg functions. This way we can get rid of all those if (hw->mac_type == e1000_igb) { .... } else { .... } snippets sprinkled all across the driver code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* e1000: Convert E1000_*_REG macros to functionsAndrey Smirnov2016-06-031-0/+29
E1000_*_REG don't bring any value by being macros and implicit appending of "E1000_" prefix to the constant name only makes thing harder to grep or understand. Replace those macros with functions. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>