cms.c (225394) | cms.c (226436) |
---|---|
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 225394 2011-09-05 10:45:29Z jchandra $"); | 31__FBSDID("$FreeBSD: head/sys/mips/nlm/cms.c 226436 2011-10-16 14:30:28Z eadler $"); |
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> --- 37 unchanged lines hidden (view full) --- 77struct msgring_thread { 78 struct thread *thread; /* msgring handler threads */ 79 int needed; /* thread needs to wake up */ 80}; 81static struct msgring_thread msgring_threads[XLP_MAX_CORES * XLP_MAX_THREADS]; 82static struct proc *msgring_proc; /* all threads are under a proc */ 83 84/* | 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> --- 37 unchanged lines hidden (view full) --- 77struct msgring_thread { 78 struct thread *thread; /* msgring handler threads */ 79 int needed; /* thread needs to wake up */ 80}; 81static struct msgring_thread msgring_threads[XLP_MAX_CORES * XLP_MAX_THREADS]; 82static struct proc *msgring_proc; /* all threads are under a proc */ 83 84/* |
85 * The device drivers can register a handler for the the messages sent | 85 * The device drivers can register a handler for the messages sent |
86 * from a station (corresponding to the device). 87 */ 88struct tx_stn_handler { 89 msgring_handler action; 90 void *arg; 91}; 92static struct tx_stn_handler msgmap[MSGRNG_NSTATIONS]; 93static struct mtx msgmap_lock; --- 353 unchanged lines hidden --- | 86 * from a station (corresponding to the device). 87 */ 88struct tx_stn_handler { 89 msgring_handler action; 90 void *arg; 91}; 92static struct tx_stn_handler msgmap[MSGRNG_NSTATIONS]; 93static struct mtx msgmap_lock; --- 353 unchanged lines hidden --- |