Chameleon

Chameleon Commit Details

Date:2010-09-26 05:15:35 (8 years 9 months ago)
Author:Evan Lojewski
Commit:552
Parents: 551
Message:USB Fix for ion machines.
Changes:
M/branches/meklort/i386/modules/USBFix/USBFix.c
M/branches/meklort/i386/modules/USBFix/usb.c

File differences

branches/meklort/i386/modules/USBFix/USBFix.c
1212
1313
1414
15
16
17
15
16
17
18
1819
1920
2021
void USBFix_pci_hook(pci_dt_t* current, void* arg2, void* arg3, void* arg4)
{
if(current->class_id != PCI_CLASS_SERIAL_USB) return;
notify_usb_dev(current);
if(current->class_id == PCI_CLASS_SERIAL_USB)
{
notify_usb_dev(current);
}
}
void USBFix_start_hook(void* arg1, void* arg2, void* arg3, void* arg4)
branches/meklort/i386/modules/USBFix/usb.c
3838
3939
4040
41
4241
4342
4443
......
8786
8887
8988
90
9189
90
9291
9392
9493
// Add usb device to the list
void notify_usb_dev(pci_dt_t *pci_dev)
{
struct pciList* current = usbList;
if(!usbList)
{
{
// EHCI
case 0x20:
if(fix_ehci) retVal &= ehci_acquire(current->pciDev);
if(fix_legacy) retVal &= legacy_off(current->pciDev);
if(fix_ehci) retVal &= ehci_acquire(current->pciDev);
break;

Archive Download the corresponding diff file

Revision: 552