mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 19:56:40 +07:00
cebfa85eb8
Pull MIPS updates from Ralf Baechle: "The MIPS bits for 3.8. This also includes a bunch fixes that were sitting in the linux-mips.org git tree for a long time. This pull request contains updates to several OCTEON drivers and the board support code for BCM47XX, BCM63XX, XLP, XLR, XLS, lantiq, Loongson1B, updates to the SSB bus support, MIPS kexec code and adds support for kdump. When pulling this, there are two expected merge conflicts in include/linux/bcma/bcma_driver_chipcommon.h which are trivial to resolve, just remove the conflict markers and keep both alternatives." * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (90 commits) MIPS: PMC-Sierra Yosemite: Remove support. VIDEO: Newport Fix console crashes MIPS: wrppmc: Fix build of PCI code. MIPS: IP22/IP28: Fix build of EISA code. MIPS: RB532: Fix build of prom code. MIPS: PowerTV: Fix build. MIPS: IP27: Correct fucked grammar in ops-bridge.c MIPS: Highmem: Fix build error if CONFIG_DEBUG_HIGHMEM is disabled MIPS: Fix potencial corruption MIPS: Fix for warning from FPU emulation code MIPS: Handle COP3 Unusable exception as COP1X for FP emulation MIPS: Fix poweroff failure when HOTPLUG_CPU configured. MIPS: MT: Fix build with CONFIG_UIDGID_STRICT_TYPE_CHECKS=y MIPS: Remove unused smvp.h MIPS/EDAC: Improve OCTEON EDAC support. MIPS: OCTEON: Add definitions for OCTEON memory contoller registers. MIPS: OCTEON: Add OCTEON family definitions to octeon-model.h ata: pata_octeon_cf: Use correct byte order for DMA in when built little-endian. MIPS/OCTEON/ata: Convert pata_octeon_cf.c to use device tree. MIPS: Remove usage of CEVT_R4K_LIB config option. ...
105 lines
2.8 KiB
C
105 lines
2.8 KiB
C
#ifndef LINUX_BCMA_PRIVATE_H_
|
|
#define LINUX_BCMA_PRIVATE_H_
|
|
|
|
#ifndef pr_fmt
|
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
#endif
|
|
|
|
#include <linux/bcma/bcma.h>
|
|
#include <linux/delay.h>
|
|
|
|
#define BCMA_CORE_SIZE 0x1000
|
|
|
|
#define bcma_err(bus, fmt, ...) \
|
|
pr_err("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
|
|
#define bcma_warn(bus, fmt, ...) \
|
|
pr_warn("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
|
|
#define bcma_info(bus, fmt, ...) \
|
|
pr_info("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
|
|
#define bcma_debug(bus, fmt, ...) \
|
|
pr_debug("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
|
|
|
|
struct bcma_bus;
|
|
|
|
/* main.c */
|
|
int __devinit bcma_bus_register(struct bcma_bus *bus);
|
|
void bcma_bus_unregister(struct bcma_bus *bus);
|
|
int __init bcma_bus_early_register(struct bcma_bus *bus,
|
|
struct bcma_device *core_cc,
|
|
struct bcma_device *core_mips);
|
|
#ifdef CONFIG_PM
|
|
int bcma_bus_suspend(struct bcma_bus *bus);
|
|
int bcma_bus_resume(struct bcma_bus *bus);
|
|
#endif
|
|
|
|
/* scan.c */
|
|
int bcma_bus_scan(struct bcma_bus *bus);
|
|
int __init bcma_bus_scan_early(struct bcma_bus *bus,
|
|
struct bcma_device_id *match,
|
|
struct bcma_device *core);
|
|
void bcma_init_bus(struct bcma_bus *bus);
|
|
|
|
/* sprom.c */
|
|
int bcma_sprom_get(struct bcma_bus *bus);
|
|
|
|
/* driver_chipcommon.c */
|
|
#ifdef CONFIG_BCMA_DRIVER_MIPS
|
|
void bcma_chipco_serial_init(struct bcma_drv_cc *cc);
|
|
#endif /* CONFIG_BCMA_DRIVER_MIPS */
|
|
|
|
/* driver_chipcommon_pmu.c */
|
|
u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc);
|
|
u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc);
|
|
|
|
#ifdef CONFIG_BCMA_SFLASH
|
|
/* driver_chipcommon_sflash.c */
|
|
int bcma_sflash_init(struct bcma_drv_cc *cc);
|
|
extern struct platform_device bcma_sflash_dev;
|
|
#else
|
|
static inline int bcma_sflash_init(struct bcma_drv_cc *cc)
|
|
{
|
|
bcma_err(cc->core->bus, "Serial flash not supported\n");
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_BCMA_SFLASH */
|
|
|
|
#ifdef CONFIG_BCMA_NFLASH
|
|
/* driver_chipcommon_nflash.c */
|
|
int bcma_nflash_init(struct bcma_drv_cc *cc);
|
|
extern struct platform_device bcma_nflash_dev;
|
|
#else
|
|
static inline int bcma_nflash_init(struct bcma_drv_cc *cc)
|
|
{
|
|
bcma_err(cc->core->bus, "NAND flash not supported\n");
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_BCMA_NFLASH */
|
|
|
|
#ifdef CONFIG_BCMA_HOST_PCI
|
|
/* host_pci.c */
|
|
extern int __init bcma_host_pci_init(void);
|
|
extern void __exit bcma_host_pci_exit(void);
|
|
#endif /* CONFIG_BCMA_HOST_PCI */
|
|
|
|
/* driver_pci.c */
|
|
u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
|
|
|
|
extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc);
|
|
|
|
#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
|
|
bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc);
|
|
void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
|
|
#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
|
|
|
|
#ifdef CONFIG_BCMA_DRIVER_GPIO
|
|
/* driver_gpio.c */
|
|
int bcma_gpio_init(struct bcma_drv_cc *cc);
|
|
#else
|
|
static inline int bcma_gpio_init(struct bcma_drv_cc *cc)
|
|
{
|
|
return -ENOTSUPP;
|
|
}
|
|
#endif /* CONFIG_BCMA_DRIVER_GPIO */
|
|
|
|
#endif
|