patch-2.3.99-pre6 linux/drivers/atm/eni.h
Next file: linux/drivers/atm/fore200e.c
Previous file: linux/drivers/atm/eni.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Apr 14 09:37:10 2000
- Orig file:
v2.3.99-pre5/linux/drivers/atm/eni.h
- Orig date:
Mon Mar 27 08:08:23 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/atm/eni.h linux/drivers/atm/eni.h
@@ -13,6 +13,7 @@
#include <linux/time.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
+#include <asm/atomic.h>
#include "midway.h"
@@ -46,7 +47,7 @@
int reserved; /* reserved peak cell rate */
int shaping; /* shaped peak cell rate */
struct sk_buff_head backlog; /* queue of waiting TX buffers */
- int backlog_len; /* length of backlog in bytes */
+ atomic_t backlog_len; /* length of backlog in bytes */
};
struct eni_vcc {
@@ -68,6 +69,8 @@
struct eni_dev {
/*-------------------------------- spinlock */
spinlock_t lock; /* sync with interrupt */
+ struct tasklet_struct task; /* tasklet for interrupt work */
+ u32 events; /* pending events */
/*-------------------------------- base pointers into Midway address
space */
unsigned long phy; /* PHY interface chip registers */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)