diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2008-08-04 18:00:18 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-08-07 01:55:20 -0400 |
commit | ec796b4ffc947f74e9e85198d1648e9556300c55 (patch) | |
tree | 9971d74f03da96b1649eeb1e0399176142522320 /drivers/net/igb/e1000_82575.c | |
parent | 549bdd84dce242e15a9d7b42787ae481ba29f458 (diff) |
igb: remove three redundant functions left in the code
Three functions were left in the code that are no longer used. I am removing
these functions just to keep the code clean.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/igb/e1000_82575.c')
-rw-r--r-- | drivers/net/igb/e1000_82575.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c index 76f9f866f8c7..bb823acc7443 100644 --- a/drivers/net/igb/e1000_82575.c +++ b/drivers/net/igb/e1000_82575.c | |||
@@ -1238,70 +1238,6 @@ out: | |||
1238 | } | 1238 | } |
1239 | 1239 | ||
1240 | /** | 1240 | /** |
1241 | * igb_translate_register_82576 - Translate the proper register offset | ||
1242 | * @reg: e1000 register to be read | ||
1243 | * | ||
1244 | * Registers in 82576 are located in different offsets than other adapters | ||
1245 | * even though they function in the same manner. This function takes in | ||
1246 | * the name of the register to read and returns the correct offset for | ||
1247 | * 82576 silicon. | ||
1248 | **/ | ||
1249 | u32 igb_translate_register_82576(u32 reg) | ||
1250 | { | ||
1251 | /* | ||
1252 | * Some of the 82576 registers are located at different | ||
1253 | * offsets than they are in older adapters. | ||
1254 | * Despite the difference in location, the registers | ||
1255 | * function in the same manner. | ||
1256 | */ | ||
1257 | switch (reg) { | ||
1258 | case E1000_TDBAL(0): | ||
1259 | reg = 0x0E000; | ||
1260 | break; | ||
1261 | case E1000_TDBAH(0): | ||
1262 | reg = 0x0E004; | ||
1263 | break; | ||
1264 | case E1000_TDLEN(0): | ||
1265 | reg = 0x0E008; | ||
1266 | break; | ||
1267 | case E1000_TDH(0): | ||
1268 | reg = 0x0E010; | ||
1269 | break; | ||
1270 | case E1000_TDT(0): | ||
1271 | reg = 0x0E018; | ||
1272 | break; | ||
1273 | case E1000_TXDCTL(0): | ||
1274 | reg = 0x0E028; | ||
1275 | break; | ||
1276 | case E1000_RDBAL(0): | ||
1277 | reg = 0x0C000; | ||
1278 | break; | ||
1279 | case E1000_RDBAH(0): | ||
1280 | reg = 0x0C004; | ||
1281 | break; | ||
1282 | case E1000_RDLEN(0): | ||
1283 | reg = 0x0C008; | ||
1284 | break; | ||
1285 | case E1000_RDH(0): | ||
1286 | reg = 0x0C010; | ||
1287 | break; | ||
1288 | case E1000_RDT(0): | ||
1289 | reg = 0x0C018; | ||
1290 | break; | ||
1291 | case E1000_RXDCTL(0): | ||
1292 | reg = 0x0C028; | ||
1293 | break; | ||
1294 | case E1000_SRRCTL(0): | ||
1295 | reg = 0x0C00C; | ||
1296 | break; | ||
1297 | default: | ||
1298 | break; | ||
1299 | } | ||
1300 | |||
1301 | return reg; | ||
1302 | } | ||
1303 | |||
1304 | /** | ||
1305 | * igb_reset_init_script_82575 - Inits HW defaults after reset | 1241 | * igb_reset_init_script_82575 - Inits HW defaults after reset |
1306 | * @hw: pointer to the HW structure | 1242 | * @hw: pointer to the HW structure |
1307 | * | 1243 | * |