Deleted Added
full compact
cms.c (224110) cms.c (224115)
1/*-
2 * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights
3 * reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *

--- 14 unchanged lines hidden (view full) ---

23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26 * THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * NETLOGIC_BSD */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights
3 * reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *

--- 14 unchanged lines hidden (view full) ---

23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26 * THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * NETLOGIC_BSD */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/mips/nlm/cms.c 224110 2011-07-16 19:35:44Z jchandra $");
31__FBSDID("$FreeBSD: head/sys/mips/nlm/cms.c 224115 2011-07-16 20:31:29Z jchandra $");
32#include <sys/types.h>
33#include <sys/systm.h>
34#include <sys/param.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>
37#include <sys/proc.h>
38#include <sys/limits.h>
39#include <sys/bus.h>

--- 212 unchanged lines hidden (view full) ---

252 nlm_fmn_restoreflags(mflags);
253 if (status != 0) /* If there is no msg or error */
254 break;
255 if (srcid < 0 && srcid >= 1024) {
256 printf("[%s]: bad src id %d\n", __func__, srcid);
257 continue;
258 }
259 he = &msgmap[srcid];
32#include <sys/types.h>
33#include <sys/systm.h>
34#include <sys/param.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>
37#include <sys/proc.h>
38#include <sys/limits.h>
39#include <sys/bus.h>

--- 212 unchanged lines hidden (view full) ---

252 nlm_fmn_restoreflags(mflags);
253 if (status != 0) /* If there is no msg or error */
254 break;
255 if (srcid < 0 && srcid >= 1024) {
256 printf("[%s]: bad src id %d\n", __func__, srcid);
257 continue;
258 }
259 he = &msgmap[srcid];
260 if(he->action == NULL) {
260 if(he->action != NULL)
261 (he->action)(vc, size, code, srcid, &msg, he->arg);
262#if 0 /* debug */
263 else
261 printf("[%s]: No Handler for message from stn_id=%d,"
262 " vc=%d, size=%d, msg0=%jx, dropping message\n",
263 __func__, srcid, vc, size, (uintmax_t)msg.msg[0]);
264 printf("[%s]: No Handler for message from stn_id=%d,"
265 " vc=%d, size=%d, msg0=%jx, dropping message\n",
266 __func__, srcid, vc, size, (uintmax_t)msg.msg[0]);
264 continue;
265 }
266 (he->action)(vc, size, code, srcid, &msg, he->arg);
267#endif
267 }
268
269 return (i);
270}
271
272static int
273msgring_process_fast_intr(void *arg)
274{

--- 177 unchanged lines hidden ---
268 }
269
270 return (i);
271}
272
273static int
274msgring_process_fast_intr(void *arg)
275{

--- 177 unchanged lines hidden ---