Commit b00435e6 authored by Erik Stromdahl's avatar Erik Stromdahl Committed by Kalle Valo

ath10k: various usb related definitions

Definitions for USB based chipsets
Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 47cc0ca9
...@@ -1454,6 +1454,7 @@ static void ath10k_core_get_fw_name(struct ath10k *ar, char *fw_name, ...@@ -1454,6 +1454,7 @@ static void ath10k_core_get_fw_name(struct ath10k *ar, char *fw_name,
{ {
switch (ar->hif.bus) { switch (ar->hif.bus) {
case ATH10K_BUS_SDIO: case ATH10K_BUS_SDIO:
case ATH10K_BUS_USB:
scnprintf(fw_name, fw_name_len, "%s-%s-%d.bin", scnprintf(fw_name, fw_name_len, "%s-%s-%d.bin",
ATH10K_FW_FILE_BASE, ath10k_bus_str(ar->hif.bus), ATH10K_FW_FILE_BASE, ath10k_bus_str(ar->hif.bus),
fw_api); fw_api);
......
...@@ -92,6 +92,7 @@ enum ath10k_bus { ...@@ -92,6 +92,7 @@ enum ath10k_bus {
ATH10K_BUS_PCI, ATH10K_BUS_PCI,
ATH10K_BUS_AHB, ATH10K_BUS_AHB,
ATH10K_BUS_SDIO, ATH10K_BUS_SDIO,
ATH10K_BUS_USB,
}; };
static inline const char *ath10k_bus_str(enum ath10k_bus bus) static inline const char *ath10k_bus_str(enum ath10k_bus bus)
...@@ -103,6 +104,8 @@ static inline const char *ath10k_bus_str(enum ath10k_bus bus) ...@@ -103,6 +104,8 @@ static inline const char *ath10k_bus_str(enum ath10k_bus bus)
return "ahb"; return "ahb";
case ATH10K_BUS_SDIO: case ATH10K_BUS_SDIO:
return "sdio"; return "sdio";
case ATH10K_BUS_USB:
return "usb";
} }
return "unknown"; return "unknown";
......
...@@ -40,6 +40,8 @@ enum ath10k_debug_mask { ...@@ -40,6 +40,8 @@ enum ath10k_debug_mask {
ATH10K_DBG_AHB = 0x00008000, ATH10K_DBG_AHB = 0x00008000,
ATH10K_DBG_SDIO = 0x00010000, ATH10K_DBG_SDIO = 0x00010000,
ATH10K_DBG_SDIO_DUMP = 0x00020000, ATH10K_DBG_SDIO_DUMP = 0x00020000,
ATH10K_DBG_USB = 0x00040000,
ATH10K_DBG_USB_BULK = 0x00080000,
ATH10K_DBG_ANY = 0xffffffff, ATH10K_DBG_ANY = 0xffffffff,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment