mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-31 22:43:16 -05:00
[POWERPC] Xserve cpu-meter driver
This is a small driver for the Xserve G5 CPU-meter blue LEDs on the front-panel. It might work on the Xserve G4 as well though that was not tested. It's pretty basic and could use some improvements if somebody cares doing them. :) Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
088df4d256
commit
3e00a5aec3
@@ -95,7 +95,13 @@ struct dbdma_cmd {
|
||||
#define DBDMA_DO_STOP(regs) do { \
|
||||
out_le32(&((regs)->control), (RUN|FLUSH)<<16); \
|
||||
while(in_le32(&((regs)->status)) & (ACTIVE|FLUSH)) \
|
||||
; \
|
||||
; \
|
||||
} while(0)
|
||||
|
||||
#define DBDMA_DO_RESET(regs) do { \
|
||||
out_le32(&((regs)->control), (ACTIVE|DEAD|WAKE|FLUSH|PAUSE|RUN)<<16);\
|
||||
while(in_le32(&((regs)->status)) & (RUN)) \
|
||||
; \
|
||||
} while(0)
|
||||
|
||||
#endif /* _ASM_DBDMA_H_ */
|
||||
|
||||
Reference in New Issue
Block a user