1136849Sscottl/* 2149871Sscottl * Copyright (c) 2004-2005 HighPoint Technologies, Inc. 3136849Sscottl * All rights reserved. 4136849Sscottl * 5136849Sscottl * Redistribution and use in source and binary forms, with or without 6136849Sscottl * modification, are permitted provided that the following conditions 7136849Sscottl * are met: 8136849Sscottl * 1. Redistributions of source code must retain the above copyright 9136849Sscottl * notice, this list of conditions and the following disclaimer. 10136849Sscottl * 2. Redistributions in binary form must reproduce the above copyright 11136849Sscottl * notice, this list of conditions and the following disclaimer in the 12136849Sscottl * documentation and/or other materials provided with the distribution. 13136849Sscottl * 14136849Sscottl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15136849Sscottl * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16136849Sscottl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17136849Sscottl * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18136849Sscottl * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19136849Sscottl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20136849Sscottl * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21136849Sscottl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22136849Sscottl * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23136849Sscottl * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24136849Sscottl * SUCH DAMAGE. 25142988Sscottl * 26142988Sscottl * $FreeBSD: releng/11.0/sys/dev/hptmv/access601.h 190809 2009-04-07 16:38:25Z delphij $ 27136849Sscottl */ 28136849Sscottl#ifndef _ACCESS601_H_ 29136849Sscottl#define _ACCESS601_H_ 30136849Sscottl 31190809Sdelphij#ifndef FOR_DEMO 32190809Sdelphij 33136849Sscottlvoid HPTLIBAPI BeepOn(MV_BUS_ADDR_T BaseAddr); 34136849Sscottlvoid HPTLIBAPI BeepOff(MV_BUS_ADDR_T BaseAddr); 35136849SscottlUCHAR HPTLIBAPI check_protect_circuit(MV_BUS_ADDR_T BaseAddr); 36136849Sscottl 37136849Sscottl#ifdef SUPPORT_FAIL_LED 38136849Sscottlvoid HPTLIBAPI set_fail_led(MV_SATA_ADAPTER *pAdapter, UCHAR channel, UCHAR state); 39136849Sscottlvoid HPTLIBAPI set_fail_leds(MV_SATA_ADAPTER *pAdapter, UCHAR mask); 40136849Sscottl#else 41136849Sscottl#define set_fail_led(pAdapter, channel, state) 42136849Sscottl#define set_fail_leds(pAdapter, mask) 43136849Sscottl#endif 44136849Sscottl 45190809Sdelphijint HPTLIBAPI sx508x_ioctl(MV_SATA_ADAPTER *pSataAdapter, UCHAR *indata, ULONG inlen, 46190809Sdelphij UCHAR *outdata, ULONG maxoutlen, ULONG *poutlen); 47190809Sdelphij 48190809SdelphijMV_BOOLEAN HPTLIBAPI sx508x_flash_access(MV_SATA_ADAPTER *pSataAdapter, 49190809Sdelphij MV_U32 offset, void *value, int size, int reading); 50190809Sdelphij#else 51190809Sdelphij 52190809Sdelphij#define BeepOn(addr) 53190809Sdelphij#define BeepOff(addr) 54190809Sdelphij#define check_protect_circuit(addr) 1 55190809Sdelphij#define set_fail_led(pAdapter, channel, state) 56190809Sdelphij#define set_fail_leds(pAdapter, mask) 57190809Sdelphij#define sx508x_ioctl(pSataAdapter, indata, inlen, outdata, maxoutlen, poutlen) 0 58190809Sdelphij#define sx508x_flash_access(pSataAdapter, offset, value, size, reading) 0 59190809Sdelphij 60136849Sscottl#endif 61190809Sdelphij 62190809Sdelphij#endif 63