Changeset 77c2178 in rtems
- Timestamp:
- 01/31/12 10:23:26 (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 41572c4
- Parents:
- be42aa1a
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/31/12 10:23:26)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/31/12 10:25:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/libchip/network/if_fxp.c
rbe42aa1a r77c2178 586 586 DBGLVL_PRINTK(3,"fxp_attach: interrupt = 0x%x\n",interrupt); 587 587 sc->irqInfo.name = (rtems_irq_number)interrupt; 588 /*589 * Set up interrupts590 */591 sc->irqInfo.hdl = (rtems_irq_hdl)fxp_intr;592 sc->irqInfo.on = nopOn;593 sc->irqInfo.off = nopOn;594 sc->irqInfo.isOn = fxpIsOn;595 s = BSP_install_rtems_irq_handler (&sc->irqInfo);596 if (!s)597 rtems_panic ("Can't attach fxp interrupt handler for irq %d\n",598 sc->irqInfo.name);599 588 /* 600 589 * Reset to a stable state. … … 1672 1661 struct fxp_cb_ias *cb_ias; 1673 1662 struct fxp_cb_tx *txp; 1674 int i, prm, s ;1663 int i, prm, s, rv; 1675 1664 1676 1665 rtems_task_wake_after(100); … … 1898 1887 sc->daemonTid = rtems_bsdnet_newproc ("FXPd", 4096, fxp_daemon, sc); 1899 1888 1900 } 1889 /* 1890 * Set up interrupts 1891 */ 1892 sc->irqInfo.hdl = (rtems_irq_hdl)fxp_intr; 1893 sc->irqInfo.on = nopOn; 1894 sc->irqInfo.off = nopOn; 1895 sc->irqInfo.isOn = fxpIsOn; 1896 rv = BSP_install_rtems_irq_handler (&sc->irqInfo); 1897 if (rv != 1) { 1898 rtems_panic ("Can't attach fxp interrupt handler for irq %d\n", 1899 sc->irqInfo.name); 1900 } 1901 } 1902 1901 1903 /* 1902 1904 * Enable interrupts.
Note: See TracChangeset
for help on using the changeset viewer.