Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / asm-blackfin / mach-bf561 / blackfin.h
blob3a16df2c86d857fe5df7f0768919fba6158e4594
1 /*
2 * File: include/asm-blackfin/mach-bf561/blackfin.h
3 * Based on:
4 * Author:
6 * Created:
7 * Description:
9 * Rev:
11 * Modified:
13 * Bugs: Enter bugs at http://blackfin.uclinux.org/
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2, or (at your option)
18 * any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; see the file COPYING.
27 * If not, write to the Free Software Foundation,
28 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 #ifndef _MACH_BLACKFIN_H_
32 #define _MACH_BLACKFIN_H_
34 #define BF561_FAMILY
36 #include "bf561.h"
37 #include "mem_map.h"
38 #include "defBF561.h"
39 #include "anomaly.h"
41 #if !defined(__ASSEMBLY__)
42 #include "cdefBF561.h"
43 #endif
45 #define bfin_read_FIO_FLAG_D() bfin_read_FIO0_FLAG_D()
46 #define bfin_write_FIO_FLAG_D(val) bfin_write_FIO0_FLAG_D(val)
47 #define bfin_read_FIO_DIR() bfin_read_FIO0_DIR()
48 #define bfin_write_FIO_DIR(val) bfin_write_FIO0_DIR(val)
49 #define bfin_read_FIO_INEN() bfin_read_FIO0_INEN()
50 #define bfin_write_FIO_INEN(val) bfin_write_FIO0_INEN(val)
52 #define SIC_IWR0 SICA_IWR0
53 #define SIC_IWR1 SICA_IWR1
54 #define SIC_IAR0 SICA_IAR0
55 #define bfin_write_SIC_IMASK0 bfin_write_SICA_IMASK0
56 #define bfin_write_SIC_IMASK1 bfin_write_SICA_IMASK1
57 #define bfin_write_SIC_IWR0 bfin_write_SICA_IWR0
58 #define bfin_write_SIC_IWR1 bfin_write_SICA_IWR1
60 #define bfin_read_SIC_IMASK0 bfin_read_SICA_IMASK0
61 #define bfin_read_SIC_IMASK1 bfin_read_SICA_IMASK1
62 #define bfin_read_SIC_IWR0 bfin_read_SICA_IWR0
63 #define bfin_read_SIC_IWR1 bfin_read_SICA_IWR1
64 #define bfin_read_SIC_ISR0 bfin_read_SICA_ISR0
65 #define bfin_read_SIC_ISR1 bfin_read_SICA_ISR1
67 #define bfin_read_SIC_IMASK(x) bfin_read32(SICA_IMASK0 + (x << 2))
68 #define bfin_write_SIC_IMASK(x, val) bfin_write32((SICA_IMASK0 + (x << 2)), val)
69 #define bfin_read_SIC_ISR(x) bfin_read32(SICA_ISR0 + (x << 2))
70 #define bfin_write_SIC_ISR(x, val) bfin_write32((SICA_ISR0 + (x << 2)), val)
73 #endif /* _MACH_BLACKFIN_H_ */