]> err.no Git - linux-2.6/blobdiff - drivers/net/wireless/rtl8187.h
lapb: use the shorter LIST_HEAD form for brevity
[linux-2.6] / drivers / net / wireless / rtl8187.h
index 41d0aac3e27ee56e5666c4362b92693d63aa660c..8680a0b6433cd46fccd1c1a703e152de68fd5861 100644 (file)
@@ -1,3 +1,17 @@
+/*
+ * Definitions for RTL8187 hardware
+ *
+ * Copyright 2007 Michael Wu <flamingice@sourmilk.net>
+ * Copyright 2007 Andrea Merello <andreamrl@tiscali.it>
+ *
+ * Based on the r8187 driver, which is:
+ * Copyright 2005 Andrea Merello <andreamrl@tiscali.it>, et al.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
 #ifndef RTL8187_H
 #define RTL8187_H
 
@@ -22,8 +36,7 @@ struct rtl8187_rx_info {
 };
 
 struct rtl8187_rx_hdr {
-       __le16 len;
-       __le16 rate;
+       __le32 flags;
        u8 noise;
        u8 signal;
        u8 agc;
@@ -51,7 +64,8 @@ struct rtl8187_tx_hdr {
 struct rtl8187_priv {
        /* common between rtl818x drivers */
        struct rtl818x_csr *map;
-       void (*rf_init)(struct ieee80211_hw *);
+       const struct rtl818x_rf_ops *rf;
+       struct ieee80211_vif *vif;
        int mode;
 
        /* rtl8187 specific */
@@ -59,7 +73,7 @@ struct rtl8187_priv {
        struct ieee80211_rate rates[12];
        struct ieee80211_hw_mode modes[2];
        struct usb_device *udev;
-       u8 *hwaddr;
+       u32 rx_conf;
        u16 txpwr_base;
        u8 asic_rev;
        struct sk_buff_head rx_queue;