Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/modules/GraphicsEnabler/ati.h

1/*
2 * ATI injector
3 *
4 * Copyright (C) 2009 Jasmin Fazlic, iNDi, netkas
5 *
6 * ATI injector is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ATI driver and injector is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with ATI injector. If not, see <http://www.gnu.org/licenses/>.
18 */
19 /*
20 * Alternatively you can choose to comply with APSL
21 */
22
23
24#ifndef __LIBSAIO_ATI_H
25#define __LIBSAIO_ATI_H
26
27#define kUseAtiROM"UseAtiROM"/* ati.c */
28
29bool setup_ati_devprop(pci_dt_t *ati_dev);
30
31struct ati_chipsets_t {
32unsigned device;
33char *name;
34};
35
36struct ati_data_key {
37uint32_t size;
38char *name;
39uint8_t data[];
40};
41
42#define REG8(reg) ((volatile uint8_t *)regs)[(reg)]
43#define REG16(reg) ((volatile uint16_t *)regs)[(reg) >> 1]
44#define REG32R(reg) ((volatile uint32_t *)regs)[(reg) >> 2]
45#define REG32W(reg, val) ((volatile uint32_t *)regs)[(reg) >> 2] = (val)
46
47
48#endif /* !__LIBSAIO_ATI_H */
49

Archive Download this file

Revision: 789