]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/b43/b43.h
b43: fall back gracefully to PIO mode after fatal DMA errors
[karo-tx-linux.git] / drivers / net / wireless / b43 / b43.h
index 5ef15009b7f9ae8738efaed621f98c87ade729fb..5db7e2fe648a5c63f5ca1e79c7b85f3cbd684a03 100644 (file)
@@ -696,6 +696,7 @@ struct b43_wldev {
        bool radio_hw_enable;   /* saved state of radio hardware enabled state */
        bool qos_enabled;               /* TRUE, if QoS is used. */
        bool hwcrypto_enabled;          /* TRUE, if HW crypto acceleration is enabled. */
+       bool use_pio;                   /* TRUE if next init should use PIO */
 
        /* PHY/Radio device. */
        struct b43_phy phy;
@@ -890,6 +891,12 @@ static inline bool b43_using_pio_transfers(struct b43_wldev *dev)
        return dev->__using_pio_transfers;
 }
 
+#ifdef CONFIG_B43_FORCE_PIO
+# define B43_PIO_DEFAULT 1
+#else
+# define B43_PIO_DEFAULT 0
+#endif
+
 /* Message printing */
 void b43info(struct b43_wl *wl, const char *fmt, ...)
     __attribute__ ((format(printf, 2, 3)));