mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-06 12:53:21 +09:00
![Simon Glass](/assets/img/avatar_default.png)
Use the driver-model PCI functions here where possible. For now we have to search for the device with pci_bus_find_bdf() but at some point we can put this in a proper driver and avoid this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
34 lines
859 B
C
34 lines
859 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(struct udevice *dev, 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
|