PCI: pcie-check-and-return-bus_register-errors fix
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-powerpc / fs_pd.h
blob3d0e819d37f13ea1f55a027e4381c8e1ad5bf1b2
1 /*
2 * Platform information definitions.
4 * 2006 (c) MontaVista Software, Inc.
5 * Vitaly Bordug <vbordug@ru.mvista.com>
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
12 #ifndef FS_PD_H
13 #define FS_PD_H
14 #include <asm/cpm2.h>
15 #include <sysdev/fsl_soc.h>
16 #include <asm/time.h>
18 static inline int uart_baudrate(void)
20 return get_baudrate();
23 static inline int uart_clock(void)
25 return ppc_proc_freq;
28 #define cpm2_map(member) \
29 ({ \
30 u32 offset = offsetof(cpm2_map_t, member); \
31 void *addr = ioremap (CPM_MAP_ADDR + offset, \
32 sizeof( ((cpm2_map_t*)0)->member)); \
33 addr; \
36 #define cpm2_map_size(member, size) \
37 ({ \
38 u32 offset = offsetof(cpm2_map_t, member); \
39 void *addr = ioremap (CPM_MAP_ADDR + offset, size); \
40 addr; \
43 #define cpm2_unmap(addr) iounmap(addr)
45 #endif