devices.h (1ac91b1f686e9d819b16525baf2e8db3c282edba) | devices.h (a7473717483ef3bb78563611bf1b3b82c5515b2e) |
---|---|
1#ifndef __ATH25_DEVICES_H 2#define __ATH25_DEVICES_H 3 4#include <linux/cpu.h> 5 6#define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) 7 8#define ATH25_IRQ_CPU_CLOCK (MIPS_CPU_IRQ_BASE + 7) /* C0_CAUSE: 0x8000 */ 9 | 1#ifndef __ATH25_DEVICES_H 2#define __ATH25_DEVICES_H 3 4#include <linux/cpu.h> 5 6#define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) 7 8#define ATH25_IRQ_CPU_CLOCK (MIPS_CPU_IRQ_BASE + 7) /* C0_CAUSE: 0x8000 */ 9 |
10extern struct ar231x_board_config ath25_board; |
|
10extern void (*ath25_irq_dispatch)(void); 11 | 11extern void (*ath25_irq_dispatch)(void); 12 |
13int ath25_find_config(phys_addr_t offset, unsigned long size); |
|
12void ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk); 13 14static inline bool is_ar2315(void) 15{ 16 return (current_cpu_data.cputype == CPU_4KEC); 17} 18 19static inline bool is_ar5312(void) 20{ 21 return !is_ar2315(); 22} 23 24#endif | 14void ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk); 15 16static inline bool is_ar2315(void) 17{ 18 return (current_cpu_data.cputype == CPU_4KEC); 19} 20 21static inline bool is_ar5312(void) 22{ 23 return !is_ar2315(); 24} 25 26#endif |