Changeset View
Changeset View
Standalone View
Standalone View
sys/net/mp_ring.h
Show All 30 Lines | |||||
#ifndef __NET_MP_RING_H | #ifndef __NET_MP_RING_H | ||||
#define __NET_MP_RING_H | #define __NET_MP_RING_H | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
#error "no user-serviceable parts inside" | #error "no user-serviceable parts inside" | ||||
#endif | #endif | ||||
struct ifmp_ring; | struct ifmp_ring; | ||||
typedef u_int (*mp_ring_drain_t)(struct ifmp_ring *, u_int, u_int); | typedef u_int (*mp_ring_drain_t)(struct ifmp_ring *, void *volatile *, u_int, u_int); | ||||
typedef u_int (*mp_ring_can_drain_t)(struct ifmp_ring *); | typedef u_int (*mp_ring_can_drain_t)(struct ifmp_ring *); | ||||
typedef void (*mp_ring_serial_t)(struct ifmp_ring *); | typedef void (*mp_ring_serial_t)(struct ifmp_ring *); | ||||
#if defined(__powerpc__) || defined(__mips__) || defined(__i386__) | #if defined(__powerpc__) || defined(__mips__) || defined(__i386__) | ||||
#define MP_RING_NO_64BIT_ATOMICS | #define MP_RING_NO_64BIT_ATOMICS | ||||
#endif | #endif | ||||
struct ifmp_ring { | struct ifmp_ring { | ||||
Show All 28 Lines |