OSDN Git Service

Remove more non Linux gibberish
[android-x86/external-modules-rtl8723au.git] / include / rtw_led.h
old mode 100755 (executable)
new mode 100644 (file)
index e6f69a2..7f158fd
@@ -109,30 +109,36 @@ typedef struct _LED_871x{
        LED_STATE_871x          CurrLedState; // Current LED state.
        LED_STATE_871x          BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
 
-       u8 bLedOn; // true if LED is ON, false if LED is OFF.
+       u8                                      bLedOn; // true if LED is ON, false if LED is OFF.
 
-       u8 bLedBlinkInProgress; // true if it is blinking, false o.w..
+       u8                                      bLedBlinkInProgress; // true if it is blinking, false o.w..
 
-       u8 bLedWPSBlinkInProgress;
+       u8                                      bLedWPSBlinkInProgress;
 
-       u32 BlinkTimes; // Number of times to toggle led state for blinking.
+       u32                                     BlinkTimes; // Number of times to toggle led state for blinking.
 
-       struct timer_list BlinkTimer; // Timer object for led blinking.
+       _timer                          BlinkTimer; // Timer object for led blinking.
 
-       u8 bSWLedCtrl;
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+       u8                                      bSWLedCtrl;
 
        // ALPHA, added by chiyoko, 20090106
-       u8 bLedNoLinkBlinkInProgress;
-       u8 bLedLinkBlinkInProgress;
-       u8 bLedStartToLinkBlinkInProgress;
-       u8 bLedScanBlinkInProgress;
+       u8                                      bLedNoLinkBlinkInProgress;
+       u8                                      bLedLinkBlinkInProgress;
+       u8                                      bLedStartToLinkBlinkInProgress;
+       u8                                      bLedScanBlinkInProgress;
 
-       #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
        _workitem                       BlinkWorkItem; // Workitem used by BlinkTimer to manipulate H/W to blink LED.
-       #endif
+#endif //defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+
+#if defined(CONFIG_PCI_HCI)
+       u8                                      bLedSlowBlinkInProgress;//added by vivi, for led new mode
+#endif
 
 } LED_871x, *PLED_871x;
 
+#if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+
 #define IS_LED_WPS_BLINKING(_LED_871x) (((PLED_871x)_LED_871x)->CurrLedState==LED_BLINK_WPS \
                                        || ((PLED_871x)_LED_871x)->CurrLedState==LED_BLINK_WPS_STOP \
                                        || ((PLED_871x)_LED_871x)->bLedWPSBlinkInProgress)
@@ -161,6 +167,29 @@ LedControl871x(
        _adapter                                *padapter,
        LED_CTL_MODE            LedAction
        );
+#endif //defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
+
+#if defined(CONFIG_PCI_HCI)
+//================================================================================
+// LED customization.
+//================================================================================
+
+typedef        enum _LED_STRATEGY_871x{
+       SW_LED_MODE0 = 0, // SW control 1 LED via GPIO0. It is default option.
+       SW_LED_MODE1 = 1, // SW control for PCI Express
+       SW_LED_MODE2 = 2, // SW control for Cameo.
+       SW_LED_MODE3 = 3, // SW contorl for RunTop.
+       SW_LED_MODE4 = 4, // SW control for Netcore
+       SW_LED_MODE5 = 5, //added by vivi, for led new mode, DLINK
+       SW_LED_MODE6 = 6, //added by vivi, for led new mode, PRONET
+       SW_LED_MODE7 = 7, //added by chiyokolin, for Lenovo, PCI Express Minicard Spec Rev.1.2 spec
+       SW_LED_MODE8 = 8, //added by chiyokolin, for QMI
+       SW_LED_MODE9 = 9, //added by chiyokolin, for BITLAND, PCI Express Minicard Spec Rev.1.1
+       SW_LED_MODE10 = 10, //added by chiyokolin, for Edimax-ASUS
+       HW_LED = 50, // HW control 2 LEDs, LED0 and LED1 (there are 4 different control modes)
+       LED_ST_NONE = 99,
+}LED_STRATEGY_871x, *PLED_STRATEGY_871x;
+#endif //defined(CONFIG_PCI_HCI)
 
 struct led_priv{
        /* add for led controll */