0e08c2ac4fa877ddd315178c8446cf0fa32e2e8e
2 * Library's hardware interface.
4 * Copyright (C) 2007 OpenMoko, Inc.
5 * Author: Chia-I Wu <olv@openmoko.org>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 or
10 * (at your option) version 3 of the License.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #include "glamo-regs.h"
27 #define GLAMO_MMIO_BASE 0x8000000
28 #define GLAMO_MMIO_SIZE 0x2400
30 #define GLAMO_VRAM_FB 0x000000
31 #define GLAMO_VRAM_CMDQ 0x100000
32 #define GLAMO_VRAM_ISP 0x200000
33 #define GLAMO_VRAM_MPEG 0x300000
34 #define GLAMO_VRAM_2D 0x400000
40 GLAMO_ENGINE_2D
, /* should be last one */
43 typedef unsigned short GLAMO_REG_TYPE
;
45 void glamo_hw_dump(int reg
, int len
);
47 void glamo_hw_engine_reset(enum glamo_engine engine
);
48 void glamo_hw_engine_enable(enum glamo_engine engine
);
49 void glamo_hw_engine_disable(enum glamo_engine engine
);