aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/qe.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/qe.h')
-rw-r--r--include/asm-powerpc/qe.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/asm-powerpc/qe.h b/include/asm-powerpc/qe.h
index a62168ec535f..9d304b1f1608 100644
--- a/include/asm-powerpc/qe.h
+++ b/include/asm-powerpc/qe.h
@@ -38,11 +38,11 @@ int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, u32 cmd_input);
38void qe_setbrg(u32 brg, u32 rate); 38void qe_setbrg(u32 brg, u32 rate);
39int qe_get_snum(void); 39int qe_get_snum(void);
40void qe_put_snum(u8 snum); 40void qe_put_snum(u8 snum);
41u32 qe_muram_alloc(u32 size, u32 align); 41unsigned long qe_muram_alloc(int size, int align);
42int qe_muram_free(u32 offset); 42int qe_muram_free(unsigned long offset);
43u32 qe_muram_alloc_fixed(u32 offset, u32 size); 43unsigned long qe_muram_alloc_fixed(unsigned long offset, int size);
44void qe_muram_dump(void); 44void qe_muram_dump(void);
45void *qe_muram_addr(u32 offset); 45void *qe_muram_addr(unsigned long offset);
46 46
47/* Buffer descriptors */ 47/* Buffer descriptors */
48struct qe_bd { 48struct qe_bd {
@@ -448,10 +448,5 @@ struct ucc_slow_pram {
448#define UCC_FAST_FUNCTION_CODE_DTB_LCL 0x02 448#define UCC_FAST_FUNCTION_CODE_DTB_LCL 0x02
449#define UCC_FAST_FUNCTION_CODE_BDB_LCL 0x01 449#define UCC_FAST_FUNCTION_CODE_BDB_LCL 0x01
450 450
451static inline long IS_MURAM_ERR(const u32 offset)
452{
453 return offset > (u32) - 1000L;
454}
455
456#endif /* __KERNEL__ */ 451#endif /* __KERNEL__ */
457#endif /* _ASM_POWERPC_QE_H */ 452#endif /* _ASM_POWERPC_QE_H */