1343044c4SJared McNeill /*- 2343044c4SJared McNeill * Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca> 3343044c4SJared McNeill * 4343044c4SJared McNeill * Redistribution and use in source and binary forms, with or without 5343044c4SJared McNeill * modification, are permitted provided that the following conditions 6343044c4SJared McNeill * are met: 7343044c4SJared McNeill * 1. Redistributions of source code must retain the above copyright 8343044c4SJared McNeill * notice, this list of conditions and the following disclaimer. 9343044c4SJared McNeill * 2. Redistributions in binary form must reproduce the above copyright 10343044c4SJared McNeill * notice, this list of conditions and the following disclaimer in the 11343044c4SJared McNeill * documentation and/or other materials provided with the distribution. 12343044c4SJared McNeill * 13343044c4SJared McNeill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14343044c4SJared McNeill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15343044c4SJared McNeill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16343044c4SJared McNeill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17343044c4SJared McNeill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 18343044c4SJared McNeill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19343044c4SJared McNeill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 20343044c4SJared McNeill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 21343044c4SJared McNeill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22343044c4SJared McNeill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23343044c4SJared McNeill * SUCH DAMAGE. 24343044c4SJared McNeill */ 25343044c4SJared McNeill 26343044c4SJared McNeill #ifndef __AW_SID_H__ 27343044c4SJared McNeill #define __AW_SID_H__ 28343044c4SJared McNeill 29*97eb836fSEmmanuel Vadot enum aw_sid_fuse_id { 30*97eb836fSEmmanuel Vadot AW_SID_FUSE_ROOTKEY = 1, 31*97eb836fSEmmanuel Vadot AW_SID_FUSE_THSSENSOR, 32*97eb836fSEmmanuel Vadot }; 33*97eb836fSEmmanuel Vadot 34343044c4SJared McNeill int aw_sid_read_tscalib(uint32_t *, uint32_t *); 35*97eb836fSEmmanuel Vadot int aw_sid_get_fuse(enum aw_sid_fuse_id id, uint8_t *out, uint32_t *size); 36343044c4SJared McNeill 37343044c4SJared McNeill #endif /* !__AW_SID_H__ */ 38