xref: /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/cyw/module.c (revision b4c3e9b5b09c829b4135aff738bd2893ed052377)
1*b4c3e9b5SBjoern A. Zeeb // SPDX-License-Identifier: ISC
2*b4c3e9b5SBjoern A. Zeeb /*
3*b4c3e9b5SBjoern A. Zeeb  * Copyright (c) 2022 Broadcom Corporation
4*b4c3e9b5SBjoern A. Zeeb  */
5*b4c3e9b5SBjoern A. Zeeb #include <linux/module.h>
6*b4c3e9b5SBjoern A. Zeeb #include <bus.h>
7*b4c3e9b5SBjoern A. Zeeb #include <core.h>
8*b4c3e9b5SBjoern A. Zeeb #include <fwvid.h>
9*b4c3e9b5SBjoern A. Zeeb 
10*b4c3e9b5SBjoern A. Zeeb #include "vops.h"
11*b4c3e9b5SBjoern A. Zeeb 
brcmf_cyw_init(void)12*b4c3e9b5SBjoern A. Zeeb static int __init brcmf_cyw_init(void)
13*b4c3e9b5SBjoern A. Zeeb {
14*b4c3e9b5SBjoern A. Zeeb 	return brcmf_fwvid_register_vendor(BRCMF_FWVENDOR_CYW, THIS_MODULE,
15*b4c3e9b5SBjoern A. Zeeb 					   &brcmf_cyw_ops);
16*b4c3e9b5SBjoern A. Zeeb }
17*b4c3e9b5SBjoern A. Zeeb 
brcmf_cyw_exit(void)18*b4c3e9b5SBjoern A. Zeeb static void __exit brcmf_cyw_exit(void)
19*b4c3e9b5SBjoern A. Zeeb {
20*b4c3e9b5SBjoern A. Zeeb 	brcmf_fwvid_unregister_vendor(BRCMF_FWVENDOR_CYW, THIS_MODULE);
21*b4c3e9b5SBjoern A. Zeeb }
22*b4c3e9b5SBjoern A. Zeeb 
23*b4c3e9b5SBjoern A. Zeeb MODULE_DESCRIPTION("Broadcom FullMAC WLAN driver plugin for Cypress/Infineon chipsets");
24*b4c3e9b5SBjoern A. Zeeb MODULE_LICENSE("Dual BSD/GPL");
25*b4c3e9b5SBjoern A. Zeeb MODULE_IMPORT_NS("BRCMFMAC");
26*b4c3e9b5SBjoern A. Zeeb 
27*b4c3e9b5SBjoern A. Zeeb module_init(brcmf_cyw_init);
28*b4c3e9b5SBjoern A. Zeeb module_exit(brcmf_cyw_exit);
29