/*-1* Copyright (c) 2017 Adrian Chadd <[email protected]>2* All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer,9* without modification.10* 2. Redistributions in binary form must reproduce at minimum a disclaimer11* similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any12* redistribution must be conditioned upon including a substantially13* similar Disclaimer requirement for further binary redistribution.14*15* NO WARRANTY16* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS17* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT18* LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY19* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL20* THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,21* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF22* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS23* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER24* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)25* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF26* THE POSSIBILITY OF SUCH DAMAGES.27*/28#include "opt_ah.h"2930#include <sys/param.h>31#include <sys/systm.h>32#include <sys/kernel.h>33#include <sys/module.h>34#include <sys/sysctl.h>35#include <sys/bus.h>36#include <sys/malloc.h>37#include <sys/proc.h>38#include <sys/pcpu.h>39#include <sys/lock.h>40#include <sys/mutex.h>41#include <sys/conf.h>4243/*44* This implements the "old" style ath(4) module behaviour, which loaded the45* driver, HAL and PCI glue.46*/4748static int49ath_modevent(module_t mod __unused, int type, void *data __unused)50{51int error = 0;5253switch (type) {54case MOD_LOAD:55printf("[ath] loaded\n");56break;5758case MOD_UNLOAD:59printf("[ath] unloaded\n");60break;6162case MOD_SHUTDOWN:63break;6465default:66error = EOPNOTSUPP;67break;68}69return (error);70}7172DEV_MODULE(if_ath, ath_modevent, NULL);7374MODULE_VERSION(if_ath, 1);75MODULE_DEPEND(if_ath, ath_hal, 1, 1, 1);76MODULE_DEPEND(if_ath, ath_hal_ar5210, 1, 1, 1);77MODULE_DEPEND(if_ath, ath_hal_ar5211, 1, 1, 1);78MODULE_DEPEND(if_ath, ath_hal_ar5212, 1, 1, 1);79MODULE_DEPEND(if_ath, ath_hal_ar5416, 1, 1, 1);80MODULE_DEPEND(if_ath, ath_hal_ar9300, 1, 1, 1);81MODULE_DEPEND(if_ath, ath_rate, 1, 1, 1);82MODULE_DEPEND(if_ath, ath_dfs, 1, 1, 1);83MODULE_DEPEND(if_ath, wlan, 1, 1, 1);84MODULE_DEPEND(if_ath, ath_main, 1, 1, 1);85MODULE_DEPEND(if_ath, if_ath_pci, 1, 1, 1);868788