aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/dwc3/core.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index c6de53c812a9..a763ba705bff 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -507,6 +507,30 @@ static inline void dwc3_trb_to_nat(struct dwc3_trb_hw *hw, struct dwc3_trb *nat)
507} 507}
508 508
509/** 509/**
510 * dwc3_hwparams - copy of HWPARAMS registers
511 * @hwparams0 - GHWPARAMS0
512 * @hwparams1 - GHWPARAMS1
513 * @hwparams2 - GHWPARAMS2
514 * @hwparams3 - GHWPARAMS3
515 * @hwparams4 - GHWPARAMS4
516 * @hwparams5 - GHWPARAMS5
517 * @hwparams6 - GHWPARAMS6
518 * @hwparams7 - GHWPARAMS7
519 * @hwparams8 - GHWPARAMS8
520 */
521struct dwc3_hwparams {
522 u32 hwparams0;
523 u32 hwparams1;
524 u32 hwparams2;
525 u32 hwparams3;
526 u32 hwparams4;
527 u32 hwparams5;
528 u32 hwparams6;
529 u32 hwparams7;
530 u32 hwparams8;
531};
532
533/**
510 * struct dwc3 - representation of our controller 534 * struct dwc3 - representation of our controller
511 * @ctrl_req: usb control request which is used for ep0 535 * @ctrl_req: usb control request which is used for ep0
512 * @ep0_trb: trb which is used for the ctrl_req 536 * @ep0_trb: trb which is used for the ctrl_req
@@ -537,6 +561,7 @@ static inline void dwc3_trb_to_nat(struct dwc3_trb_hw *hw, struct dwc3_trb *nat)
537 * @link_state: link state 561 * @link_state: link state
538 * @speed: device speed (super, high, full, low) 562 * @speed: device speed (super, high, full, low)
539 * @mem: points to start of memory which is used for this struct. 563 * @mem: points to start of memory which is used for this struct.
564 * @hwparams: copy of hwparams registers
540 * @root: debugfs root folder pointer 565 * @root: debugfs root folder pointer
541 */ 566 */
542struct dwc3 { 567struct dwc3 {
@@ -589,6 +614,7 @@ struct dwc3 {
589 u8 speed; 614 u8 speed;
590 void *mem; 615 void *mem;
591 616
617 struct dwc3_hwparams hwparams;
592 struct dentry *root; 618 struct dentry *root;
593}; 619};
594 620