Chameleon

Chameleon Commit Details

Date:2010-09-01 11:23:53 (8 years 11 months ago)
Author:Azimutz
Commit:470
Parents: 469
Message:Adding final changes on libsaio folder. A bit of clean up and #include tuning. Builds, works... testing further...
Changes:
M/branches/azimutz/Chazi/i386/libsaio/device_tree.c
M/branches/azimutz/Chazi/i386/libsaio/vbe.h
M/branches/azimutz/Chazi/i386/boot2/ramdisk.h
M/branches/azimutz/Chazi/i386/libsaio/edid.c
M/branches/azimutz/Chazi/i386/boot2/gui.c
M/branches/azimutz/Chazi/i386/libsaio/pci_setup.c
M/branches/azimutz/Chazi/i386/boot2/gui.h
M/branches/azimutz/Chazi/i386/libsaio/Makefile
M/branches/azimutz/Chazi/i386/libsaio/vbe.c

File differences

branches/azimutz/Chazi/i386/libsaio/vbe.c
106106
107107
108108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
109124
110125
111126
}
/*
*EDID/DDC Readings - AutoResolution
*/
int getEDID( void *ddcblock, uint8_t blocksleft )
{
bb.intno = 0x10;
bb.eax.rr = FUNC_GET_EDID;
bb.ebx.r.l = SERVICE_READ_EDID;
bb.es = SEG( ddcblock );
bb.edi.rr = OFF( ddcblock );
bb.edx.rr = blocksleft;
bios( &bb );
return( bb.eax.r.h );
}
/*
* Default GTF parameter values.
*/
#define kCellGranularity 8.0 // character cell granularity
branches/azimutz/Chazi/i386/libsaio/device_tree.c
397397
398398
399399
400
401
400402
401403
402404
......
535537
536538
537539
538
539540
540
541
_PrintTree(node, 0);
}
//Azi: from autoresolution - check this stuff
#if 0
void
DT__PrintFlattenedNode(DTEntry entry, int level)
{
return 0;
}
#endif
#endif
branches/azimutz/Chazi/i386/libsaio/vbe.h
3535
3636
3737
38
39
40
3841
3942
4043
......
268271
269272
270273
274
275
276
277
278
271279
272280
273281
#ifndef __LIBSAIO_VBE_H
#define __LIBSAIO_VBE_H
#include "edid.h"//Azi:autoresolution
#include "autoresolution.h"
#define MIN_VESA_VERSION 0x200
#define SEG(address) \
*/
typedef unsigned long VBEPalette[256];
/*
* DDC - AutoResolution
*/
extern int getEDID(void *ddcblock, uint8_t blocksleft);
extern int getVBEInfo(void *vinfo_p);
extern int getVBEModeInfo(int mode, void *minfo_p);
extern int getVBEDACFormat(unsigned char *format);
branches/azimutz/Chazi/i386/libsaio/Makefile
4747
4848
4949
50
5150
5251
5352
pci_root.o convert.o mem.o aml_generator.o \
autoresolution.o edid.o
SAIO_EXTERN_OBJS = console.o
SFILES =
branches/azimutz/Chazi/i386/libsaio/pci_setup.c
44
55
66
7
78
89
910
......
3031
3132
3233
33
34
3435
3536
3637
......
4445
4546
4647
47
48
4849
4950
5051
51
52
52
53
54
55
56
57
5358
54
55
59
60
5661
5762
5863
#include "pci.h"
#include "nvidia.h"
#include "ati.h"
#include "gma.h" //Azi:autoresolution
extern void set_eth_builtin(pci_dt_t *eth_dev);
extern void notify_usb_dev(pci_dt_t *pci_dev);
switch (current->class_id)
{
case PCI_CLASS_BRIDGE_HOST:
dram_controller_dev = current;
dram_controller_dev = current;
break;
case PCI_CLASS_NETWORK_ETHERNET:
{
case PCI_VENDOR_ID_ATI:
verbose("ATI VGA Controller [%04x:%04x] :: %s \n",
current->vendor_id, current->device_id, devicepath);
current->vendor_id, current->device_id, devicepath);
setup_ati_devprop(current);
break;
case PCI_VENDOR_ID_INTEL:
/* message to be removed once support for these cards is added */
case PCI_VENDOR_ID_INTEL: // AutoResolution
verbose("Intel Graphics Controller [%04x:%04x] :: %s \n",
current->vendor_id, current->device_id, devicepath);
setup_gma_devprop(current);
break;
/* message to be removed once support for these cards is added
verbose("Intel VGA Controller [%04x:%04x] :: %s (currently NOT SUPPORTED)\n",
current->vendor_id, current->device_id, devicepath);
break;
current->vendor_id, current->device_id, devicepath);
break;*/
case PCI_VENDOR_ID_NVIDIA:
setup_nvidia_devprop(current);
branches/azimutz/Chazi/i386/libsaio/edid.c
99
1010
1111
12
13
1412
1513
1614
#include "libsaio.h"
#include "edid.h"
#include "vbe.h"
#include "bootstruct.h"
#include "graphics.h"
#include "boot.h"
branches/azimutz/Chazi/i386/boot2/ramdisk.h
77
88
99
10
11
12
1013
1114
1215
#ifndef __BOOT_RAMDISK_H
#define __BOOT_RAMDISK_H
//Azi:includes
#include "saio_internal.h" // get back to this later
#define RAMDISKCONFIG_FILENAME "rd(0,0)/RAMDisk.plist"
//#define kPostbootRamdisk
void md0Ramdisk();
branches/azimutz/Chazi/i386/boot2/gui.c
680680
681681
682682
683
684
685
683
684
686685
687686
688687
int initGUI(void)
{
intval;
intlen;
chardirspec[256];
intval, len, count;
chardirspec[128]; //Azi: a bit of testing***
getValueForKey( "Theme", &theme_name, &len, &bootInfo->bootConfig );
if ((strlen(theme_name) + 27) > sizeof(dirspec)) {
branches/azimutz/Chazi/i386/boot2/gui.h
1414
1515
1616
17
18
1917
2018
2119
//#include "graphic_utils.h" - same as above
#include "graphics.h"
#include "picopng.h"
#include "autoresolution.h"
#include "edid.h"
#ifndef __BOOT2_GUI_H
#define __BOOT2_GUI_H

Archive Download the corresponding diff file

Revision: 470