/* * Copyright (c) 2008-2011 Atheros Communications Inc. * Copyright (c) 2009 Gabor Juhos <[email protected]> * Copyright (c) 2009 Imre Kaloz <[email protected]> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <linux/nl80211.h> #include <linux/platform_device.h> #include <linux/module.h> #include <linux/mod_devicetable.h> #include "ath9k.h" static const struct platform_device_id ath9k_platform_id_table[] = …; /* return bus cachesize in 4B word units */ static void ath_ahb_read_cachesize(struct ath_common *common, int *csz) { … } static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) { … } static const struct ath_bus_ops ath_ahb_bus_ops = …; static int ath_ahb_probe(struct platform_device *pdev) { … } static void ath_ahb_remove(struct platform_device *pdev) { … } static struct platform_driver ath_ahb_driver = …; MODULE_DEVICE_TABLE(platform, ath9k_platform_id_table); int ath_ahb_init(void) { … } void ath_ahb_exit(void) { … }