Deleted Added
full compact
access601.h (149871) access601.h (190809)
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/hptmv/access601.h 149871 2005-09-07 23:33:26Z scottl $
26 * $FreeBSD: head/sys/dev/hptmv/access601.h 190809 2009-04-07 16:38:25Z delphij $
27 */
28#ifndef _ACCESS601_H_
29#define _ACCESS601_H_
30
27 */
28#ifndef _ACCESS601_H_
29#define _ACCESS601_H_
30
31#ifndef FOR_DEMO
32
31void HPTLIBAPI BeepOn(MV_BUS_ADDR_T BaseAddr);
32void HPTLIBAPI BeepOff(MV_BUS_ADDR_T BaseAddr);
33UCHAR HPTLIBAPI check_protect_circuit(MV_BUS_ADDR_T BaseAddr);
34
35#ifdef SUPPORT_FAIL_LED
36void HPTLIBAPI set_fail_led(MV_SATA_ADAPTER *pAdapter, UCHAR channel, UCHAR state);
37void HPTLIBAPI set_fail_leds(MV_SATA_ADAPTER *pAdapter, UCHAR mask);
38#else
39#define set_fail_led(pAdapter, channel, state)
40#define set_fail_leds(pAdapter, mask)
41#endif
42
33void HPTLIBAPI BeepOn(MV_BUS_ADDR_T BaseAddr);
34void HPTLIBAPI BeepOff(MV_BUS_ADDR_T BaseAddr);
35UCHAR HPTLIBAPI check_protect_circuit(MV_BUS_ADDR_T BaseAddr);
36
37#ifdef SUPPORT_FAIL_LED
38void HPTLIBAPI set_fail_led(MV_SATA_ADAPTER *pAdapter, UCHAR channel, UCHAR state);
39void HPTLIBAPI set_fail_leds(MV_SATA_ADAPTER *pAdapter, UCHAR mask);
40#else
41#define set_fail_led(pAdapter, channel, state)
42#define set_fail_leds(pAdapter, mask)
43#endif
44
45int HPTLIBAPI sx508x_ioctl(MV_SATA_ADAPTER *pSataAdapter, UCHAR *indata, ULONG inlen,
46 UCHAR *outdata, ULONG maxoutlen, ULONG *poutlen);
47
48MV_BOOLEAN HPTLIBAPI sx508x_flash_access(MV_SATA_ADAPTER *pSataAdapter,
49 MV_U32 offset, void *value, int size, int reading);
50#else
51
52#define BeepOn(addr)
53#define BeepOff(addr)
54#define check_protect_circuit(addr) 1
55#define set_fail_led(pAdapter, channel, state)
56#define set_fail_leds(pAdapter, mask)
57#define sx508x_ioctl(pSataAdapter, indata, inlen, outdata, maxoutlen, poutlen) 0
58#define sx508x_flash_access(pSataAdapter, offset, value, size, reading) 0
59
43#endif
60#endif
61
62#endif