1181430Sstas/*- 2181430Sstas * Copyright (c) 2006, 2008 Stanislav Sedov <stas@FreeBSD.org>. 3181430Sstas * All rights reserved. 4181430Sstas * 5181430Sstas * Redistribution and use in source and binary forms, with or without 6181430Sstas * modification, are permitted provided that the following conditions 7181430Sstas * are met: 8181430Sstas * 1. Redistributions of source code must retain the above copyright 9181430Sstas * notice, this list of conditions and the following disclaimer. 10181430Sstas * 2. Redistributions in binary form must reproduce the above copyright 11181430Sstas * notice, this list of conditions and the following disclaimer in the 12181430Sstas * documentation and/or other materials provided with the distribution. 13181430Sstas * 14181430Sstas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15181430Sstas * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16181430Sstas * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17181430Sstas * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18181430Sstas * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19181430Sstas * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20181430Sstas * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21181430Sstas * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22181430Sstas * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23181430Sstas * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24181430Sstas * 25181430Sstas * $FreeBSD$ 26181430Sstas */ 27181430Sstas 28181430Sstas#ifndef AMD_H 29181430Sstas#define AMD_H 30181430Sstas 31181430Sstas/* 32181430Sstas * Prototypes. 33181430Sstas */ 34181430Sstasucode_probe_t amd_probe; 35181430Sstasucode_update_t amd_update; 36181430Sstas 37181430Sstastypedef struct amd_fw_header { 38181430Sstas uint32_t date; /* Update creation date. */ 39181430Sstas uint32_t xz0[2]; 40181430Sstas uint32_t checksum; /* ucode checksum. */ 41181430Sstas uint32_t xz1[2]; 42181430Sstas uint32_t signature; /* Low byte of cpuid(0). */ 43181430Sstas uint32_t magic; /* 0x0Xaaaaaa */ 44181430Sstas uint32_t xz2[8]; 45181430Sstas} amd_fw_header_t; 46181430Sstas 47181430Sstas#define AMD_MAGIC 0xaaaaaa 48181430Sstas 49181430Sstas#endif /* !AMD_H */ 50