]> git.proxmox.com Git - qemu.git/commit - hw/usb/hcd-xhci.c
xhci: add {get,set}_field macros & enum for pls
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 26 Oct 2012 08:10:54 +0000 (10:10 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Nov 2012 12:10:09 +0000 (13:10 +0100)
commit85e05d825f7a9ecc1b5100bdd553fcc682c8366e
tree0f07e8d984d11909bb10d9cb2f0967f244fd8492
parent286d52ebfc0d0d53c2a878e454292fea14bad41b
xhci: add {get,set}_field macros & enum for pls

Add {get,set}_field macros (simliar to ehci) to read and update
some bits of a word.  Put them into use for updating pls (port
link state) values.  Also add a enum for pls values.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c