mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 23:40:15 +00:00
grlib: Add ambapp_common_info to derived types
This avoids a cast in DEV_TO_COMMON().
This commit is contained in:
@@ -513,7 +513,7 @@ static int grpci_init(struct grpci_priv *priv)
|
||||
ahb = ainfo->info.ahb_slv;
|
||||
|
||||
/* Found PCI core, init private structure */
|
||||
priv->irq = apb->irq;
|
||||
priv->irq = apb->common.irq;
|
||||
priv->regs = (struct grpci_regs *)apb->start;
|
||||
priv->bt_enabled = DEFAULT_BT_ENABLED;
|
||||
|
||||
|
||||
@@ -730,8 +730,8 @@ static int grpci2_init(struct grpci2_priv *priv)
|
||||
ahb = ainfo->info.ahb_slv;
|
||||
|
||||
/* Found PCI core, init private structure */
|
||||
priv->irq = apb->irq;
|
||||
priv->ver = apb->ver;
|
||||
priv->irq = apb->common.irq;
|
||||
priv->ver = apb->common.ver;
|
||||
priv->regs = (struct grpci2_regs *)apb->start;
|
||||
priv->bt_enabled = DEFAULT_BT_ENABLED;
|
||||
priv->irq_mode = (priv->regs->sts_cap & STS_IRQMODE) >> STS_IRQMODE_BIT;
|
||||
|
||||
@@ -426,7 +426,7 @@ static int pcif_init(struct pcif_priv *priv)
|
||||
ahb = ainfo->info.ahb_slv;
|
||||
|
||||
/* Found PCI core, init private structure */
|
||||
priv->irq = apb->irq;
|
||||
priv->irq = apb->common.irq;
|
||||
priv->regs = (struct pcif_regs *)apb->start;
|
||||
|
||||
/* Calculate the PCI windows
|
||||
|
||||
Reference in New Issue
Block a user