paul@0 | 1 | /* |
paul@63 | 2 | * Ingenic XBurst type definitions. |
paul@63 | 3 | * |
paul@63 | 4 | * Copyright 2009 (C) Qi Hardware Inc. |
paul@27 | 5 | * Author: Xiangfu Liu <xiangfu@sharism.cc> |
paul@0 | 6 | * |
paul@63 | 7 | * This program is free software: you can redistribute it and/or modify |
paul@63 | 8 | * it under the terms of the GNU General Public License as published by |
paul@63 | 9 | * the Free Software Foundation, either version 3 of the License, or |
paul@63 | 10 | * (at your option) any later version. |
paul@27 | 11 | * |
paul@27 | 12 | * This program is distributed in the hope that it will be useful, |
paul@27 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@27 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@27 | 15 | * GNU General Public License for more details. |
paul@27 | 16 | * |
paul@27 | 17 | * You should have received a copy of the GNU General Public License |
paul@63 | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
paul@0 | 19 | */ |
paul@0 | 20 | |
paul@0 | 21 | #ifndef __XBURST_TYPES_H__ |
paul@0 | 22 | #define __XBURST_TYPES_H__ |
paul@0 | 23 | |
paul@0 | 24 | typedef unsigned int size_t; |
paul@0 | 25 | typedef unsigned char u8; |
paul@0 | 26 | typedef unsigned short u16; |
paul@0 | 27 | typedef unsigned int u32; |
paul@0 | 28 | |
paul@0 | 29 | #define REG8(addr) *((volatile u8 *)(addr)) |
paul@0 | 30 | #define REG16(addr) *((volatile u16 *)(addr)) |
paul@0 | 31 | #define REG32(addr) *((volatile u32 *)(addr)) |
paul@0 | 32 | |
paul@0 | 33 | #endif /* __XBURST_TYPES_H__ */ |