diff options
Diffstat (limited to 'include/asm-powerpc/qe.h')
-rw-r--r-- | include/asm-powerpc/qe.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/asm-powerpc/qe.h b/include/asm-powerpc/qe.h index 430dc77b35fc..c3be6e2e1490 100644 --- a/include/asm-powerpc/qe.h +++ b/include/asm-powerpc/qe.h | |||
@@ -85,6 +85,7 @@ extern int par_io_data_set(u8 port, u8 pin, u8 val); | |||
85 | /* QE internal API */ | 85 | /* QE internal API */ |
86 | int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input); | 86 | int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input); |
87 | enum qe_clock qe_clock_source(const char *source); | 87 | enum qe_clock qe_clock_source(const char *source); |
88 | unsigned int qe_get_brg_clk(void); | ||
88 | int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier); | 89 | int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier); |
89 | int qe_get_snum(void); | 90 | int qe_get_snum(void); |
90 | void qe_put_snum(u8 snum); | 91 | void qe_put_snum(u8 snum); |
@@ -92,7 +93,16 @@ unsigned long qe_muram_alloc(int size, int align); | |||
92 | int qe_muram_free(unsigned long offset); | 93 | int qe_muram_free(unsigned long offset); |
93 | unsigned long qe_muram_alloc_fixed(unsigned long offset, int size); | 94 | unsigned long qe_muram_alloc_fixed(unsigned long offset, int size); |
94 | void qe_muram_dump(void); | 95 | void qe_muram_dump(void); |
95 | void *qe_muram_addr(unsigned long offset); | 96 | |
97 | static inline void __iomem *qe_muram_addr(unsigned long offset) | ||
98 | { | ||
99 | return (void __iomem *)&qe_immr->muram[offset]; | ||
100 | } | ||
101 | |||
102 | static inline unsigned long qe_muram_offset(void __iomem *addr) | ||
103 | { | ||
104 | return addr - (void __iomem *)qe_immr->muram; | ||
105 | } | ||
96 | 106 | ||
97 | /* Structure that defines QE firmware binary files. | 107 | /* Structure that defines QE firmware binary files. |
98 | * | 108 | * |