Kyle Moffett d60626f8c1 e1000: Restructure and streamline PCI device probing
By allocating the e1000 device structures much earlier, we can easily
generate better error messages and siginficantly clean things up.

The only user-visable change (aside from reworded error messages) is
that a detected e1000 device which fails to initialize due to software
or hardware error will still be allocated a device number.

As one example, consider a system with 2 e1000 PCI devices where the
first controller has a corrupted EEPROM.  Using the old code the
second controller would be "e1000#0", while with this change it would be
"e1000#1".

This change should hopefully make such EEPROM errors much more
straightforward to handle correctly in boot scripts and the like.

It is also necessary for a followup patch which allows SPI programming
of an e1000 controller's EEPROM even if the checksum is invalid.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
2011-10-28 00:34:40 +02:00
..
2011-01-09 18:06:50 +01:00
2011-06-21 22:26:22 +02:00
2011-01-09 18:06:50 +01:00
2011-04-20 13:44:46 -05:00
2010-08-09 11:52:29 -07:00
2011-10-27 23:54:08 +02:00
2011-01-09 18:06:50 +01:00
2011-04-20 15:09:34 -05:00
2011-01-09 18:06:50 +01:00
2011-06-21 22:26:22 +02:00
2011-01-09 18:06:50 +01:00
2011-10-05 22:22:16 +02:00
2011-10-05 22:22:16 +02:00
2011-07-27 23:27:43 +02:00
2011-05-19 22:22:44 +02:00
2011-04-20 13:44:46 -05:00