common.h (aeba6964788d0d8ac0a32113ffecdfdb0db7c786) | common.h (fbf04d814d0a57b0eead41efd70b3fbe903201d9) |
---|---|
1#ifndef __ARCH_ORION5X_COMMON_H 2#define __ARCH_ORION5X_COMMON_H 3 4#include <linux/reboot.h> 5 6struct dsa_platform_data; 7struct mv643xx_eth_platform_data; 8struct mv_sata_platform_data; --- 54 unchanged lines hidden (view full) --- 63int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys); 64struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys); 65int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); 66 67struct meminfo; 68struct tag; 69extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *); 70 | 1#ifndef __ARCH_ORION5X_COMMON_H 2#define __ARCH_ORION5X_COMMON_H 3 4#include <linux/reboot.h> 5 6struct dsa_platform_data; 7struct mv643xx_eth_platform_data; 8struct mv_sata_platform_data; --- 54 unchanged lines hidden (view full) --- 63int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys); 64struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys); 65int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); 66 67struct meminfo; 68struct tag; 69extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *); 70 |
71#ifdef CONFIG_MACH_MSS2_DT 72extern void mss2_init(void); 73#else 74static inline void mss2_init(void) {} 75#endif 76 |
|
71/***************************************************************************** 72 * Helpers to access Orion registers 73 ****************************************************************************/ 74/* 75 * These are not preempt-safe. Locks, if needed, must be taken 76 * care of by the caller. 77 */ 78#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r)) 79#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r)) 80 81#endif | 77/***************************************************************************** 78 * Helpers to access Orion registers 79 ****************************************************************************/ 80/* 81 * These are not preempt-safe. Locks, if needed, must be taken 82 * care of by the caller. 83 */ 84#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r)) 85#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r)) 86 87#endif |