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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

int ath5k_hw_init (struct ath5k_hw *ah)
 
void ath5k_hw_deinit (struct ath5k_hw *ah)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file attach.c.

Function Documentation

void ath5k_hw_deinit ( struct ath5k_hw ah)

ath5k_hw_deinit() - Free the &struct ath5k_hw : The &struct ath5k_hw

Definition at line 350 of file attach.c.

int ath5k_hw_init ( struct ath5k_hw ah)

ath5k_hw_init() - Check if hw is supported and init the needed structs : The &struct ath5k_hw associated with the device

Check if the device is supported, perform a POST and initialize the needed structs. Returns -ENOMEM if we don't have memory for the needed structs, -ENODEV if the device is not supported or prints an error msg if something else went wrong.

Definition at line 104 of file attach.c.