Subversion Repositories Kolibri OS

Rev

Rev 1498 | Rev 1625 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1498 Rev 1500
Line 33... Line 33...
33
	ACPI_STATUS status;
33
	ACPI_STATUS status;
Line 34... Line 34...
34
 
34
 
Line 35... Line 35...
35
    ACPI_BUFFER buffer;
35
    ACPI_BUFFER buffer;
Line 36... Line 36...
36
 
36
 
Line 37... Line 37...
37
    ACPI_DEVICE_INFO info;
37
    ACPI_DEVICE_INFO *info;
38
 
38
 
Line 49... Line 49...
49
    buff[buffer.Length] = '\0';
49
    buff[buffer.Length] = '\0';
Line 50... Line 50...
50
 
50
 
Line 51... Line -...
51
    dbgprintf("device %d %s ", counter, buff);
-
 
52
 
-
 
53
/*
-
 
54
    buffer.Pointer = &info;
51
    dbgprintf("device %d %s ", counter, buff);
Line 55... Line 52...
55
    memset(&info, 0, sizeof(ACPI_DEVICE_INFO));
52
 
56
    status = AcpiGetObjectInfo(obj, &buffer.Pointer);
53
    status = AcpiGetObjectInfo(obj, &info);
57
 
54
 
58
    if (ACPI_SUCCESS (status))
55
    if (ACPI_SUCCESS (status))
59
    {
-
 
60
        dbgprintf (" HID: %s, ADR: %x %x, Status: %x",
-
 
-
 
56
    {
61
        info.HardwareId.String,
57
        if (info->Valid & ACPI_VALID_HID)
62
        (UINT32)(info.Address>>32),(UINT32)info.Address,
-
 
Line 63... Line 58...
63
        info.CurrentStatus);
58
            dbgprintf (" HID: %s", info->HardwareId.String);
64
    };
59
 
Line 65... Line 60...
65
*/
60
    };
Line 98... Line 93...
98
    }
93
    }
99
}
94
}
100
 
95
 
Line 101... Line -...
101
 
-
 
102
 
-
 
103
 
96
 
104
u32_t drvEntry(int action, char *cmdline)
97
u32_t drvEntry(int action, char *cmdline)
105
{
98
{
Line -... Line 99...
-
 
99
    u32_t retval;
-
 
100
 
106
    u32_t retval;
101
    ACPI_STATUS status;
Line 107... Line 102...
107
 
102
 
108
    int i;
103
    int i;
Line -... Line 104...
-
 
104
 
109
 
105
    if(action != 1)
-
 
106
        return 0;
-
 
107
 
-
 
108
    status = AcpiReallocateRootTable();
Line 110... Line 109...
110
    if(action != 1)
109
    if (ACPI_FAILURE(status)) {
111
        return 0;
110
        dbgprintf("Unable to reallocate ACPI tables\n");
112
 
111
        goto err;
113
      ACPI_STATUS status;
112
    }
Line 132... Line 131...
132
                       AcpiFormatException(status));
131
                     AcpiFormatException(status));
133
            goto err;
132
          goto err;
134
      }
133
    }
135
 
134
 
Line 136... Line 135...
136
    u32_t mode = ACPI_FULL_INITIALIZATION;
135
    u32_t mode = ACPI_NO_HARDWARE_INIT | ACPI_NO_ACPI_ENABLE;
Line 137... Line 136...
137
 
136
 
138
    status = AcpiEnableSubsystem(mode);
137
    status = AcpiEnableSubsystem(mode);
139
    if (status != AE_OK) {
138
    if (status != AE_OK) {
140
        dbgprintf("AcpiEnableSubsystem failed (%s)\n",
139
        dbgprintf("AcpiEnableSubsystem failed (%s)\n",