1ae1f3df4SWarner Losh /*- 2*f86e6000SWarner Losh * Copyright (c) 2015 M. Warner Losh <imp@FreeBSD.org> 3ae1f3df4SWarner Losh * 4ae1f3df4SWarner Losh * Redistribution and use in source and binary forms, with or without 5ae1f3df4SWarner Losh * modification, are permitted provided that the following conditions 6ae1f3df4SWarner Losh * are met: 7ae1f3df4SWarner Losh * 1. Redistributions of source code must retain the above copyright 8ae1f3df4SWarner Losh * notice unmodified, this list of conditions, and the following 9ae1f3df4SWarner Losh * disclaimer. 10ae1f3df4SWarner Losh * 2. Redistributions in binary form must reproduce the above copyright 11ae1f3df4SWarner Losh * notice, this list of conditions and the following disclaimer in the 12ae1f3df4SWarner Losh * documentation and/or other materials provided with the distribution. 13ae1f3df4SWarner Losh * 14ae1f3df4SWarner Losh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15ae1f3df4SWarner Losh * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16ae1f3df4SWarner Losh * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17ae1f3df4SWarner Losh * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18ae1f3df4SWarner Losh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19ae1f3df4SWarner Losh * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20ae1f3df4SWarner Losh * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21ae1f3df4SWarner Losh * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22ae1f3df4SWarner Losh * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23ae1f3df4SWarner Losh * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24ae1f3df4SWarner Losh */ 25ae1f3df4SWarner Losh 26ae1f3df4SWarner Losh #ifndef DEV_OW_OWLL_H 27ae1f3df4SWarner Losh #define DEV_OW_OWLL_H 1 28ae1f3df4SWarner Losh 29ae1f3df4SWarner Losh /* 30ae1f3df4SWarner Losh * Generalized parameters for the mode of operation in the bus. All units 31ae1f3df4SWarner Losh * are in nanoseconds, and assume that all timings are < 4s. 32ae1f3df4SWarner Losh * See owll_if.m for timings, and refer to AN937 for details. 33ae1f3df4SWarner Losh */ 34ae1f3df4SWarner Losh struct ow_timing 35ae1f3df4SWarner Losh { 36ae1f3df4SWarner Losh uint32_t t_slot; /* Slot time */ 37ae1f3df4SWarner Losh uint32_t t_low0; /* Time low for a 0 bit. */ 38ae1f3df4SWarner Losh uint32_t t_low1; /* Time low for a 1 bit. */ 39ae1f3df4SWarner Losh uint32_t t_lowr; /* Time slave holds line down per bit */ 40ae1f3df4SWarner Losh uint32_t t_release; /* Time after t_rdv to float high */ 41ae1f3df4SWarner Losh uint32_t t_rec; /* After sample before M low */ 42ae1f3df4SWarner Losh uint32_t t_rdv; /* Time to poll the bit after M low */ 43ae1f3df4SWarner Losh uint32_t t_rstl; /* Time M low on reset */ 44ae1f3df4SWarner Losh uint32_t t_rsth; /* Time M high on reset */ 45ae1f3df4SWarner Losh uint32_t t_pdl; /* Time S low on reset */ 46ae1f3df4SWarner Losh uint32_t t_pdh; /* Time R high after M low on reset */ 47ae1f3df4SWarner Losh }; 48ae1f3df4SWarner Losh 49ae1f3df4SWarner Losh #include "owll_if.h" 50ae1f3df4SWarner Losh 51ae1f3df4SWarner Losh #endif /* DEV_OW_OWLL_H */ 52