FreeBSD kernel MWL device code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/module.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mutex.h>
#include <sys/errno.h>
#include <machine/bus.h>
#include <machine/resource.h>
#include <sys/bus.h>
#include <sys/rman.h>
#include <sys/socket.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_media.h>
#include <net/if_arp.h>
#include <net/route.h>
#include <net80211/ieee80211_var.h>
#include <dev/mwl/if_mwlvar.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
Go to the source code of this file.
Data Structures | |
struct | mwl_pci_softc |
struct | mwl_pci_ident |
Macros | |
#define | BS_BAR0 0x10 |
#define | BS_BAR1 0x14 |
Functions | |
__FBSDID ("$FreeBSD$") | |
static const struct mwl_pci_ident * | mwl_pci_lookup (int vendor, int device) |
static int | mwl_pci_probe (device_t dev) |
static int | mwl_pci_attach (device_t dev) |
static int | mwl_pci_detach (device_t dev) |
static int | mwl_pci_shutdown (device_t dev) |
static int | mwl_pci_suspend (device_t dev) |
static int | mwl_pci_resume (device_t dev) |
DRIVER_MODULE (mwl, pci, mwl_pci_driver, mwl_devclass, 0, 0) | |
MODULE_VERSION (mwl, 1) | |
MODULE_DEPEND (mwl, wlan, 1, 1, 1) | |
MODULE_DEPEND (mwl, firmware, 1, 1, 1) | |
Variables | |
static const struct mwl_pci_ident | mwl_pci_ids [] |
static device_method_t | mwl_pci_methods [] |
static driver_t | mwl_pci_driver |
static devclass_t | mwl_devclass |
#define BS_BAR0 0x10 |
Definition at line 84 of file if_mwl_pci.c.
#define BS_BAR1 0x14 |
Definition at line 85 of file if_mwl_pci.c.
__FBSDID | ( | "$FreeBSD$" | ) |
DRIVER_MODULE | ( | mwl | , |
pci | , | ||
mwl_pci_driver | , | ||
mwl_devclass | , | ||
0 | , | ||
0 | |||
) |
MODULE_DEPEND | ( | mwl | , |
firmware | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | mwl | , |
wlan | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_VERSION | ( | mwl | , |
1 | |||
) |
|
static |
Definition at line 129 of file if_mwl_pci.c.
References BS_BAR0, BS_BAR1, mwl_attach(), mwl_intr(), MWL_LOCK_DESTROY, MWL_LOCK_INIT, MWL_TXDESC, mwl_softc::sc_dev, mwl_softc::sc_dmat, mwl_pci_softc::sc_ih, mwl_softc::sc_invalid, mwl_softc::sc_io0h, mwl_softc::sc_io0t, mwl_softc::sc_io1h, mwl_softc::sc_io1t, mwl_pci_softc::sc_irq, mwl_pci_softc::sc_sc, mwl_pci_softc::sc_sr0, and mwl_pci_softc::sc_sr1.
|
static |
Definition at line 220 of file if_mwl_pci.c.
References BS_BAR0, BS_BAR1, mwl_detach(), MWL_LOCK_DESTROY, mwl_softc::sc_dmat, mwl_pci_softc::sc_ih, mwl_softc::sc_invalid, mwl_pci_softc::sc_irq, mwl_pci_softc::sc_sc, mwl_pci_softc::sc_sr0, and mwl_pci_softc::sc_sr1.
|
static |
Definition at line 105 of file if_mwl_pci.c.
References mwl_pci_ident::device, mwl_pci_ids, mwl_pci_ident::name, and mwl_pci_ident::vendor.
Referenced by mwl_pci_probe().
|
static |
Definition at line 116 of file if_mwl_pci.c.
References mwl_pci_lookup(), and mwl_pci_ident::name.
|
static |
Definition at line 263 of file if_mwl_pci.c.
References mwl_resume(), and mwl_pci_softc::sc_sc.
|
static |
Definition at line 244 of file if_mwl_pci.c.
References mwl_shutdown(), and mwl_pci_softc::sc_sc.
|
static |
Definition at line 253 of file if_mwl_pci.c.
References mwl_suspend(), and mwl_pci_softc::sc_sc.
|
static |
Definition at line 289 of file if_mwl_pci.c.
|
static |
Definition at line 284 of file if_mwl_pci.c.
|
static |
Definition at line 93 of file if_mwl_pci.c.
Referenced by mwl_pci_lookup().
|
static |
Definition at line 274 of file if_mwl_pci.c.