#define _HAL_INIT_C_
#include <linux/usb.h>
#include <linux/device.h>
#include <linux/usb/ch9.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include "osdep_service.h"
#include "drv_types.h"
#include "usb_osintf.h"
#define FWBUFF_ALIGN_SZ …
#define MAX_DUMP_FWSZ …
static void rtl871x_load_fw_fail(struct _adapter *adapter)
{ … }
static void rtl871x_load_fw_cb(const struct firmware *firmware, void *context)
{ … }
static const char firmware_file[] = …;
int rtl871x_load_fw(struct _adapter *padapter)
{ … }
MODULE_FIRMWARE(…) …;
static u32 rtl871x_open_fw(struct _adapter *adapter, const u8 **mappedfw)
{ … }
static void fill_fwpriv(struct _adapter *adapter, struct fw_priv *fwpriv)
{ … }
static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw)
{ … }
static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength)
{ … }
static u8 rtl8712_dl_fw(struct _adapter *adapter)
{ … }
uint rtl8712_hal_init(struct _adapter *padapter)
{ … }
uint rtl8712_hal_deinit(struct _adapter *padapter)
{ … }
uint rtl871x_hal_init(struct _adapter *padapter)
{ … }