1293781Sian/*- 2293781Sian * Copyright (c) 2015 Ian Lepore 3293781Sian * All rights reserved. 4293781Sian * 5293781Sian * Redistribution and use in source and binary forms, with or without 6293781Sian * modification, are permitted provided that the following conditions 7293781Sian * are met: 8293781Sian * 9293781Sian * 1. Redistributions of source code must retain the above copyright 10293781Sian * notice, this list of conditions and the following disclaimer. 11293781Sian * 2. Redistributions in binary form must reproduce the above copyright 12293781Sian * notice, this list of conditions and the following disclaimer in the 13293781Sian * documentation and/or other materials provided with the distribution. 14293781Sian * 15293781Sian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16293781Sian * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17293781Sian * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18293781Sian * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19293781Sian * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20293781Sian * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21293781Sian * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22293781Sian * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23293781Sian * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24293781Sian * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25293781Sian * 26293781Sian * $FreeBSD$ 27293781Sian */ 28293781Sian 29293781Sian#ifndef _DEV_UART_PPSTYPES_H_ 30293781Sian#define _DEV_UART_PPSTYPES_H_ 31293781Sian 32293781Sian/* 33293781Sian * These constants are shared by several drivers including uart and usb_serial. 34293781Sian */ 35293781Sian 36293781Sian#define UART_PPS_SIGNAL_MASK 0x0f 37293781Sian#define UART_PPS_OPTION_MASK 0xf0 38293781Sian 39293781Sian#define UART_PPS_DISABLED 0x00 40293781Sian#define UART_PPS_CTS 0x01 41293781Sian#define UART_PPS_DCD 0x02 42293781Sian 43293781Sian#define UART_PPS_INVERT_PULSE 0x10 44293781Sian#define UART_PPS_NARROW_PULSE 0x20 45293781Sian 46293781Sian#endif /* _DEV_UART_PPSTYPES_H_ */ 47