mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-18 01:04:56 +08:00
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:
1 parent
827861d9c1
commit
45ff833caa
1 file changed
+2
-1
@@ -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 ) )
|
||||
|
||||
Reference in new issue
Block a user