paul@0 | 1 | /* |
paul@27 | 2 | * Copyright 2009 (C) Qi Hardware Inc., |
paul@27 | 3 | * Author: Xiangfu Liu <xiangfu@sharism.cc> |
paul@0 | 4 | * |
paul@0 | 5 | * This program is free software; you can redistribute it and/or |
paul@0 | 6 | * modify it under the terms of the GNU General Public License |
paul@0 | 7 | * as published by the Free Software Foundation; either version |
paul@0 | 8 | * 3 of the License, or (at your option) any later version. |
paul@27 | 9 | * |
paul@27 | 10 | * This program is distributed in the hope that it will be useful, |
paul@27 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@27 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@27 | 13 | * GNU General Public License for more details. |
paul@27 | 14 | * |
paul@27 | 15 | * You should have received a copy of the GNU General Public License |
paul@27 | 16 | * along with this program; if not, write to the Free Software |
paul@27 | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@27 | 18 | * Boston, MA 02110-1301, USA |
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__ */ |