summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-08-06 19:47:04 +0000
committerian <ian@FreeBSD.org>2015-08-06 19:47:04 +0000
commit588e2e118652873391ca30125c530cf2bfcac32f (patch)
treeedd89db9cc67bd3df9be741edfeb2d8ecf4e9547 /contrib/llvm/tools/clang/lib/Basic/Targets.cpp
parent86e1324b21a4eb57aafd8f5b25c949ce5a33357e (diff)
downloadFreeBSD-src-588e2e118652873391ca30125c530cf2bfcac32f.zip
FreeBSD-src-588e2e118652873391ca30125c530cf2bfcac32f.tar.gz
Return the current ftdi bitbang mode with the UFTDIIOC_GET_BITMODE ioctl.
The ftdi chip itself has a "get bitmode" command that doesn't actually return the current bitmode, just a snapshot of the gpio lines. The chip apparently has no way to provide the current bitmode. This implements the functionality at the driver level. The driver starts out assuming the chip is in UART mode (which it will be, coming out of reset) and keeps track of every successful set-bitmode operation so that it can always return the current mode with UFTDIIOC_GET_BITMODE.
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud