mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-09-26 17:44:16 +00:00
Sync WiFi driver, firmware, and DKMS configuration from the bluetooth
branch (which itself is radxa USB driver_fw + Linux 6.16/6.17/6.19
kernel compat). aic_btusb and Bluetooth-specific install.sh logic
are intentionally excluded from main.
Driver updates:
- Add Linux kernel 6.12-6.19 compatibility support
- Add Linux 6.16 timer_container_of and wakelock API support
- Add Debian 6.1.0-26 backport support
- Add USB device ID 368b:8d81 support
- Add AIC8800DW device support
- Add TP-Link Archer TX1U Nano support (USB_VENDOR_ID_TENDA_V2:0x0110)
- Add TENDA series device support (U2, U11, U11 PRO)
- Add AIC8800FC_CUS1-6 series support
- Add AIC8800M80_CUS0-8 series support
- Add UGREEN AIC8800D80 adapter support
- Add Mercury (TP-Link OEM) support
- Allow 1 or 3 USB interfaces (BT-disabled SKUs report 1)
New compat modules:
- aicwf_compat_8800d80n.{c,h}
- aicwf_compat_8800dln.{c,h}
Firmware:
- New: fw/aic8800/, fw/aic8800D80N/, fw/aic8800D80X2/, fw/aic8800DLN/
- Updated: fw/aic8800D80/, fw/aic8800DC/
install.sh:
- Loop over all fw/aic8800* variants instead of hard-coding aic8800D80
- Install usb_modeswitch/1111_1111 config for "Pandora" clone adapter
- Verify firmware install by counting variants
dkms.conf: pass KDIR explicitly to make for cross-kernel builds.
Excluded from this commit (BT-only, kept on bluetooth branch):
- drivers/aic8800/aic_btusb/
- modprobe/aic8800-bt.conf
- diagnose_bt.sh
- install.sh btusb auto-load / hciconfig / bluez status checks
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
/**
|
|
* usb_host.h
|
|
*
|
|
* USB host function declarations
|
|
*
|
|
* Copyright (C) AICSemi 2018-2020
|
|
*/
|
|
|
|
|
|
#ifndef _USB_HOST_H_
|
|
#define _USB_HOST_H_
|
|
|
|
#include "lmac_types.h"
|
|
#include "aicwf_usb.h"
|
|
|
|
#define USB_TXQUEUE_CNT NX_TXQ_CNT
|
|
#define USB_TXDESC_CNT NX_TXDESC_CNT
|
|
|
|
|
|
/// Definition of the IPC Host environment structure.
|
|
struct usb_host_env_tag
|
|
{
|
|
// Index used that points to the first free TX desc
|
|
uint32_t txdesc_free_idx[USB_TXQUEUE_CNT];
|
|
// Index used that points to the first used TX desc
|
|
uint32_t txdesc_used_idx[USB_TXQUEUE_CNT];
|
|
// Array storing the currently pushed host ids, per IPC queue
|
|
//uint64_t tx_host_id[USB_TXQUEUE_CNT][USB_TXDESC_CNT];
|
|
unsigned long tx_host_id[USB_TXQUEUE_CNT][USB_TXDESC_CNT];
|
|
|
|
/// Pointer to the attached object (used in callbacks and register accesses)
|
|
void *pthis;
|
|
};
|
|
|
|
extern void aicwf_usb_host_init(struct usb_host_env_tag *env,
|
|
void *cb, void *shared_env_ptr, void *pthis);
|
|
|
|
extern void aicwf_usb_host_txdesc_push(struct usb_host_env_tag *env, const int queue_idx, const uint64_t host_id);
|
|
|
|
extern void aicwf_usb_host_tx_cfm_handler(struct usb_host_env_tag *env, u32 *data);
|
|
extern int aicwf_rwnx_usb_platform_init(struct aic_usb_dev *usbdev);
|
|
volatile struct txdesc_host *aicwf_usb_host_txdesc_get(struct usb_host_env_tag *env, const int queue_idx);
|
|
|
|
#endif
|