Deleted Added
full compact
global.h (149871) global.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/global.h 149871 2005-09-07 23:33:26Z scottl $
26 * $FreeBSD: head/sys/dev/hptmv/global.h 190809 2009-04-07 16:38:25Z delphij $
27 */
28#ifndef _GLOBAL_H_
29#define _GLOBAL_H_
30
31#include <dev/hptmv/mvOs.h>
32#include <dev/hptmv/mvSata.h>
33#include <dev/hptmv/mvStorageDev.h>
34
35#define COMPANY "HighPoint Technologies, Inc."
27 */
28#ifndef _GLOBAL_H_
29#define _GLOBAL_H_
30
31#include <dev/hptmv/mvOs.h>
32#include <dev/hptmv/mvSata.h>
33#include <dev/hptmv/mvStorageDev.h>
34
35#define COMPANY "HighPoint Technologies, Inc."
36#define COPYRIGHT "(c) 2000-2004. HighPoint Technologies, Inc."
37#define DRIVER_NAME "RocketRAID 182x SATA Controller driver"
38#define CONTROLLER_NAME "RocketRAID 182x SATA Controller"
36#define COPYRIGHT "(c) 2000-2007. HighPoint Technologies, Inc."
37#define DRIVER_NAME "RocketRAID 18xx SATA Controller driver"
38#define CONTROLLER_NAME "RocketRAID 18xx SATA Controller"
39#define PROC_DIR_NAME hptmv
40
39#define PROC_DIR_NAME hptmv
40
41#define HPT_INTERFACE_VERSION 0x01000003
41#define HPT_INTERFACE_VERSION 0x01010000
42#define SUPPORT_48BIT_LBA
43#define SUPPORT_ARRAY
44#define SUPPORT_RAID5 1
45#define _RAID5N_
46#define MAX_QUEUE_COMM 32
47#define MAX_SG_DESCRIPTORS 17
48#define MAX_VBUS 2 /*one vbus per adapter in mv linux driver,
49 MAX_VBUS is defined for share code and can not be 1*/

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

188
189#define StallExec(x) mvMicroSecondsDelay(x)
190extern void HPTLIBAPI ioctl_ReportEvent(UCHAR event, PVOID param);
191#define fNotifyGUI(WhatHappen, pVDevice) ioctl_ReportEvent(WhatHappen, pVDevice)
192#define DECLARE_BUFFER(type, ptr) UCHAR ptr##__buf[512]; type ptr=(type)ptr##__buf
193
194int HPTLIBAPI fDeReadWrite(PDevice pDev, ULONG Lba, UCHAR Cmd, void *tmpBuffer);
195void HPTLIBAPI fDeSelectMode(PDevice pDev, UCHAR NewMode);
42#define SUPPORT_48BIT_LBA
43#define SUPPORT_ARRAY
44#define SUPPORT_RAID5 1
45#define _RAID5N_
46#define MAX_QUEUE_COMM 32
47#define MAX_SG_DESCRIPTORS 17
48#define MAX_VBUS 2 /*one vbus per adapter in mv linux driver,
49 MAX_VBUS is defined for share code and can not be 1*/

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

188
189#define StallExec(x) mvMicroSecondsDelay(x)
190extern void HPTLIBAPI ioctl_ReportEvent(UCHAR event, PVOID param);
191#define fNotifyGUI(WhatHappen, pVDevice) ioctl_ReportEvent(WhatHappen, pVDevice)
192#define DECLARE_BUFFER(type, ptr) UCHAR ptr##__buf[512]; type ptr=(type)ptr##__buf
193
194int HPTLIBAPI fDeReadWrite(PDevice pDev, ULONG Lba, UCHAR Cmd, void *tmpBuffer);
195void HPTLIBAPI fDeSelectMode(PDevice pDev, UCHAR NewMode);
196int HPTLIBAPI fDeSetTCQ(PDevice pDev, int enable, int depth);
197int HPTLIBAPI fDeSetNCQ(PDevice pDev, int enable, int depth);
198int HPTLIBAPI fDeSetWriteCache(PDevice pDev, int enable);
199int HPTLIBAPI fDeSetReadAhead(PDevice pDev, int enable);
196
197#include <dev/hptmv/atapi.h>
198#include <dev/hptmv/command.h>
199#include <dev/hptmv/array.h>
200#include <dev/hptmv/raid5n.h>
201#include <dev/hptmv/vdevice.h>
202
203#if defined(__FreeBSD__) && defined(HPTLIBAPI)
204#undef HPTLIBAPI
205#define HPTLIBAPI
206#endif
207
208#ifdef SUPPORT_ARRAY
209#define ArrayTables(i) ((PVDevice)&_vbus_(_ArrayTables)[i*ARRAY_VDEV_SIZE])
210#endif
211
212#endif
200
201#include <dev/hptmv/atapi.h>
202#include <dev/hptmv/command.h>
203#include <dev/hptmv/array.h>
204#include <dev/hptmv/raid5n.h>
205#include <dev/hptmv/vdevice.h>
206
207#if defined(__FreeBSD__) && defined(HPTLIBAPI)
208#undef HPTLIBAPI
209#define HPTLIBAPI
210#endif
211
212#ifdef SUPPORT_ARRAY
213#define ArrayTables(i) ((PVDevice)&_vbus_(_ArrayTables)[i*ARRAY_VDEV_SIZE])
214#endif
215
216#endif