usb: xhci: Move extcaps related macros to respective header file
authorKrishna Kurapati <quic_kriskura@quicinc.com>
Mon, 28 Aug 2023 13:30:23 +0000 (19:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 11:55:44 +0000 (13:55 +0200)
commit60958b3abacc4eeea21236aa61bfacd1c3520168
tree2c85ee31237af5686192cdc84b7f6c0a1152ae10
parenteb3f1d9e42b1499152442e97b51bc1bcfee29d71
usb: xhci: Move extcaps related macros to respective header file

DWC3 driver needs access to XHCI Extended Capabilities registers to
read number of usb2 ports and usb3 ports present on multiport controller.
Since the extcaps header is sufficient to parse this info, move port_count
related macros and structure from xhci.h to xhci-ext-caps.h.

Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Link: https://lore.kernel.org/r/20230828133033.11988-4-quic_kriskura@quicinc.com
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ext-caps.h
drivers/usb/host/xhci.h