Module Name: src Committed By: msaitoh Date: Fri Dec 26 05:09:04 UTC 2014
Modified Files: src/sys/arch/x86/pci: ichlpcib.c src/sys/dev/ic: i82801lpcreg.h src/sys/dev/pci: pci_map.c pcivar.h Log Message: Fix a bug that ichlpcib(4) maps I/O area incorrectly and then fails to attach gpio. It might also fix ACPI related problem described in PR#48960: - The LPCIB_PCI_PMBASE and LPCIB_PCI_GPIO register are alike PCI BAR but not completely compatible with it. It's ok because the registers' addresses are out of BAR0-BAR5(0x10-0x24) and are located in the device-dependent header. The PMBASE and GPIO registers define the base address and the type but not describe the size. The size is fixed to 128bytes. So use pci_mapreg_submap(). - Make pci_mapreg_submap() extern again. - Fix the calculation of the map size in pci_mapreg_submap(). To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/arch/x86/pci/ichlpcib.c cvs rdiff -u -r1.11 -r1.12 src/sys/dev/ic/i82801lpcreg.h cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/pci_map.c cvs rdiff -u -r1.100 -r1.101 src/sys/dev/pci/pcivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.