aboutsummaryrefslogtreecommitdiff
path: root/tests/misc/converterSample.asl
blob: 380b65cf8eb8e007832cee639c1bc5c1cbb942b9 (plain) (blame)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 * top of the
 * definition block
 */
DefinitionBlock(
    "converterSample.aml", /* These comments          */
    "DSDT",               /* within the              */
    0x02,                 /* definition block header */
    "Intel",              /* are not retained.      */
    "Many",               /* They will be            */
    0x00000001            /* Discarded               */)
{

    /* first comment of named object b */
    Name (b, 5)
    Name(p008, Package()
    {
	0, 0,
	0, 0xffffffff,
	0x00012345, 0x00007abc,
	0x00000012, 0x00000034,
	0x00000001, 0x000000ff,
	0x00000001, 0x0000ffff,
	0x00000001, 0xffffffff,

	// bit-size of multiplicand
	0x67812345, 2,

	// bit-size of multiplier
	3, 0x45678123,

	0xffffffff, 0xffffffff,

	// ACPI: Overflow conditions are ignored and results are undefined.
    })

    Method(MAIN) {
        /**********************************************************************
         *                                                                    *
         *                     This is a long                                 *
         *                       multi-line                                   *
         *                         comment                                    *
         *                                                                    *
         **********************************************************************/
        //c12
        if(1==1)//c13
        {   //c14
            Name(b,0);
        }  //c15
    }

   //c16
   Name (a,
       Package(3)
       {/*c20*/
            0x04, /*c21*/
            /*c22*/
            0x05, /*c23*/
            0x06  /*c24*/
       }/*c25*/
   )/*c26*/


    //c34
    Method(SCOP)
    {
        //c35
        Name (a1, 0x04)
    }

    OperationRegion(GNVS,SystemMemory,0xFFFF0000,0xAA55)

    Field(GNVS,AnyAcc,Lock,Preserve)
    {
        //c36
        Offset(0),//c37
        OSYS, 8//c38
    }


} //c39
/*ending
  comment*/