Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
led.c File Reference
#include <linux/pci.h>
#include "ath5k.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define ATH_SDEVICE(subv, subd)
 
#define ATH_LED(pin, polarity)   .driver_data = (((pin) << 8) | (polarity))
 
#define ATH_PIN(data)   ((data) >> 8)
 
#define ATH_POLARITY(data)   ((data) & 0xff)
 

Functions

void ath5k_led_enable (struct ath5k_hw *ah)
 
void ath5k_led_off (struct ath5k_hw *ah)
 
void ath5k_unregister_leds (struct ath5k_hw *ah)
 
int __devinit ath5k_init_leds (struct ath5k_hw *ah)
 

Macro Definition Documentation

#define ATH_LED (   pin,
  polarity 
)    .driver_data = (((pin) << 8) | (polarity))

Definition at line 51 of file led.c.

#define ATH_PIN (   data)    ((data) >> 8)

Definition at line 52 of file led.c.

#define ATH_POLARITY (   data)    ((data) & 0xff)

Definition at line 53 of file led.c.

#define ATH_SDEVICE (   subv,
  subd 
)
Value:
.vendor = PCI_ANY_ID, .device = PCI_ANY_ID, \
.subvendor = (subv), .subdevice = (subd)

Definition at line 47 of file led.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 42 of file led.c.

Function Documentation

int __devinit ath5k_init_leds ( struct ath5k_hw ah)

Definition at line 161 of file led.c.

void ath5k_led_enable ( struct ath5k_hw ah)

Definition at line 90 of file led.c.

void ath5k_led_off ( struct ath5k_hw ah)

Definition at line 105 of file led.c.

void ath5k_unregister_leds ( struct ath5k_hw ah)

Definition at line 155 of file led.c.