grlib/ambapp: Add support for >31 IRQ PnP info

The second piece of the IRQ number is contained in bits 10
and 11 of the Identification Register
This commit is contained in:
Matteo Concas authored and Kinsey Moore committed 2026-08-13 17:55:57 -05:00
1 parent 827861d9c1
commit 45ff833caa
1 file changed
+2 -1
+2 -1
View File
@@ -184,7 +184,8 @@ struct ambapp_pnp_apb {
#define ambapp_pnp_vendor( id ) ( ( ( id ) >> 24 ) & 0xff )
#define ambapp_pnp_device( id ) ( ( ( id ) >> 12 ) & 0xfff )
#define ambapp_pnp_ver( id ) ( ( ( id ) >> 5 ) & 0x1f )
#define ambapp_pnp_irq( id ) ( ( id ) & 0x1f )
#define ambapp_pnp_irq( id ) \
( ( ( ( id ) >> 5 ) & ( 0x3 << 5 ) ) | ( ( id ) & 0x1f ) )
#define ambapp_pnp_start( mbar ) \
( ( ( mbar ) & 0xfff00000 ) & ( ( ( mbar ) & 0xfff0 ) << 16 ) )