Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/libsaio/ati.h

Source at commit 406 created 13 years 10 months ago.
By azimutz, Consolidating this position: while testing the new theme and boot-log function, i realized that when it comes to verbose boot, using the -v flag on Boot.plist (or typed at boot prompt) and using the Menu (Boot Verbose), doesn't produce the exact same output; using the Menu displays all the messages, while typing -v causes some of the first messages to disappear. So, moving this to an early stage isn't anymore a question of what is printed to screen or not! Tests also showed another diff: when using -v flag typed, the Boot Banner is cleared and messages start to print right away, while using Boot Verbose on the Menu, keeps the Banner, prints the first 2 or 3 messages right below it and the rest are only printed, when this code runs and does it's thing. Moving the code to this position fixes this glitch.
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: 406