swiotlb.h (391133fd5adaba319795cd96882d1ea405c41cf6) swiotlb.h (68005b67d15a1ee5b5ddff965175728e65fa73e7)
1/*
2 * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 */
10
11#ifndef __ASM_SWIOTLB_H
12#define __ASM_SWIOTLB_H
13
14#include <linux/swiotlb.h>
15
1/*
2 * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 */
10
11#ifndef __ASM_SWIOTLB_H
12#define __ASM_SWIOTLB_H
13
14#include <linux/swiotlb.h>
15
16extern const struct dma_map_ops powerpc_swiotlb_dma_ops;
17
18extern unsigned int ppc_swiotlb_enable;
16extern unsigned int ppc_swiotlb_enable;
19int __init swiotlb_setup_bus_notifier(void);
20
21#ifdef CONFIG_SWIOTLB
22void swiotlb_detect_4g(void);
23#else
24static inline void swiotlb_detect_4g(void) {}
25#endif
26
27#endif /* __ASM_SWIOTLB_H */
17
18#ifdef CONFIG_SWIOTLB
19void swiotlb_detect_4g(void);
20#else
21static inline void swiotlb_detect_4g(void) {}
22#endif
23
24#endif /* __ASM_SWIOTLB_H */