Subversion Repositories Kolibri OS

Rev

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

Rev 1498 Rev 2216
Line 6... Line 6...
6
 
6
 
7
/******************************************************************************
7
/******************************************************************************
8
 *
8
 *
9
 * 1. Copyright Notice
9
 * 1. Copyright Notice
10
 *
10
 *
11
 * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
11
 * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
12
 * All rights reserved.
12
 * All rights reserved.
13
 *
13
 *
14
 * 2. License
14
 * 2. License
15
 *
15
 *
Line 124... Line 124...
124
#define _COMPONENT          ACPI_CA_DEBUGGER
124
#define _COMPONENT          ACPI_CA_DEBUGGER
125
        ACPI_MODULE_NAME    ("dbinput")
125
        ACPI_MODULE_NAME    ("dbinput")
Line 126... Line 126...
126
 
126
 
Line 127... Line -...
127
/* Local prototypes */
-
 
128
 
-
 
129
static char *
-
 
130
AcpiDbGetNextToken (
-
 
131
    char                    *String,
-
 
132
    char                    **Next);
127
/* Local prototypes */
133
 
128
 
134
static UINT32
129
static UINT32
Line 135... Line 130...
135
AcpiDbGetLine (
130
AcpiDbGetLine (
Line 143... Line 138...
143
AcpiDbSingleThread (
138
AcpiDbSingleThread (
144
    void);
139
    void);
Line 145... Line 140...
145
 
140
 
146
static void
141
static void
147
AcpiDbDisplayHelp (
142
AcpiDbDisplayHelp (
Line 148... Line 143...
148
    char                    *HelpType);
143
    void);
149
 
144
 
150
 
145
 
Line 174... Line 169...
174
    CMD_EXIT,
169
    CMD_EXIT,
175
    CMD_FIND,
170
    CMD_FIND,
176
    CMD_GO,
171
    CMD_GO,
177
    CMD_GPE,
172
    CMD_GPE,
178
    CMD_GPES,
173
    CMD_GPES,
-
 
174
    CMD_HANDLERS,
179
    CMD_HELP,
175
    CMD_HELP,
180
    CMD_HELP2,
176
    CMD_HELP2,
181
    CMD_HISTORY,
177
    CMD_HISTORY,
182
    CMD_HISTORY_EXE,
178
    CMD_HISTORY_EXE,
183
    CMD_HISTORY_LAST,
179
    CMD_HISTORY_LAST,
Line 192... Line 188...
192
    CMD_METHODS,
188
    CMD_METHODS,
193
    CMD_NAMESPACE,
189
    CMD_NAMESPACE,
194
    CMD_NOTIFY,
190
    CMD_NOTIFY,
195
    CMD_OBJECT,
191
    CMD_OBJECT,
196
    CMD_OPEN,
192
    CMD_OPEN,
-
 
193
    CMD_OSI,
197
    CMD_OWNER,
194
    CMD_OWNER,
198
    CMD_PREDEFINED,
195
    CMD_PREDEFINED,
199
    CMD_PREFIX,
196
    CMD_PREFIX,
200
    CMD_QUIT,
197
    CMD_QUIT,
201
    CMD_REFERENCES,
198
    CMD_REFERENCES,
Line 240... Line 237...
240
    {"EXIT",         0},
237
    {"EXIT",         0},
241
    {"FIND",         1},
238
    {"FIND",         1},
242
    {"GO",           0},
239
    {"GO",           0},
243
    {"GPE",          2},
240
    {"GPE",          2},
244
    {"GPES",         0},
241
    {"GPES",         0},
-
 
242
    {"HANDLERS",     0},
245
    {"HELP",         0},
243
    {"HELP",         0},
246
    {"?",            0},
244
    {"?",            0},
247
    {"HISTORY",      0},
245
    {"HISTORY",      0},
248
    {"!",            1},
246
    {"!",            1},
249
    {"!!",           0},
247
    {"!!",           0},
Line 258... Line 256...
258
    {"METHODS",      0},
256
    {"METHODS",      0},
259
    {"NAMESPACE",    0},
257
    {"NAMESPACE",    0},
260
    {"NOTIFY",       2},
258
    {"NOTIFY",       2},
261
    {"OBJECT",       1},
259
    {"OBJECT",       1},
262
    {"OPEN",         1},
260
    {"OPEN",         1},
-
 
261
    {"OSI",          0},
263
    {"OWNER",        1},
262
    {"OWNER",        1},
264
    {"PREDEFINED",   0},
263
    {"PREDEFINED",   0},
265
    {"PREFIX",       0},
264
    {"PREFIX",       0},
266
    {"QUIT",         0},
265
    {"QUIT",         0},
267
    {"REFERENCES",   1},
266
    {"REFERENCES",   1},
Line 284... Line 283...
284
 
283
 
285
/*******************************************************************************
284
/*******************************************************************************
286
 *
285
 *
287
 * FUNCTION:    AcpiDbDisplayHelp
286
 * FUNCTION:    AcpiDbDisplayHelp
288
 *
287
 *
289
 * PARAMETERS:  HelpType        - Subcommand (optional)
288
 * PARAMETERS:  None
290
 *
289
 *
291
 * RETURN:      None
290
 * RETURN:      None
292
 *
291
 *
293
 * DESCRIPTION: Print a usage message.
292
 * DESCRIPTION: Print a usage message.
294
 *
293
 *
Line 295... Line 294...
295
 ******************************************************************************/
294
 ******************************************************************************/
296
 
295
 
297
static void
-
 
298
AcpiDbDisplayHelp (
-
 
299
    char                    *HelpType)
-
 
300
{
-
 
301
 
-
 
302
    AcpiUtStrupr (HelpType);
-
 
303
 
-
 
304
    /* No parameter, just give the overview */
296
static void
305
 
297
AcpiDbDisplayHelp (
306
    if (!HelpType)
-
 
307
    {
-
 
308
        AcpiOsPrintf ("ACPI CA Debugger Commands\n\n");
-
 
309
        AcpiOsPrintf ("The following classes of commands are available.  Help is available for\n");
-
 
310
        AcpiOsPrintf ("each class by entering \"Help \"\n\n");
-
 
311
        AcpiOsPrintf ("    [GENERAL]       General-Purpose Commands\n");
-
 
312
        AcpiOsPrintf ("    [NAMESPACE]     Namespace Access Commands\n");
-
 
313
        AcpiOsPrintf ("    [METHOD]        Control Method Execution Commands\n");
-
 
314
        AcpiOsPrintf ("    [STATISTICS]    Statistical Information\n");
-
 
315
        AcpiOsPrintf ("    [FILE]          File I/O Commands\n");
-
 
Line 316... Line -...
316
        return;
-
 
317
    }
-
 
318
 
-
 
319
    /*
-
 
320
     * Parameter is the command class
-
 
321
     *
-
 
322
     * The idea here is to keep each class of commands smaller than a screenful
-
 
323
     */
-
 
324
    switch (HelpType[0])
298
    void)
325
    {
299
{
326
    case 'G':
300
 
327
        AcpiOsPrintf ("\nGeneral-Purpose Commands\n\n");
301
    AcpiOsPrintf ("\nGeneral-Purpose Commands:\n");
328
        AcpiOsPrintf ("Allocations                         Display list of current memory allocations\n");
302
    AcpiOsPrintf ("  Allocations                         Display list of current memory allocations\n");
-
 
303
    AcpiOsPrintf ("  Dump 
|\n");
329
        AcpiOsPrintf ("Dump 
|\n");
304
    AcpiOsPrintf ("       [Byte|Word|Dword|Qword]        Display ACPI objects or memory\n");
330
        AcpiOsPrintf ("     [Byte|Word|Dword|Qword]        Display ACPI objects or memory\n");
305
    AcpiOsPrintf ("  EnableAcpi                          Enable ACPI (hardware) mode\n");
331
        AcpiOsPrintf ("EnableAcpi                          Enable ACPI (hardware) mode\n");
306
    AcpiOsPrintf ("  Handlers                            Info about global handlers\n");
332
        AcpiOsPrintf ("Help                                This help screen\n");
307
    AcpiOsPrintf ("  Help                                This help screen\n");
-
 
308
    AcpiOsPrintf ("  History                             Display command history buffer\n");
333
        AcpiOsPrintf ("History                             Display command history buffer\n");
309
    AcpiOsPrintf ("  Level [] [console]      Get/Set debug level for file or console\n");
334
        AcpiOsPrintf ("Level [] [console]      Get/Set debug level for file or console\n");
310
    AcpiOsPrintf ("  Locks                               Current status of internal mutexes\n");
335
        AcpiOsPrintf ("Locks                               Current status of internal mutexes\n");
311
    AcpiOsPrintf ("  Osi [Install|Remove ]         Display or modify global _OSI list\n");
336
        AcpiOsPrintf ("Quit or Exit                        Exit this command\n");
-
 
337
        AcpiOsPrintf ("Stats [Allocations|Memory|Misc\n");
-
 
338
        AcpiOsPrintf ("      |Objects|Sizes|Stack|Tables]  Display namespace and memory statistics\n");
-
 
339
        AcpiOsPrintf ("Tables                              Display info about loaded ACPI tables\n");
-
 
340
        AcpiOsPrintf ("Unload  [Instance]        Unload an ACPI table\n");
-
 
341
        AcpiOsPrintf ("!                    Execute command from history buffer\n");
-
 
342
        AcpiOsPrintf ("!!                                  Execute last command again\n");
-
 
343
        return;
-
 
344
 
312
    AcpiOsPrintf ("  Quit or Exit                        Exit this command\n");
345
    case 'S':
313
    AcpiOsPrintf ("  Stats [Allocations|Memory|Misc|\n");
346
        AcpiOsPrintf ("\nStats Subcommands\n\n");
314
    AcpiOsPrintf ("        Objects|Sizes|Stack|Tables]   Display namespace and memory statistics\n");
347
        AcpiOsPrintf ("Allocations                         Display list of current memory allocations\n");
315
    AcpiOsPrintf ("     Allocations                      Display list of current memory allocations\n");
348
        AcpiOsPrintf ("Memory                              Dump internal memory lists\n");
316
    AcpiOsPrintf ("     Memory                           Dump internal memory lists\n");
349
        AcpiOsPrintf ("Misc                                Namespace search and mutex stats\n");
317
    AcpiOsPrintf ("     Misc                             Namespace search and mutex stats\n");
350
        AcpiOsPrintf ("Objects                             Summary of namespace objects\n");
318
    AcpiOsPrintf ("     Objects                          Summary of namespace objects\n");
-
 
319
    AcpiOsPrintf ("     Sizes                            Sizes for each of the internal objects\n");
351
        AcpiOsPrintf ("Sizes                               Sizes for each of the internal objects\n");
320
    AcpiOsPrintf ("     Stack                            Display CPU stack usage\n");
-
 
321
    AcpiOsPrintf ("     Tables                           Info about current ACPI table(s)\n");
-
 
322
    AcpiOsPrintf ("  Tables                              Display info about loaded ACPI tables\n");
Line 352... Line -...
352
        AcpiOsPrintf ("Stack                               Display CPU stack usage\n");
-
 
353
        AcpiOsPrintf ("Tables                              Info about current ACPI table(s)\n");
323
    AcpiOsPrintf ("  Unload  [Instance]        Unload an ACPI table\n");
354
        return;
324
    AcpiOsPrintf ("  !                    Execute command from history buffer\n");
355
 
325
    AcpiOsPrintf ("  !!                                  Execute last command again\n");
356
    case 'N':
326
 
357
        AcpiOsPrintf ("\nNamespace Access Commands\n\n");
327
    AcpiOsPrintf ("\nNamespace Access Commands:\n");
358
        AcpiOsPrintf ("Businfo                             Display system bus info\n");
328
    AcpiOsPrintf ("  Businfo                             Display system bus info\n");
Line 373... Line 343...
373
        AcpiOsPrintf ("Resources                   Get and display Device resources\n");
343
    AcpiOsPrintf ("  Resources                   Get and display Device resources\n");
374
        AcpiOsPrintf ("Set N           Set value for named integer\n");
344
    AcpiOsPrintf ("  Set N           Set value for named integer\n");
375
        AcpiOsPrintf ("Sleep                   Simulate sleep/wake sequence\n");
345
    AcpiOsPrintf ("  Sleep                   Simulate sleep/wake sequence\n");
376
        AcpiOsPrintf ("Terminate                           Delete namespace and all internal objects\n");
346
    AcpiOsPrintf ("  Terminate                           Delete namespace and all internal objects\n");
377
        AcpiOsPrintf ("Type                        Display object type\n");
347
    AcpiOsPrintf ("  Type                        Display object type\n");
378
        return;
-
 
Line 379... Line -...
379
 
-
 
380
    case 'M':
348
 
381
        AcpiOsPrintf ("\nControl Method Execution Commands\n\n");
349
    AcpiOsPrintf ("\nControl Method Execution Commands:\n");
382
        AcpiOsPrintf ("Arguments (or Args)                 Display method arguments\n");
350
    AcpiOsPrintf ("  Arguments (or Args)                 Display method arguments\n");
383
        AcpiOsPrintf ("Breakpoint               Set an AML execution breakpoint\n");
351
    AcpiOsPrintf ("  Breakpoint               Set an AML execution breakpoint\n");
384
        AcpiOsPrintf ("Call                                Run to next control method invocation\n");
352
    AcpiOsPrintf ("  Call                                Run to next control method invocation\n");
385
        AcpiOsPrintf ("Debug  [Arguments]        Single Step a control method\n");
353
    AcpiOsPrintf ("  Debug  [Arguments]        Single Step a control method\n");
-
 
354
    AcpiOsPrintf ("  Execute  [Arguments]      Execute control method\n");
-
 
355
    AcpiOsPrintf ("     Hex Integer                      Integer method argument\n");
-
 
356
    AcpiOsPrintf ("     \"Ascii String\"                   String method argument\n");
-
 
357
    AcpiOsPrintf ("     (Byte List)                      Buffer method argument\n");
386
        AcpiOsPrintf ("Execute  [Arguments]      Execute control method\n");
358
    AcpiOsPrintf ("     [Package Element List]           Package method argument\n");
387
        AcpiOsPrintf ("Go                                  Allow method to run to completion\n");
359
    AcpiOsPrintf ("  Go                                  Allow method to run to completion\n");
388
        AcpiOsPrintf ("Information                         Display info about the current method\n");
360
    AcpiOsPrintf ("  Information                         Display info about the current method\n");
389
        AcpiOsPrintf ("Into                                Step into (not over) a method call\n");
361
    AcpiOsPrintf ("  Into                                Step into (not over) a method call\n");
390
        AcpiOsPrintf ("List [# of Aml Opcodes]             Display method ASL statements\n");
362
    AcpiOsPrintf ("  List [# of Aml Opcodes]             Display method ASL statements\n");
Line 394... Line 366...
394
        AcpiOsPrintf ("Stop                                Terminate control method\n");
366
    AcpiOsPrintf ("  Stop                                Terminate control method\n");
395
        AcpiOsPrintf ("Thread    Spawn threads to execute method(s)\n");
367
    AcpiOsPrintf ("  Thread    Spawn threads to execute method(s)\n");
396
        AcpiOsPrintf ("Trace                  Trace method execution\n");
368
    AcpiOsPrintf ("  Trace                  Trace method execution\n");
397
        AcpiOsPrintf ("Tree                                Display control method calling tree\n");
369
    AcpiOsPrintf ("  Tree                                Display control method calling tree\n");
398
        AcpiOsPrintf ("                             Single step next AML opcode (over calls)\n");
370
    AcpiOsPrintf ("                               Single step next AML opcode (over calls)\n");
399
        return;
-
 
Line 400... Line -...
400
 
-
 
401
    case 'F':
371
 
402
        AcpiOsPrintf ("\nFile I/O Commands\n\n");
372
    AcpiOsPrintf ("\nFile I/O Commands:\n");
403
        AcpiOsPrintf ("Close                               Close debug output file\n");
-
 
404
        AcpiOsPrintf ("Open               Open a file for debug output\n");
373
    AcpiOsPrintf ("  Close                               Close debug output file\n");
405
        AcpiOsPrintf ("Load                Load ACPI table from a file\n");
-
 
406
        return;
-
 
407
 
-
 
408
    default:
374
    AcpiOsPrintf ("  Load                Load ACPI table from a file\n");
409
        AcpiOsPrintf ("Unrecognized Command Class: %s\n", HelpType);
-
 
410
        return;
-
 
411
    }
375
    AcpiOsPrintf ("  Open               Open a file for debug output\n");
Line 412... Line 376...
412
}
376
}
413
 
377
 
Line 423... Line 387...
423
 *
387
 *
424
 * DESCRIPTION: Command line parsing.  Get the next token on the command line
388
 * DESCRIPTION: Command line parsing.  Get the next token on the command line
425
 *
389
 *
426
 ******************************************************************************/
390
 ******************************************************************************/
Line 427... Line 391...
427
 
391
 
428
static char *
392
char *
429
AcpiDbGetNextToken (
393
AcpiDbGetNextToken (
430
    char                    *String,
394
    char                    *String,
-
 
395
    char                    **Next,
431
    char                    **Next)
396
    ACPI_OBJECT_TYPE        *ReturnType)
432
{
397
{
-
 
398
    char                    *Start;
-
 
399
    UINT32                  Depth;
Line 433... Line 400...
433
    char                    *Start;
400
    ACPI_OBJECT_TYPE        Type = ACPI_TYPE_INTEGER;
Line 434... Line 401...
434
 
401
 
435
 
402
 
436
    /* At end of buffer? */
403
    /* At end of buffer? */
437
 
404
 
Line 438... Line 405...
438
    if (!String || !(*String))
405
    if (!String || !(*String))
Line 439... Line 406...
439
    {
406
    {
440
        return (NULL);
407
        return (NULL);
441
    }
408
    }
442
 
409
 
Line 453... Line 420...
453
        {
420
        {
454
            return (NULL);
421
            return (NULL);
455
        }
422
        }
456
    }
423
    }
Line -... Line 424...
-
 
424
 
-
 
425
    switch (*String)
-
 
426
    {
-
 
427
    case '"':
-
 
428
 
-
 
429
        /* This is a quoted string, scan until closing quote */
-
 
430
 
-
 
431
        String++;
-
 
432
        Start = String;
-
 
433
        Type = ACPI_TYPE_STRING;
-
 
434
 
-
 
435
        /* Find end of string */
-
 
436
 
-
 
437
        while (*String && (*String != '"'))
-
 
438
        {
-
 
439
            String++;
-
 
440
        }
-
 
441
        break;
-
 
442
 
-
 
443
    case '(':
-
 
444
 
-
 
445
        /* This is the start of a buffer, scan until closing paren */
-
 
446
 
-
 
447
        String++;
-
 
448
        Start = String;
-
 
449
        Type = ACPI_TYPE_BUFFER;
-
 
450
 
-
 
451
        /* Find end of buffer */
-
 
452
 
-
 
453
        while (*String && (*String != ')'))
-
 
454
        {
-
 
455
            String++;
-
 
456
        }
-
 
457
        break;
-
 
458
 
-
 
459
    case '[':
-
 
460
 
-
 
461
        /* This is the start of a package, scan until closing bracket */
-
 
462
 
-
 
463
        String++;
-
 
464
        Depth = 1;
-
 
465
        Start = String;
-
 
466
        Type = ACPI_TYPE_PACKAGE;
-
 
467
 
-
 
468
        /* Find end of package (closing bracket) */
-
 
469
 
-
 
470
        while (*String)
-
 
471
        {
-
 
472
            /* Handle String package elements */
-
 
473
 
-
 
474
            if (*String == '"')
-
 
475
            {
-
 
476
                /* Find end of string */
-
 
477
 
-
 
478
                String++;
-
 
479
                while (*String && (*String != '"'))
-
 
480
                {
-
 
481
                    String++;
-
 
482
                }
-
 
483
                if (!(*String))
-
 
484
                {
-
 
485
                    break;
-
 
486
                }
-
 
487
            }
-
 
488
            else if (*String == '[')
-
 
489
            {
-
 
490
                Depth++;         /* A nested package declaration */
-
 
491
            }
-
 
492
            else if (*String == ']')
-
 
493
            {
-
 
494
                Depth--;
-
 
495
                if (Depth == 0) /* Found final package closing bracket */
-
 
496
                {
-
 
497
                    break;
-
 
498
                }
-
 
499
            }
-
 
500
 
-
 
501
            String++;
-
 
502
        }
-
 
503
        break;
-
 
504
 
-
 
505
    default:
457
 
506
 
Line 458... Line 507...
458
    Start = String;
507
        Start = String;
Line 459... Line 508...
459
 
508
 
460
    /* Find end of token */
509
        /* Find end of token */
461
 
510
 
462
    while (*String && (*String != ' '))
511
        while (*String && (*String != ' '))
-
 
512
        {
-
 
513
            String++;
Line 463... Line 514...
463
    {
514
        }
464
        String++;
515
        break;
465
    }
516
    }
466
 
517
 
Line 472... Line 523...
472
    {
523
    {
473
        *String = 0;
524
        *String = 0;
474
        *Next = String + 1;
525
        *Next = String + 1;
475
    }
526
    }
Line -... Line 527...
-
 
527
 
476
 
528
    *ReturnType = Type;
477
    return (Start);
529
    return (Start);
Line 478... Line 530...
478
}
530
}
Line 504... Line 556...
504
    ACPI_STRCPY (AcpiGbl_DbParsedBuf, InputBuffer);
556
    ACPI_STRCPY (AcpiGbl_DbParsedBuf, InputBuffer);
Line 505... Line 557...
505
 
557
 
506
    This = AcpiGbl_DbParsedBuf;
558
    This = AcpiGbl_DbParsedBuf;
507
    for (i = 0; i < ACPI_DEBUGGER_MAX_ARGS; i++)
559
    for (i = 0; i < ACPI_DEBUGGER_MAX_ARGS; i++)
508
    {
560
    {
-
 
561
        AcpiGbl_DbArgs[i] = AcpiDbGetNextToken (This, &Next,
509
        AcpiGbl_DbArgs[i] = AcpiDbGetNextToken (This, &Next);
562
            &AcpiGbl_DbArgTypes[i]);
510
        if (!AcpiGbl_DbArgs[i])
563
        if (!AcpiGbl_DbArgs[i])
511
        {
564
        {
512
            break;
565
            break;
Line 663... Line 716...
663
    case CMD_CLOSE:
716
    case CMD_CLOSE:
664
        AcpiDbCloseDebugFile ();
717
        AcpiDbCloseDebugFile ();
665
        break;
718
        break;
Line 666... Line 719...
666
 
719
 
-
 
720
    case CMD_DEBUG:
667
    case CMD_DEBUG:
721
        AcpiDbExecute (AcpiGbl_DbArgs[1],
668
        AcpiDbExecute (AcpiGbl_DbArgs[1], &AcpiGbl_DbArgs[2], EX_SINGLE_STEP);
722
            &AcpiGbl_DbArgs[2], &AcpiGbl_DbArgTypes[2], EX_SINGLE_STEP);
Line 669... Line 723...
669
        break;
723
        break;
670
 
724
 
671
    case CMD_DISASSEMBLE:
725
    case CMD_DISASSEMBLE:
Line 689... Line 743...
689
        AcpiOsPrintf ("Event command not implemented\n");
743
        AcpiOsPrintf ("Event command not implemented\n");
690
        break;
744
        break;
Line 691... Line 745...
691
 
745
 
692
    case CMD_EXECUTE:
746
    case CMD_EXECUTE:
693
        AcpiDbExecute (AcpiGbl_DbArgs[1],
747
        AcpiDbExecute (AcpiGbl_DbArgs[1],
694
            &AcpiGbl_DbArgs[2], EX_NO_SINGLE_STEP);
748
            &AcpiGbl_DbArgs[2], &AcpiGbl_DbArgTypes[2], EX_NO_SINGLE_STEP);
Line 695... Line 749...
695
        break;
749
        break;
696
 
750
 
697
    case CMD_FIND:
751
    case CMD_FIND:
Line 708... Line 762...
708
 
762
 
709
    case CMD_GPES:
763
    case CMD_GPES:
710
        AcpiDbDisplayGpes ();
764
        AcpiDbDisplayGpes ();
Line -... Line 765...
-
 
765
        break;
-
 
766
 
-
 
767
    case CMD_HANDLERS:
-
 
768
        AcpiDbDisplayHandlers ();
711
        break;
769
        break;
712
 
770
 
713
    case CMD_HELP:
771
    case CMD_HELP:
714
    case CMD_HELP2:
772
    case CMD_HELP2:
Line 715... Line 773...
715
        AcpiDbDisplayHelp (AcpiGbl_DbArgs[1]);
773
        AcpiDbDisplayHelp ();
716
        break;
774
        break;
717
 
775
 
Line 818... Line 876...
818
 
876
 
819
    case CMD_OPEN:
877
    case CMD_OPEN:
820
        AcpiDbOpenDebugFile (AcpiGbl_DbArgs[1]);
878
        AcpiDbOpenDebugFile (AcpiGbl_DbArgs[1]);
Line -... Line 879...
-
 
879
        break;
-
 
880
 
-
 
881
    case CMD_OSI:
-
 
882
        AcpiDbDisplayInterfaces (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]);
821
        break;
883
        break;
822
 
884
 
823
    case CMD_OWNER:
885
    case CMD_OWNER:
Line 824... Line 886...
824
        AcpiDbDumpNamespaceByOwner (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]);
886
        AcpiDbDumpNamespaceByOwner (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]);
Line 1041... Line 1103...
1041
            AcpiOsPrintf ("%1c ", ACPI_DEBUGGER_EXECUTE_PROMPT);
1103
            AcpiOsPrintf ("%1c ", ACPI_DEBUGGER_EXECUTE_PROMPT);
1042
        }
1104
        }
Line 1043... Line 1105...
1043
 
1105
 
Line 1044... Line 1106...
1044
        /* Get the user input line */
1106
        /* Get the user input line */
-
 
1107
 
-
 
1108
        Status = AcpiOsGetLine (AcpiGbl_DbLineBuf,
-
 
1109
            ACPI_DB_LINE_BUFFER_SIZE, NULL);
-
 
1110
        if (ACPI_FAILURE (Status))
-
 
1111
        {
-
 
1112
            ACPI_EXCEPTION ((AE_INFO, Status, "While parsing command line"));
Line 1045... Line 1113...
1045
 
1113
            return (Status);
Line 1046... Line 1114...
1046
        (void) AcpiOsGetLine (AcpiGbl_DbLineBuf);
1114
        }
1047
 
1115