Suspend broadcom cards in order to stop their DMA.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI. * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI. (pci): Don't build on x86 EFI. * grub-core/bus/pci.c (grub_pci_find_capability): New function. * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]: New function. (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call stop_broadcom if running on EFI. * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value. (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise. (GRUB_PCI_VENDOR_BROADCOM): Likewise. (grub_pci_find_capability): New proto. Also-By: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
parent
01aab9978f
commit
9d34bb85da
6 changed files with 122 additions and 2 deletions
|
@ -96,6 +96,7 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/time.h
|
||||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
||||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
|
||||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
|
||||
endif
|
||||
|
||||
if COND_i386_coreboot
|
||||
|
@ -126,6 +127,7 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/time.h
|
||||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
||||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
|
||||
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
|
||||
endif
|
||||
|
||||
if COND_ia64_efi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue