<?xml version="1.0" encoding="UTF-8"?>
<!--
  Device:2 Root Data Model: Common Object definitions [USB]

  Copyright (c) 2010-2024, Broadband Forum

  Redistribution and use in source and binary forms, with or
  without modification, are permitted provided that the following
  conditions are met:

  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above
     copyright notice, this list of conditions and the following
     disclaimer in the documentation and/or other materials
     provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its
     contributors may be used to endorse or promote products
     derived from this software without specific prior written
     permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  The above license is used as a license under copyright only.
  Please reference the Forum IPR Policy for patent licensing terms
  <https://www.broadband-forum.org/ipr-policy>.

  Any moral rights which are necessary to exercise under the above
  license grant are also deemed granted under this license.

  Comments or questions about this Broadband Forum data model should be
  directed to <info@broadband-forum.org>.
-->

<dm:document
    xmlns:dm="urn:broadband-forum-org:cwmp:datamodel-1-10"
    xmlns:dmr="urn:broadband-forum-org:cwmp:datamodel-report-1-0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
      urn:broadband-forum-org:cwmp:datamodel-1-10
        https://www.broadband-forum.org/cwmp/cwmp-datamodel-1-10.xsd
      urn:broadband-forum-org:cwmp:datamodel-report-1-0
        https://www.broadband-forum.org/cwmp/cwmp-datamodel-report-1-0.xsd"
    spec="urn:broadband-forum-org:tr-181-2-21-0-usb"
    file="tr-181-2-21-0-usb.xml">

  <import file="tr-069-biblio.xml" spec="urn:broadband-forum-org:tr-069"/>

  <import file="tr-106-types.xml" spec="urn:broadband-forum-org:tr-106">
    <component name="Alias"/>
    <dataType name="MACAddress"/>
  </import>

  <import file="tr-181-2-root.xml"
      spec="urn:broadband-forum-org:tr-181-2-21-root">
    <component name="Root"/>
  </import>

  <import file="tr-181-2-interface.xml"
    spec="urn:broadband-forum-org:tr-181-2-21-interface">
    <component name="Layer12Interface"/>
  </import>

  <import file="tr-181-2-powermanagement.xml"
      spec="urn:broadband-forum-org:tr-181-2-21-powermanagement">
    <component name="PowerManagement"/>
  </import>

  <component name="USB">

    <object name="Device.USB." access="readOnly" minEntries="1" maxEntries="1"
        version="2.0">
      <description>
        Universal Serial Bus ({{bibref|USB1.0}}, {{bibref|USB2.0}},
        {{bibref|USB3.0}}). This object contains the {{object|Interface}},
        {{object|Port}}, and {{object|USBHosts}} objects.
      </description>

      <component ref="Layer12Interface"/>

      <parameter name="PortNumberOfEntries" access="readOnly">
        <description>
          {{numentries}}
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>
    </object>

    <object base="Device.USB.Interface.{i}.">
      <description action="replace">
        USB interface table (a stackable interface object as described in
        {{bibref|TR-181i2|Section 4.2}}). This table models master and slave
        USB physical interfaces that support carrying Ethernet frames, e.g. via
        the USB Communication Device Class.
      </description>

      <parameter name="MACAddress" access="readOnly">
        <description>
          The MAC Address of the interface.

          Note: This is not necessarily the same as the Ethernet header source
          or destination MAC address, which is associated with the IP interface
          and is modeled via the {{param|##.Ethernet.Link.{i}.MACAddress}}
          parameter.
        </description>
        <syntax>
          <dataType ref="MACAddress"/>
        </syntax>
      </parameter>

      <parameter name="Port" access="readOnly">
        <description>
          {{reference}} This is the USB port associated with this interface
          object.
        </description>
        <syntax>
          <string>
            <size maxLength="256"/>
            <pathRef refType="strong" targetParent="#.Port." targetType="row"/>
          </string>
        </syntax>
      </parameter>
    </object>

    <object name="Device.USB.Port.{i}." access="readOnly"
        numEntriesParameter="PortNumberOfEntries" minEntries="0"
        maxEntries="unbounded" version="2.0">
      <description>
        USB Port table. This table models master and slave USB physical ports
        on the device.
      </description>
      <uniqueKey functional="false">
        <parameter ref="Alias"/>
      </uniqueKey>
      <uniqueKey functional="true">
        <parameter ref="Name"/>
      </uniqueKey>

      <component ref="Alias"/>
      <component ref="PowerManagement" version="2.20"/>

      <parameter name="Name" access="readOnly">
        <description>
          The textual name of the port.
        </description>
        <syntax>
          <string>
            <size maxLength="64"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Standard" access="readOnly">
        <description>
          USB specification version supported by the Port. Example: "1.1"
        </description>
        <syntax>
          <string>
            <size maxLength="4"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Type" access="readOnly">
        <description>
          Type of the USB connection.
        </description>
        <syntax>
          <string>
            <enumeration value="Host"/>
            <enumeration value="Hub"/>
            <enumeration value="Device"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Receptacle" access="readOnly">
        <description>
          Receptacle of the port.
        </description>
        <syntax>
          <string>
            <enumeration value="Standard-A"/>
            <enumeration value="Standard-B"/>
            <enumeration value="Powered-B"/>
            <enumeration value="Micro-AB"/>
            <enumeration value="Micro-B"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Rate" access="readOnly">
        <description>
          Current speed of the USB connection. {{enum}}
        </description>
        <syntax>
          <string>
            <enumeration value="Low">
              <description>
                1.5 Mbits/sec (187.5 KB/sec) defined in {{bibref|USB1.0}}
              </description>
            </enumeration>
            <enumeration value="Full">
              <description>
                12 Mbits/sec (1.5 MB/sec) defined in {{bibref|USB1.0}}
              </description>
            </enumeration>
            <enumeration value="High">
              <description>
                480 Mbits/sec (60 MB/sec) defined in {{bibref|USB2.0}}
              </description>
            </enumeration>
            <enumeration value="Super">
              <description>
                5.0 Gbits/sec (625 MB/sec) defined in {{bibref|USB3.0}}
              </description>
            </enumeration>
          </string>
        </syntax>
      </parameter>

      <parameter name="Power" access="readOnly">
        <description>
          Power configuration of the USB connection. {{enum}}

          Only applies when {{param|Type}} is {{enum|Device|Type}}. In other
          cases value is {{enum|Unknown}}.
        </description>
        <syntax>
          <string>
            <enumeration value="Self"/>
            <enumeration value="Bus"/>
            <enumeration value="Unknown"/>
          </string>
        </syntax>
      </parameter>
    </object>

    <object name="Device.USB.USBHosts." access="readOnly" minEntries="1"
        maxEntries="1" version="2.0">
      <description>
        This object models the CPE's USB Host controllers.

        See {{bibref|TR-181i2|Appendix XVII}} for Theory of Operation.
      </description>

      <parameter name="HostNumberOfEntries" access="readOnly">
        <description>
          {{numentries}}
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>

      <parameter name="AllowedDeviceNumberOfEntries" access="readOnly" version="2.20">
        <description>
          {{numentries}}
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>

      <parameter name="AllowAllDevices" access="readWrite" version="2.20">
        <description>
          When set to {{true}}, all USB devices are allowed to connect to the Device and the
          configuration mentioned in {{object|.USB.USBHosts.AllowedDevice.}} is ignored.

          When set to {{false}}, only USB devices listed in
          {{object|.USB.USBHosts.AllowedDevice.}} are allowed to connect to
          the Device. Any USB device not explicitly listed will be rendered inactive.
        </description>
        <syntax>
          <boolean/>
        </syntax>
      </parameter>
    </object>

    <object name="Device.USB.USBHosts.Host.{i}." access="readOnly"
        numEntriesParameter="HostNumberOfEntries" minEntries="0"
        maxEntries="unbounded" version="2.0">
      <description>
        Table of CPE USB Host controllers.
      </description>
      <uniqueKey functional="true">
        <parameter ref="Name"/>
      </uniqueKey>
      <uniqueKey functional="false">
        <parameter ref="Alias"/>
      </uniqueKey>

      <component ref="Alias" version="2.3"/>

      <parameter name="Enable" access="readWrite">
        <description>
          Enables or disables the USB Host controller.
        </description>
        <syntax>
          <boolean/>
        </syntax>
      </parameter>

      <parameter name="Name" access="readOnly">
        <description>
          User-readable host controller name.
        </description>
        <syntax>
          <string>
            <size maxLength="64"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Type" access="readOnly">
        <description>
          Type of USB Host
        </description>
        <syntax>
          <string>
            <enumeration value="Unknown" version="2.19">
              <description>Unknown Host Controller Interface</description>
            </enumeration>
            <enumeration value="OHCI">
              <description>Open Host Controller Interface</description>
            </enumeration>
            <enumeration value="EHCI">
              <description>Enhanced Host Controller Interface</description>
            </enumeration>
            <enumeration value="UHCI">
              <description>Universal Host Controller Interface</description>
            </enumeration>
            <enumeration value="xHCI">
              <description>Extensible Host Controller Interface</description>
            </enumeration>
          </string>
        </syntax>
      </parameter>

      <parameter name="PowerManagementEnable" access="readWrite">
        <description>
          When set to {{true}}, {{param}} enables the Host Controller to invoke
          Power Management policy, i.e. controlled Suspend (see
          {{bibref|USB2.0}}, Chapters 4.3.2, 7.1.7.6, and 11.9).

          When set to {{false}} {{param}} immediately disables the Host
          controller Power Management policy.
        </description>
        <syntax>
          <boolean/>
        </syntax>
      </parameter>

      <parameter name="USBVersion" access="readOnly">
        <description>
          USB specification version with which the controller complies.
          Example: "1.1"
        </description>
        <syntax>
          <string>
            <size maxLength="4"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="DeviceNumberOfEntries" access="readOnly">
        <description>
          {{numentries}}
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>
    </object>

    <object name="Device.USB.USBHosts.Host.{i}.Device.{i}." access="readOnly"
        numEntriesParameter="DeviceNumberOfEntries" minEntries="0"
        maxEntries="unbounded" version="2.0">
      <description>
        Table of connected USB devices.
      </description>
      <uniqueKey functional="true">
        <parameter ref="DeviceNumber"/>
      </uniqueKey>

      <parameter name="DeviceNumber" access="readOnly">
        <description>
          Device number on USB bus.
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>

      <parameter name="USBVersion" access="readOnly">
        <description>
          USB specification version with which the device complies. Example:
          "1.1"
        </description>
        <syntax>
          <string>
            <size maxLength="4"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="DeviceClass" access="readOnly">
        <description>
          Class Code as assigned by USB-IF.

          When 0x00, each device specifies its own class code. When 0xFF, the
          class code is vendor specified.
        </description>
        <syntax>
          <hexBinary>
            <size maxLength="1"/>
          </hexBinary>
        </syntax>
      </parameter>

      <parameter name="DeviceSubClass" access="readOnly">
        <description>
          Subclass code (assigned by USB-IF).
        </description>
        <syntax>
          <hexBinary>
            <size maxLength="1"/>
          </hexBinary>
        </syntax>
      </parameter>

      <parameter name="DeviceVersion" access="readOnly">
        <description>
          Device release number.
        </description>
        <syntax>
          <unsignedInt>
            <range maxInclusive="65535"/>
          </unsignedInt>
        </syntax>
      </parameter>

      <parameter name="DeviceProtocol" access="readOnly">
        <description>
          Protocol code (assigned by USB-IF).
        </description>
        <syntax>
          <hexBinary>
            <size maxLength="1"/>
          </hexBinary>
        </syntax>
      </parameter>

      <parameter name="ProductID" access="readOnly">
        <description>
          Product ID (assigned by manufacturer).
        </description>
        <syntax>
          <unsignedInt>
            <range maxInclusive="65535"/>
          </unsignedInt>
        </syntax>
      </parameter>

      <parameter name="VendorID" access="readOnly">
        <description>
          Vendor ID (assigned by USB-IF).
        </description>
        <syntax>
          <unsignedInt>
            <range maxInclusive="65535"/>
          </unsignedInt>
        </syntax>
      </parameter>

      <parameter name="Manufacturer" access="readOnly">
        <description>
          Device Manufacturer string descriptor.
        </description>
        <syntax>
          <string>
            <size maxLength="64"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="ProductClass" access="readOnly">
        <description>
          Device Product Class string descriptor.
        </description>
        <syntax>
          <string>
            <size maxLength="64"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="SerialNumber" access="readOnly">
        <description>
          Device SerialNumber string descriptor.
        </description>
        <syntax>
          <string>
            <size maxLength="64"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Port" access="readOnly">
        <description>
          Hub port on parent device.

          0 when no parent.
        </description>
        <syntax>
          <unsignedInt>
            <range maxInclusive="255"/>
          </unsignedInt>
        </syntax>
      </parameter>

      <parameter name="USBPort" access="readOnly">
        <description>
          {{reference}} This is a reference to the USB host device to which
          this (external) USB device is connected.
        </description>
        <syntax>
          <string>
            <pathRef refType="strong" targetParent="###.Port."
                targetType="row"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="Rate" access="readOnly">
        <description>
          Speed of the USB device. {{enum}}

          Internal signaling between the connected USB device and the USB Host
          Controller provide the information needed to determine the negotiated
          rate.
        </description>
        <syntax>
          <string>
            <enumeration value="Unknown" version="2.19">
              <description>
                No valid rate negotiated
              </description>
            </enumeration>
            <enumeration value="Low">
              <description>
                1.5 Mbits/sec (187.5 KB/sec) defined in {{bibref|USB1.0}}
              </description>
            </enumeration>
            <enumeration value="Full">
              <description>
                12 Mbits/sec (1.5 MB/sec) defined in {{bibref|USB1.0}}
              </description>
            </enumeration>
            <enumeration value="High">
              <description>
                480 Mbits/sec (60 MB/sec) defined in {{bibref|USB2.0}}
              </description>
            </enumeration>
            <enumeration value="Super">
              <description>
                5.0 Gbits/sec (625 MB/sec) defined in {{bibref|USB3.0}}
              </description>
            </enumeration>
          </string>
        </syntax>
      </parameter>

      <parameter name="Parent" access="readOnly">
        <description>
          {{reference}} This is a reference to the parent USB device (e.g. hub
          device).

          This is {{empty}} for a device connected to the Host controller (root
          hub).
        </description>
        <syntax>
          <string>
            <pathRef refType="strong" targetParent="#.Device."
                targetType="row"/>
          </string>
        </syntax>
      </parameter>

      <parameter name="MaxChildren" access="readOnly">
        <description>
          Number of ports. Only applies for hub device, equal to 0 for other
          devices.
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>

      <parameter name="IsSuspended" access="readOnly">
        <description>
          When {{true}} the associated Device is in a suspended (i.e.
          low-power) state (see {{bibref|USB2.0|Chapter 11.9}}).

          When {{false}} the associated Device is in any of the other states
          specified by the USB 2.0 Device State Machine (see
          {{bibref|USB2.0|Chapter 9.1.1}}).
        </description>
        <syntax>
          <boolean/>
        </syntax>
      </parameter>

      <parameter name="IsSelfPowered" access="readOnly">
        <description>
          When {{true}} the associated device is at least partly powered by a
          local source (see {{bibref|USB2.0|Chapter 9.4.5}}).

          When {{false}} the associated device draws all the current it needs
          from the USB bus.
        </description>
        <syntax>
          <boolean/>
        </syntax>
      </parameter>

      <parameter name="DeviceState" access="readOnly" version="2.20">
        <description>
          Indicates the low-level device state, directly mapping to the "Visible Device States" in
          {{bibref|USB2.0|Table 9-1 Visible Device States}}.
        </description>
        <syntax>
          <string>
            <enumeration value="Attached">
              <description>
                The device is physically connected to the USB port. This is the initial state upon
                connection, before the host has necessarily detected or powered it.
                
                See {{bibref|USB2.0|9.1.1.1 Attached}}.
              </description>
            </enumeration>
            <enumeration value="Powered">
              <description>
                The device is receiving power from the host but has not yet been reset. The
                host is aware of the connection.
                
                See {{bibref|USB2.0|9.1.1.2 Powered}}.
              </description>
            </enumeration>
            <enumeration value="Default">
              <description>
                The device has been reset by the host and is now communicating on the default
                address. It is waiting for the host to assign it a unique address.
                
                See {{bibref|USB2.0|9.1.1.3 Default}}.
              </description>
            </enumeration>
            <enumeration value="Address">
              <description>
                A unique device address has been assigned by the host. The device is now in the
                Address state, ready for the host to learn about its capabilities by reading its
                descriptors.
                
                See {{bibref|USB2.0|9.1.1.4 Address}}.
              </description>
            </enumeration>
            <enumeration value="Configured">
              <description>
                The device has been successfully configured by the host.
                It is now fully operational and its interfaces are active.
                
                See {{bibref|USB2.0|9.1.1.5 Configured}}.
              </description>
            </enumeration>
            <enumeration value="Suspended">
              <description>
                The device is in a low-power state to conserve energy. It maintains its address and
                configuration but is not actively communicating until it receives a resume signal
                from the host.
                
                See {{bibref|USB2.0|9.1.1.6 Suspended}}.
              </description>
            </enumeration>
          </string>
        </syntax>
      </parameter>

      <parameter name="IsAllowed" access="readOnly" version="2.20">
        <description>
          When {{true}}, the associated USB device is allowed to connect to the
          Device USB Host controller(s) based on the configuration in
          {{object|.USB.USBHosts.AllowedDevice.}} and {{param|##.AllowAllDevices}}.

          When {{false}}, the associated USB device is not allowed to connect.
        </description>
        <syntax>
          <boolean/>
        </syntax>
      </parameter>

      <parameter name="ConfigurationNumberOfEntries" access="readOnly">
        <description>
          {{numentries}}
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>
    </object>

    <object name="Device.USB.USBHosts.Host.{i}.Device.{i}.Configuration.{i}."
        access="readOnly" numEntriesParameter="ConfigurationNumberOfEntries"
        minEntries="0" maxEntries="unbounded" version="2.0">
      <description>
        Table of device configurations.
      </description>
      <uniqueKey functional="true">
        <parameter ref="ConfigurationNumber"/>
      </uniqueKey>

      <parameter name="ConfigurationNumber" access="readOnly">
        <description>
          The identifier for each Device Configuration.
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>

      <parameter name="InterfaceNumberOfEntries" access="readOnly">
        <description>
          {{numentries}}
        </description>
        <syntax>
          <unsignedInt/>
        </syntax>
      </parameter>
    </object>

    <object
        name="Device.USB.USBHosts.Host.{i}.Device.{i}.Configuration.{i}.Interface.{i}."
        access="readOnly" numEntriesParameter="InterfaceNumberOfEntries"
        minEntries="0" maxEntries="unbounded" version="2.0">
      <description>
        Table of device interface descriptors.
      </description>
      <uniqueKey functional="true">
        <parameter ref="InterfaceNumber"/>
      </uniqueKey>

      <parameter name="InterfaceNumber" access="readOnly">
        <description>
          Number of this interface (from USB interface descriptor).
        </description>
        <syntax>
          <unsignedInt>
            <range maxInclusive="255"/>
          </unsignedInt>
        </syntax>
      </parameter>

      <parameter name="InterfaceClass" access="readOnly">
        <description>
          Class Code as assigned by USB-IF.

          When 0x00, each interface specifies its own class code. When 0xFF,
          the class code is vendor specified.
        </description>
        <syntax>
          <hexBinary>
            <size maxLength="1"/>
          </hexBinary>
        </syntax>
      </parameter>

      <parameter name="InterfaceSubClass" access="readOnly">
        <description>
          Subclass code (assigned by USB-IF).
        </description>
        <syntax>
          <hexBinary>
            <size maxLength="1"/>
          </hexBinary>
        </syntax>
      </parameter>

      <parameter name="InterfaceProtocol" access="readOnly">
        <description>
          Protocol code (assigned by USB-IF).
        </description>
        <syntax>
          <hexBinary>
            <size maxLength="1"/>
          </hexBinary>
        </syntax>
      </parameter>
    </object>

    <object name="Device.USB.USBHosts.AllowedDevice.{i}." access="readWrite"
      numEntriesParameter="AllowedDeviceNumberOfEntries" minEntries="0"
      maxEntries="unbounded" enableParameter="Enable" version="2.20">
      <description>
        Table of USB devices permitted to connect to the Device USB Host controller(s).
        Each entry in this table defines an allowed device based on its e.g. USB Vendor ID
        and Product ID. Only USB devices listed here will be accepted by the Device; any
        USB device not explicitly listed will be rendered inactive.

        When a USB device is rendered inactive, the parameter value of
        {{param|#.Host.{i}.Device.{i}.IsAllowed}}
        is set to {{false}}, which prevents the {{param|#.Host.{i}.Device.{i}.DeviceState}} from reaching
        the {{enum|Configured|#.Host.{i}.Device.{i}.DeviceState}} status.
      </description>

      <uniqueKey functional="false">
        <parameter ref="Alias" />
      </uniqueKey>

      <component ref="Alias"/>

      <parameter name="Enable" access="readWrite">
        <description>
          Enables or disables whether the corresponding allowed USB device entry is active. 
          If set to {{true}}, the device defined by this entry is permitted to connect to the system.
          If {{false}}, the device is ignored even if its identifiers match.
        </description>
        <syntax>
          <boolean />
        </syntax>
      </parameter>

      <parameter name="Description" access="readWrite">
        <description>
          A user-friendly description of the allowed USB device entry.
        </description>
        <syntax>
          <string>
            <size maxLength="64" />
          </string>
        </syntax>
      </parameter>

      <parameter name="DeviceClass" access="readWrite">
        <description>
          Classification criterion.

          Class Code assigned by USB-IF, which can be expressed as a two-digit hexadecimal string
          (e.g., `00`), but can also include a wildcard character. When `00`, the device
          specifies its own class code. When `FF`, the class code is vendor-specific. The `*`
          wildcard may be used to match any value, either fully (e.g., `*`) or partially (e.g.,
          `F*` or `*3`). When empty, the device is not classified by Device Class.
        </description>
        <syntax>
          <string>
            <pattern value=""/>
            <pattern value="[0-9A-Fa-f*]{2}"></pattern>
          </string>
        </syntax>
      </parameter>

      <parameter name="DeviceSubClass" access="readWrite">
        <description>
          Classification criterion.

          Subclass code assigned by USB-IF, expressed as a two-digit hexadecimal string (e.g.,
          `01`), but can also include a wildcard character. The `*` wildcard may be used to match
          any value, either fully (e.g., `*`) or partially (e.g., `0*` or `*3`). When empty, the
          device is not classified by Device Subclass.
        </description>
        <syntax>
          <string>
            <pattern value=""/>
            <pattern value="[0-9A-Fa-f*]{2}"></pattern>
          </string>
        </syntax>
      </parameter>

      <parameter name="DeviceProtocol" access="readWrite">
        <description>
          Classification criterion.

          Protocol code assigned by USB-IF, expressed as a two-digit hexadecimal string
          (e.g., `02`), but can also include a wildcard character. The `*` wildcard may be used to
          match any value, either fully (e.g., `*`) or partially (e.g., `0*` or `*2`). When
          empty, the device is not classified by Device Protocol.
        </description>
        <syntax>
          <string>
            <pattern value=""/>
            <pattern value="[0-9A-Fa-f*]{2}"></pattern>
          </string>
        </syntax>
      </parameter>


      <parameter name="ProductID" access="readWrite">
        <description>
          Classification criterion.

          Product ID assigned by the manufacturer, expressed as a two- to four-digit hexadecimal
          string (e.g., `5678`), but can also include a wildcard character. The `*` wildcard may
          be used to match any value, either fully (e.g., `*`) or partially (e.g., `5*`). When
          empty, the device is not classified by Product ID.
        </description>
        <syntax>
          <string>
            <pattern value=""/>
            <pattern value="[0-9A-Fa-f*]{4}"></pattern>
          </string>
        </syntax>
      </parameter>

      <parameter name="VendorID" access="readWrite">
        <description>
          Classification criterion.

          Vendor ID assigned by USB-IF, expressed as a two- to four-digit hexadecimal string (e.g.,
          `1234`), but can also include a wildcard character. The `*` wildcard may be used to
          match any value, either fully (e.g., `*`) or partially (e.g., `1*`). When empty, the
          device is not classified by Vendor ID.
        </description>
        <syntax>
          <string>
            <pattern value=""/>
            <pattern value="[0-9A-Fa-f*]{4}"></pattern>
          </string>
        </syntax>
      </parameter>

      <parameter name="Interfaces" access="readWrite">
        <description>
          Each item defines an allowed USB interface in the format
          'InterfaceClass:InterfaceSubClass:InterfaceProtocol', using two-digit hexadecimal values
          (e.g., `FF`), but can also include a wildcard character.

          The `*` wildcard may be used to match any value, either fully (e.g., `*`) or partially
          (e.g., `F*`).

          A connected device is allowed only if all of its interfaces match entries in this list.

          * InterfaceClass: USB Class Code (`00` = per-interface class, `FF` =
          vendor-specific)
          * InterfaceSubClass: USB Subclass Code
          * InterfaceProtocol: USB Protocol Code

          Example: An USB Device might expose two interfaces:
          * `0xFF:0x02:0x01` for diagnostics
          * `0xFF:0x02:0x02` for data

          These can be allowed by listing both explicitly, or using patterns like
          `FF:02:*` or `F*:0*:0*`.

          When empty, the device is not classified by Interfaces.
        </description>
        <syntax>
          <list/>
          <string>
            <pattern value=""/>
            <pattern value="[0-9A-Fa-f*]{2}:[0-9A-Fa-f*]{2}:[0-9A-Fa-f*]{2}"/>
          </string>
        </syntax>
      </parameter>
    </object>

    <profile name="USBHostsBasic:1" version="2.0">
      <object ref="Device.USB.USBHosts." requirement="present">
        <parameter ref="HostNumberOfEntries" requirement="readOnly"/>
      </object>
      <object ref="Device.USB.USBHosts.Host.{i}." requirement="present">
        <parameter ref="Enable" requirement="readWrite"/>
        <parameter ref="Name" requirement="readOnly"/>
        <parameter ref="Type" requirement="readOnly"/>
        <parameter ref="USBVersion" requirement="readOnly"/>
        <parameter ref="DeviceNumberOfEntries" requirement="readOnly"/>
      </object>
      <object ref="Device.USB.USBHosts.Host.{i}.Device.{i}."
          requirement="present">
        <parameter ref="DeviceNumber" requirement="readOnly"/>
        <parameter ref="USBVersion" requirement="readOnly"/>
        <parameter ref="DeviceClass" requirement="readOnly"/>
        <parameter ref="DeviceSubClass" requirement="readOnly"/>
        <parameter ref="DeviceVersion" requirement="readOnly"/>
        <parameter ref="DeviceProtocol" requirement="readOnly"/>
        <parameter ref="ProductID" requirement="readOnly"/>
        <parameter ref="VendorID" requirement="readOnly"/>
        <parameter ref="Manufacturer" requirement="readOnly"/>
        <parameter ref="ProductClass" requirement="readOnly"/>
        <parameter ref="SerialNumber" requirement="readOnly"/>
        <parameter ref="Port" requirement="readOnly"/>
        <parameter ref="Rate" requirement="readOnly"/>
        <parameter ref="Parent" requirement="readOnly"/>
        <parameter ref="MaxChildren" requirement="readOnly"/>
      </object>
    </profile>

    <profile name="USBInterface:1" version="2.0">
      <object ref="Device.USB." requirement="present">
        <parameter ref="InterfaceNumberOfEntries" requirement="readOnly"/>
      </object>
      <object ref="Device.USB.Interface.{i}." requirement="present">
        <parameter ref="Enable" requirement="readWrite"/>
        <parameter ref="Status" requirement="readOnly"/>
        <parameter ref="Alias" requirement="writeOnceReadOnly"/>
        <parameter ref="Name" requirement="readOnly"/>
        <parameter ref="LastChange" requirement="readOnly"/>
        <parameter ref="Upstream" requirement="readOnly"/>
        <parameter ref="MACAddress" requirement="readOnly"/>
        <parameter ref="MaxBitRate" requirement="readOnly"/>
        <parameter ref="Port" requirement="readOnly"/>
      </object>
      <object ref="Device.USB.Interface.{i}.Stats." requirement="present">
        <parameter ref="BytesSent" requirement="readOnly"/>
        <parameter ref="BytesReceived" requirement="readOnly"/>
        <parameter ref="PacketsSent" requirement="readOnly"/>
        <parameter ref="PacketsReceived" requirement="readOnly"/>
        <parameter ref="ErrorsSent" requirement="readOnly"/>
        <parameter ref="ErrorsReceived" requirement="readOnly"/>
        <parameter ref="UnicastPacketsSent" requirement="readOnly"/>
        <parameter ref="UnicastPacketsReceived" requirement="readOnly"/>
        <parameter ref="DiscardPacketsSent" requirement="readOnly"/>
        <parameter ref="DiscardPacketsReceived" requirement="readOnly"/>
        <parameter ref="MulticastPacketsSent" requirement="readOnly"/>
        <parameter ref="MulticastPacketsReceived" requirement="readOnly"/>
        <parameter ref="BroadcastPacketsSent" requirement="readOnly"/>
        <parameter ref="BroadcastPacketsReceived" requirement="readOnly"/>
        <parameter ref="UnknownProtoPacketsReceived" requirement="readOnly"/>
      </object>
    </profile>

    <profile name="USBPort:1" version="2.0">
      <object ref="Device.USB." requirement="present">
        <parameter ref="PortNumberOfEntries" requirement="readOnly"/>
      </object>
      <object ref="Device.USB.Port.{i}." requirement="present">
        <parameter ref="Name" requirement="readOnly"/>
        <parameter ref="Standard" requirement="readOnly"/>
        <parameter ref="Type" requirement="readOnly"/>
        <parameter ref="Receptacle" requirement="readOnly"/>
        <parameter ref="Rate" requirement="readOnly"/>
        <parameter ref="Power" requirement="readOnly"/>
      </object>
    </profile>
  </component>

  <model name="USB:2.21">
    <component ref="Root"/>
    <component ref="USB"/>
  </model>
</dm:document>
