Chameleon

Chameleon Commit Details

Date:2012-07-18 14:44:51 (7 years 1 month ago)
Author:armel cadet-petit
Commit:2017
Parents: 2016
Message:Added YellowIconFixer renamed as sata.dylib
Changes:
A/trunk/i386/modules/Sata/Cconfig
A/trunk/i386/modules/Sata/Sata.c
A/trunk/i386/modules/Sata/Makefile
A/trunk/i386/modules/Sata
A/trunk/i386/modules/Sata/include
M/trunk/i386/modules/Makefile
M/trunk/Chameleon.xcodeproj/project.pbxproj
M/trunk/CHANGES
M/trunk/i386/modules/Cconfig

File differences

trunk/Chameleon.xcodeproj/project.pbxproj
11161116
11171117
11181118
1119
1120
1121
11191122
11201123
11211124
......
26852688
26862689
26872690
2691
26882692
26892693
26902694
......
30433047
30443048
30453049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
30463068
30473069
30483070
A396E5761502D0580025A245 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = wrapper.rtfd; name = zh_TW; path = zh_TW.lproj/Welcome.rtfd; sourceTree = "<group>"; };
A396E5821502D3320025A245 /* Conclusion.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = Conclusion.html; sourceTree = "<group>"; };
A3F1F267141B9B3B00DDA709 /* Readme.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Readme.txt; sourceTree = "<group>"; };
AB1DE71815B6E2D00088E06B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
AB1DE71A15B6E2D00088E06B /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
AB1DE71B15B6E2D00088E06B /* Sata.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Sata.c; sourceTree = "<group>"; };
B0056CE711F3868000754B65 /* boot0.s */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = boot0.s; sourceTree = "<group>"; };
B0056CE811F3868000754B65 /* chain0.s */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = chain0.s; sourceTree = "<group>"; };
B0056CE911F3868000754B65 /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
A3561D021414024D00E9B51E /* MakeInc.dir */,
A3561D031414024D00E9B51E /* Modules.txt */,
A3561D041414024D00E9B51E /* Resolution */,
AB1DE71715B6E2D00088E06B /* Sata */,
A3561D0F1414024D00E9B51E /* uClibcxx */,
);
path = modules;
path = Scripts;
sourceTree = "<group>";
};
AB1DE71715B6E2D00088E06B /* Sata */ = {
isa = PBXGroup;
children = (
AB1DE71815B6E2D00088E06B /* Cconfig */,
AB1DE71915B6E2D00088E06B /* include */,
AB1DE71A15B6E2D00088E06B /* Makefile */,
AB1DE71B15B6E2D00088E06B /* Sata.c */,
);
path = Sata;
sourceTree = "<group>";
};
AB1DE71915B6E2D00088E06B /* include */ = {
isa = PBXGroup;
children = (
);
path = include;
sourceTree = "<group>";
};
B0056CE511F3868000754B65 /* i386 */ = {
isa = PBXGroup;
children = (
trunk/i386/modules/Cconfig
77
88
99
10
1011
1112
source "i386/modules/klibc/Cconfig"
source "i386/modules/uClibcxx/Cconfig"
source "i386/modules/HelloWorld/Cconfig"
source "i386/modules/Sata/Cconfig"
source "i386/modules/Keylayout/Cconfig"
endmenu
trunk/i386/modules/Sata/Cconfig
1
2
3
4
5
6
7
8
9
10
#
# Chameleon Modules
#
config SATA_MODULE
tristate "Sata Module"
default m
---help---
Say Y here if you want to enable the use of this module.
trunk/i386/modules/Sata/Sata.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Copyright (c) 2011,2012 cparm <armelcadetpetit@gmail.com>. All rights reserved.
*
*/
#include "libsaio.h"
#include "modules.h"
#include "bootstruct.h"
#include "pci.h"
#include "device_inject.h"
#include "platform.h"
#ifndef DEBUG_SATA
#define DEBUG_SATA 0
#endif
#if DEBUG_SATA
#define DBG(x...) printf(x)
#else
#define DBG(x...)
#endif
void SATA_hook(void* arg1, void* arg2, void* arg3, void* arg4);
uint8_t default_SATA_ID[]= {
0x81, 0x26, 0x00, 0x00
};
#define SATA_ID_LEN ( sizeof(default_SATA_ID) / sizeof(uint8_t) )
void SATA_hook(void* arg1, void* arg2, void* arg3, void* arg4)
{
pci_dt_t* current = arg1;
struct DevPropDevice*device = NULL;
char *devicepath = NULL;
if (current && current->class_id == PCI_CLASS_STORAGE_SATA)
{
if (!string)
{
string = devprop_create_string();
if (!string) return;
}
devicepath = get_pci_dev_path(current);
if (!devicepath) return;
device = devprop_add_device(string, devicepath);
if (!device) return;
devprop_add_value(device, "device-id", default_SATA_ID, SATA_ID_LEN);
verbose("SATA device : [%04x:%04x :: %04x], changed to ICH6 ESB2 \n",
current->vendor_id, current->device_id,current->class_id);
}
}
void Sata_start(void);
void Sata_start(void)
{
register_hook_callback("PCIDevice", &SATA_hook);
}
trunk/i386/modules/Sata/Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
MODULE_NAME = Sata
MODULE_DESCRIPTION = This module help Sata devices to be recognized as internal
MODULE_AUTHOR = "Cparm"
MODULE_VERSION = "1.0.0"
MODULE_COMPAT_VERSION = "1.0.0"
MODULE_START = $(MODULE_NAME)_start
MODULE_DEPENDENCIES =
DIR = Sata
MODULE_OBJS = Sata.o
include ../MakeInc.dir
trunk/i386/modules/Makefile
3333
3434
3535
36
37
38
39
3640
3741
3842
SUBDIRS += Keylayout
endif
ifdef CONFIG_SATA_MODULE
SUBDIRS += sata
endif
CFLAGS= -O3 $(MORECPP) -arch i386 -g -static
DEFINES=
CONFIG = hd
trunk/CHANGES
1
2
3
14
25
36
- cparm : Added a Sata module, known as YellowIconFixer in my branch, useful to fix yellow icon issue (can also fix an issue with the apple's dvd player application in moutain lion)
, for now not added in the pkg script !!!
- cparm : Ported the OS detection to the trunk, updated the default theme to v 1.1 (credit to blackosx)
- Added AtiPorts option to GraphicsEnabler, so users can override the default number of ports. It proved

Archive Download the corresponding diff file

Revision: 2017