mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-05 20:33:21 +09:00
![Bin Meng](/assets/img/avatar_default.png)
This commit cleans up the lapic codes: - Delete arch/x86/include/asm/lapic_def.h, and move register and bit defines into arch/x86/include/asm/lapic.h - Use MSR defines from msr-index.h in enable_lapic() and disable_lapic() - Remove unnecessary stuff like NEED_LAPIC, X86_GOOD_APIC and CONFIG_AP_IN_SIPI_WAIT - Move struct x86_cpu_priv defines to asm/arch-ivybridge/bd82x6x.h, as it is not apic related and only used by ivybridge - Fix coding convention issues Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
35 lines
887 B
C
35 lines
887 B
C
/*
|
|
* Copyright (C) 2014 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_BD82X6X_H
|
|
#define _ASM_ARCH_BD82X6X_H
|
|
|
|
void bd82x6x_sata_init(pci_dev_t dev, const void *blob, int node);
|
|
void bd82x6x_sata_enable(pci_dev_t dev, const void *blob, int node);
|
|
void bd82x6x_pci_init(pci_dev_t dev);
|
|
void bd82x6x_usb_ehci_init(pci_dev_t dev);
|
|
void bd82x6x_usb_xhci_init(pci_dev_t dev);
|
|
int gma_func0_init(pci_dev_t dev, struct pci_controller *hose,
|
|
const void *blob, int node);
|
|
int bd82x6x_init(void);
|
|
|
|
/**
|
|
* struct x86_cpu_priv - Information about a single CPU
|
|
*
|
|
* @apic_id: Advanced Programmable Interrupt Controller Identifier, which is
|
|
* just a number representing the CPU core
|
|
*
|
|
* TODO: Move this to driver model once lifecycle is understood
|
|
*/
|
|
struct x86_cpu_priv {
|
|
int apic_id;
|
|
int start_err;
|
|
};
|
|
|
|
int model_206ax_init(struct x86_cpu_priv *cpu);
|
|
|
|
#endif
|