]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ps3/vuart.h
[POWERPC] PS3: Vuart cleanups
[linux-2.6-omap-h63xx.git] / drivers / ps3 / vuart.h
index 2cbf728a3a0bfaec295ea31a1d580390d13ed4a4..34b360da9ff9ca76f9b2b617210d67356750a14f 100644 (file)
 #if !defined(_PS3_VUART_H)
 #define _PS3_VUART_H
 
+#include <asm/ps3.h>
+
+struct ps3_vuart_stats {
+       unsigned long bytes_written;
+       unsigned long bytes_read;
+       unsigned long tx_interrupts;
+       unsigned long rx_interrupts;
+       unsigned long disconnect_interrupts;
+};
+
+/**
+ * struct ps3_vuart_port_priv - private vuart device data.
+ */
+
+struct ps3_vuart_port_priv {
+       unsigned int port_number;
+       u64 interrupt_mask;
+
+       struct {
+               spinlock_t lock;
+               struct list_head head;
+       } tx_list;
+       struct {
+               unsigned long bytes_held;
+               spinlock_t lock;
+               struct list_head head;
+       } rx_list;
+       struct ps3_vuart_stats stats;
+};
+
 /**
  * struct ps3_vuart_port_driver - a driver for a device on a vuart port
  */