Use dentry_path() to create full path to inode object
[pohmelfs.git] / arch / blackfin / include / asm / bfin_ppi.h
blob3be05faa2c65ad14fa73dcf8ef44f85da4cc97cd
1 /*
2 * bfin_ppi.h - interface to Blackfin PPIs
4 * Copyright 2005-2010 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
7 */
9 #ifndef __ASM_BFIN_PPI_H__
10 #define __ASM_BFIN_PPI_H__
12 #include <linux/types.h>
15 * All Blackfin system MMRs are padded to 32bits even if the register
16 * itself is only 16bits. So use a helper macro to streamline this.
18 #define __BFP(m) u16 m; u16 __pad_##m
21 * bfin ppi registers layout
23 struct bfin_ppi_regs {
24 __BFP(control);
25 __BFP(status);
26 __BFP(count);
27 __BFP(delay);
28 __BFP(frame);
32 * bfin eppi registers layout
34 struct bfin_eppi_regs {
35 __BFP(status);
36 __BFP(hcount);
37 __BFP(hdelay);
38 __BFP(vcount);
39 __BFP(vdelay);
40 __BFP(frame);
41 __BFP(line);
42 __BFP(clkdiv);
43 u32 control;
44 u32 fs1w_hbl;
45 u32 fs1p_avpl;
46 u32 fs2w_lvb;
47 u32 fs2p_lavf;
48 u32 clip;
51 #undef __BFP
53 #endif