WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2008-Mar-05 00:56:59

atanu
Member
From: India
Registered: 2007-Jun-26
Posts: 33

WARP MAC Interrupts & Callbacks

In the CSMA MAC provided in the latest version (8.0), the CSMA MAC mainly consists of user callback routines. For example when a data packet arrives at the ethernet, then ethernet MAC driver calls the function "ethernet_callback()".

My questions are:

a) In the PowerPC, which specific interrupt is generated for the ethernet packet arrival?

(b) How powerPC (PPC) handles the above interrupt and calls ethernet_callback()?

(c) Do you have any specific documenattion which talks about CSMA MAC arch on the PPC-405?

Offline

 

#2 2008-Mar-05 11:26:21

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: WARP MAC Interrupts & Callbacks

a-b) The EMAC core has a single interrupt output, which is registered with the interrupt controller and associated with the function XEmac_IntrHandlerFifo. This function is provided by the EMAC driver. User code then registers three callback functions to handle each possible interrupt event (received packet, transmitted packet, EMAC error). These callback registrations are done in warpmac.c.

Xilinx provides documentation and examples for the EMAC driver in $EDK/sw/XilinxProcessorIPLib/drivers/emac_v1_00_e, where $EDK is the root of your EDK 9.1 installation.

c) CSMAMAC is well documented at http://warp.rice.edu/trac/wiki/CSMAMAC.

Offline

 

Board footer