/* * nv_tco: TCO timer driver for nVidia chipsets. * * (c) Copyright 2005 Google Inc., All Rights Reserved. * * Supported Chipsets: * - MCP51/MCP55 * * (c) Copyright 2000 kernel concepts , All Rights * Reserved. * http://www.kernelconcepts.de * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * Neither kernel concepts nor Nils Faerber admit liability nor provide * warranty for any of this software. This material is provided * "AS-IS" and at no charge. * * (c) Copyright 2000 kernel concepts * developed for * Jentro AG, Haar/Munich (Germany) * * TCO timer driver for NV chipsets * based on softdog.c by Alan Cox */ /* * Some address definitions for the TCO */ #define TCO_RLD(base) ((base) + 0x00) /* TCO Timer Reload and Current Value */ #define TCO_TMR(base) ((base) + 0x01) /* TCO Timer Initial Value */ #define TCO_STS(base) ((base) + 0x04) /* TCO Status Register */ /* * TCO Boot Status bit: set on TCO reset, reset by software or standby * power-good (survives reboots), unfortunately this bit is never * set. */ # define TCO_STS_BOOT_STS (1 << 9) /* * first and 2nd timeout status bits, these also survive a warm boot, * and they work, so we use them. */ # define TCO_STS_TCO_INT_STS (1 << 1) # define TCO_STS_TCO2TO_STS (1 << 10) # define TCO_STS_RESET (TCO_STS_BOOT_STS | TCO_STS_TCO2TO_STS | \ TCO_STS_TCO_INT_STS) #define TCO_CNT(base) ((base) + 0x08) /* TCO Control Register */ # define TCO_CNT_TCOHALT (1 << 12) #define MCP51_SMBUS_SETUP_B 0xe8 # define MCP51_SMBUS_SETUP_B_TCO_REBOOT (1 << 25) /* * The SMI_EN register is at the base io address + 0x04, * while TCOBASE is + 0x40. */ #define MCP51_SMI_EN(base) ((base) - 0x40 + 0x04) # define MCP51_SMI_EN_TCO ((1 << 4) | (1 << 5)) a href='/cgit.cgi/linux/net-next.git/diff/net/bluetooth/rfcomm/sock.c?id=3365135d43f861003555c963b309672d053a2228'>diff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:44:32 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:44:32 -0800
commit3365135d43f861003555c963b309672d053a2228 (patch)
treebfef4adec5da118bf1b3df7e5cff74f45af9e02d /net/bluetooth/rfcomm/sock.c
parent5906374446386fd16fe562b042429d905d231ec3 (diff)
parente0d76fa4475ef2cf4b52d18588b8ce95153d021b (diff)
Merge tag 'xfs-for-linus-4.10-rc6-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
Pull xfs uodates from Darrick Wong: "I have some more fixes this week: better input validation, corruption avoidance, build fixes, memory leak fixes, and a couple from Christoph to avoid an ENOSPC failure. Summary: - Fix race conditions in the CoW code - Fix some incorrect input validation checks - Avoid crashing fs by running out of space when freeing inodes - Fix toctou race wrt whether or not an inode has an attr - Fix build error on arm - Fix page refcount corruption when readahead fails - Don't corrupt userspace in the bmap ioctl" * tag 'xfs-for-linus-4.10-rc6-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: prevent quotacheck from overloading inode lru xfs: fix bmv_count confusion w/ shared extents xfs: clear _XBF_PAGES from buffers when readahead page xfs: extsize hints are not unlikely in xfs_bmap_btalloc xfs: remove racy hasattr check from attr ops xfs: use per-AG reservations for the finobt xfs: only update mount/resv fields on success in __xfs_ag_resv_init xfs: verify dirblocklog correctly xfs: fix COW writeback race
Diffstat (limited to 'net/bluetooth/rfcomm/sock.c')