Bjorn Helgaas 28c6821a0f PCI: fold pci_calc_resource_flags() into decode_bar()
decode_bar() and pci_calc_resource_flags() both looked at the PCI BAR
type information, and it's simpler to just do it all in one place.

decode_bar() sets IORESOURCE_IO, IORESOURCE_MEM, and IORESOURCE_MEM_64
as appropriate, so res->flags contains all the information pci_bar_type
does, so we don't need to test the pci_bar_type return value.

decode_bar() used to return pci_bar_type, which we no longer need.  We
can simplify it a bit by returning the struct resource flags rather than
updating them internally.

In pci_update_resource(), there's no need to decode the BAR type bits
again; we can just test for IORESOURCE_MEM_64 directly.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-07-22 09:08:01 -07:00
..
2011-07-22 08:25:37 -07:00
2005-10-18 08:26:15 -07:00
2011-05-10 15:43:36 -07:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:48:19 +02:00
2011-05-29 02:21:08 -04:00
2011-07-22 09:06:51 -07:00
2009-02-13 12:01:56 -08:00
2010-07-30 09:47:22 -07:00
2010-08-31 15:28:00 -07:00
2009-07-12 12:22:34 -07:00