Contribute
Register

USBMap: trouble compiling SSDT-RHUB-Reset.dsl

Joined
Mar 18, 2020
Messages
73
Motherboard
ASRock W480 Creator
CPU
i9-10850K
Graphics
GT 710
Mac
  1. MacBook Pro
After having built and saved a "SSDT-RHUB-Reset.dsl" with the "H. Generate ACPI To Reset RHUBs", I get the following syntax errors in MaciASL when I try to compile the .dsl file:
(line, code, message)
13, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting PARSEOP_CLOSE_PAREN
15, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting PARSEOP_CLOSE_PAREN
30, 6126, syntax error, unexpected PARSEOP_EXTERNAL, expecting $end and premature End-Of-File

Any ideas what these mean or how to fix? Can't find the solution on google... Thanks!
 

Attachments

  • SSDT-RHUB-Reset.dsl
    1.1 KB · Views: 16

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,173
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
After having built and saved a "SSDT-RHUB-Reset.dsl" with the "H. Generate ACPI To Reset RHUBs", I get the following syntax errors in MaciASL when I try to compile the .dsl file:
(line, code, message)
13, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting PARSEOP_CLOSE_PAREN
15, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting PARSEOP_CLOSE_PAREN
30, 6126, syntax error, unexpected PARSEOP_EXTERNAL, expecting $end and premature End-Of-File

Any ideas what these mean or how to fix? Can't find the solution on google... Thanks!

Missing brackets in your code.
 
Joined
Mar 18, 2020
Messages
73
Motherboard
ASRock W480 Creator
CPU
i9-10850K
Graphics
GT 710
Mac
  1. MacBook Pro
Missing brackets in your code.
I couldn't see that there were brackets missing. Do you see it?
1619891739456.png
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,173
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
I couldn't see that there were brackets missing. Do you see it?
View attachment 517147

The error is because you have too many items within the parentheses of lines 13 & 15 (APPLEUSBXHCITR etc). This causes the parser to expect more brackets when none are included.
 

Edhawk

Moderator
Joined
Aug 2, 2013
Messages
1,568
Motherboard
Gigabyte Z97X-UD5H
CPU
i7-4790K
Graphics
HD 4600 / RX 580
Mac
  1. iMac
  2. MacBook Air
  3. MacBook Pro
Mobile Phone
  1. iOS
You need to change APPLEXHCITR to XHCI or XHC_ or XHC in the SSDT, it will then compile without any errors.

What you change it to depends on the ACPI path of the device, which should be shown in your IOReg.

I have never seen a path name in a DSDT or SSDT that is more than 4 characters.
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,173
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
You need to change APPLEXHCITR to XHCI or XHC_ or XHC in the SSDT, it will then compile without any errors.

What you change it to depends on the ACPI path of the device, which should be shown in your IOReg.

I have never seen a path name in a DSDT or SSDT that is more than 4 characters.

I'm not sure the intention is XHCI. Looks like trying to reset an external USB chipset which is outside the XHCI stack... but could be wrong. Learn something new every day.
 
Last edited:
Joined
Oct 4, 2018
Messages
56
Motherboard
Gigabyte C246-WU4
CPU
Xeon E-2278G
Graphics
Radeon Pro WX7100
Mac
  1. MacBook Pro
  2. Mac mini
I have never seen a path name in a DSDT or SSDT that is more than 4 characters.
ACPI Specification 6.3 (apparently a bedtime favourite with our friends at Dortania), section 5.3 (page 265):
The namespace is hierarchical in nature, with each name allowing a collection of names “below” it. The following naming conventions apply to all names:
  • All names are a fixed 32 bits.
  • The first byte of a name is inclusive of: ‘A’–‘Z’, ‘_’, (0x41–0x5A, 0x5F).
  • The remaining three bytes of a name are inclusive of: ‘A’–‘Z’, ‘0’–‘9’, ‘_’, (0x41–0x5A, 0x30– 0x39, 0x5F).
  • By convention, when an ASL compiler pads a name shorter than 4 characters, it is done so with trailing underscores (‘_’). See the language definition for AML NameSeg in the ACPI Source Language (ASL) Reference chapter.
  • Names beginning with ‘_’ are reserved by this specification. Definition Blocks can only use names beginning with ‘_’ as defined by this specification.
  • A name proceeded with ‘\’ causes the name to refer to the root of the namespace (‘\’ is not part of the 32-bit fixed-length name).
  • A name proceeded with ‘^’ causes the name to refer to the parent of the current namespace (‘^’ is not part of the 32-bit fixed-length name).
 
Top