On my multiple root bus machine the _PRTs are huge, and take-up a lot of AML storage (ROM space). Is there anyway to conserve bytes when I describe these?
There are three techniques available to minimize the number of AML bytes required to encode a namespace. They are: 1) The ASL scoping rules, 2) The relative operator (^), and 3), the ALIAS operator. 1 ) The first thing to keep in mind is to use the ASL scoping rules to your advantage. That is, as much as possible, use short names to refer to objects in the namespace by ensuring that the referenced object appears ‘above’ (within scope) of the reference. Note, however, that just putting everything at the root of the namespace is not recommended due to the performance impact of the interpreter having to do extensive searches to locate items. Instead, you should only locate objects as high up in the namespace as to be within the scope of all references to that object. Refer to the location of the PRQx field declaration in the following example: Scope (\_SB) { Device (PCI0) { Name (_HID, EisaID (“PNP0A03”)) Name (_ADR, 0x00000000) Name (_PRT, Package () { Package () {0x000EFFFF, 0, LNKA, 0}
Related Questions
- What do I need to keep in mind when using my Drobo storage device with Time Machine, AirPort Extreme, and/or Time Capsule?
- Can you imagine a huge Greyhound bus making a U-turn on a California freeway near San Francisco?
- What are the biggest problems for a machine that has sat in storage for a long period of time?