115fb4814Smrg/* 215fb4814Smrg * Copyright (c) 2005 ASPEED Technology Inc. 315fb4814Smrg * 415fb4814Smrg * Permission to use, copy, modify, distribute, and sell this software and its 515fb4814Smrg * documentation for any purpose is hereby granted without fee, provided that 615fb4814Smrg * the above copyright notice appear in all copies and that both that 715fb4814Smrg * copyright notice and this permission notice appear in supporting 815fb4814Smrg * documentation, and that the name of the authors not be used in 915fb4814Smrg * advertising or publicity pertaining to distribution of the software without 1015fb4814Smrg * specific, written prior permission. The authors makes no representations 1115fb4814Smrg * about the suitability of this software for any purpose. It is provided 1215fb4814Smrg * "as is" without express or implied warranty. 1315fb4814Smrg * 1415fb4814Smrg * THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1515fb4814Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1615fb4814Smrg * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1715fb4814Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1815fb4814Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1915fb4814Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2015fb4814Smrg * PERFORMANCE OF THIS SOFTWARE. 2115fb4814Smrg */ 2215fb4814Smrg 2315fb4814Smrg#define MAX_HWC_WIDTH 64 2415fb4814Smrg#define MAX_HWC_HEIGHT 64 2515fb4814Smrg#define HWC_SIZE (MAX_HWC_WIDTH*MAX_HWC_HEIGHT*2) 2615fb4814Smrg#define HWC_SIGNATURE_SIZE 32 2715fb4814Smrg#define HWC_ALIGN 32 2815fb4814Smrg 2915fb4814Smrg#define HWC_MONO 0 3015fb4814Smrg#define HWC_COLOR 1 3115fb4814Smrg 3215fb4814Smrg/* define for signature structure */ 3315fb4814Smrg#define HWC_SIGNATURE_CHECKSUM 0x00 3415fb4814Smrg#define HWC_SIGNATURE_SizeX 0x04 3515fb4814Smrg#define HWC_SIGNATURE_SizeY 0x08 3615fb4814Smrg#define HWC_SIGNATURE_X 0x0C 3715fb4814Smrg#define HWC_SIGNATURE_Y 0x10 3815fb4814Smrg#define HWC_SIGNATURE_HOTSPOTX 0x14 3915fb4814Smrg#define HWC_SIGNATURE_HOTSPOTY 0x18 40