Chameleon

Chameleon Svn Source Tree

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

Source at commit 1166 created 13 years 10 days ago.
By meklort, Fixed recent Makefile changes. Please do not use /Users/evan/SourceCode/tmp/chameleon/trunk or VPATH. the *only* time you should use /Users/evan/SourceCode/tmp/chameleon/trunk is when setting the SRCROOT variable. Also note that very soon make pkg is going to be removed. The pkg build script in trunk is very out of date. Instead please use the package maker at http://forge.voodooprojects.org/p/chameleonApplications/. Once this is ready for trunk it will be merged.
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
27bool setup_ati_devprop(pci_dt_t *ati_dev);
28
29struct ati_chipsets_t {
30unsigned device;
31char *name;
32};
33
34struct ati_data_key {
35uint32_t size;
36char *name;
37uint8_t data[];
38};
39
40#define REG8(reg) ((volatile uint8_t *)regs)[(reg)]
41#define REG16(reg) ((volatile uint16_t *)regs)[(reg) >> 1]
42#define REG32R(reg) ((volatile uint32_t *)regs)[(reg) >> 2]
43#define REG32W(reg, val) ((volatile uint32_t *)regs)[(reg) >> 2] = (val)
44
45
46#endif /* !__LIBSAIO_ATI_H */
47

Archive Download this file

Revision: 1166