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@217 | 6 | * Copyright (C) 2017 Paul Boddie <paul@boddie.org.uk> |
paul@0 | 7 | * |
paul@63 | 8 | * This program is free software: you can redistribute it and/or modify |
paul@63 | 9 | * it under the terms of the GNU General Public License as published by |
paul@63 | 10 | * the Free Software Foundation, either version 3 of the License, or |
paul@63 | 11 | * (at your option) any later version. |
paul@27 | 12 | * |
paul@27 | 13 | * This program is distributed in the hope that it will be useful, |
paul@27 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@27 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@27 | 16 | * GNU General Public License for more details. |
paul@27 | 17 | * |
paul@27 | 18 | * You should have received a copy of the GNU General Public License |
paul@63 | 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
paul@0 | 20 | */ |
paul@0 | 21 | |
paul@0 | 22 | #ifndef __XBURST_TYPES_H__ |
paul@0 | 23 | #define __XBURST_TYPES_H__ |
paul@0 | 24 | |
paul@217 | 25 | #include <stdint.h> |
paul@0 | 26 | |
paul@217 | 27 | #define REG8(addr) *((volatile uint8_t *)(addr)) |
paul@217 | 28 | #define REG16(addr) *((volatile uint16_t *)(addr)) |
paul@217 | 29 | #define REG32(addr) *((volatile uint32_t *)(addr)) |
paul@0 | 30 | |
paul@0 | 31 | #endif /* __XBURST_TYPES_H__ */ |