diff options
author | Taku Izumi <izumi.taku@jp.fugitsu.com> | 2008-07-11 18:17:44 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-07-22 19:39:14 -0400 |
commit | 81250297d85b26eb4e9de5decf752dce430277f9 (patch) | |
tree | df3783c21e01c35d3d0666533e731990c34cc8ea /drivers/net/e1000/e1000.h | |
parent | c3570acb53c885f8accb8c85eda195781d30632f (diff) |
e1000: make ioport free
This patch makes e1000 driver ioport-free.
This corrects behavior in probe function so as not to request ioport
resources as long as they are not really needed. This is based on the
ioport-free patch of e1000 driver from Auke Kok and Tomohiro Kusumi.
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: Jeff Kirsher<jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/e1000/e1000.h')
-rw-r--r-- | drivers/net/e1000/e1000.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h index 583b823f760c..19e317eaf5bc 100644 --- a/drivers/net/e1000/e1000.h +++ b/drivers/net/e1000/e1000.h | |||
@@ -340,6 +340,10 @@ struct e1000_adapter { | |||
340 | bool quad_port_a; | 340 | bool quad_port_a; |
341 | unsigned long flags; | 341 | unsigned long flags; |
342 | u32 eeprom_wol; | 342 | u32 eeprom_wol; |
343 | |||
344 | /* for ioport free */ | ||
345 | int bars; | ||
346 | int need_ioport; | ||
343 | }; | 347 | }; |
344 | 348 | ||
345 | enum e1000_state_t { | 349 | enum e1000_state_t { |