diff options
author | scottl <scottl@FreeBSD.org> | 2004-10-24 08:38:29 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-10-24 08:38:29 +0000 |
commit | 3fd282d467e913489e0c4656d26b28c786762458 (patch) | |
tree | 0a31bb804bd508f0dfe6dff97efc0833a2ca5cf1 /sys/dev/hptmv | |
parent | 7c32b1fe319a34aec844fa348b880c3f92790fe8 (diff) | |
download | FreeBSD-src-3fd282d467e913489e0c4656d26b28c786762458.zip FreeBSD-src-3fd282d467e913489e0c4656d26b28c786762458.tar.gz |
Clean up some messy Makefile stuff so that this can be built into the
kernel.
Diffstat (limited to 'sys/dev/hptmv')
-rw-r--r-- | sys/dev/hptmv/mvOs.h | 13 | ||||
-rw-r--r-- | sys/dev/hptmv/osbsd.h | 3 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/dev/hptmv/mvOs.h b/sys/dev/hptmv/mvOs.h index e469e05..3325d14 100644 --- a/sys/dev/hptmv/mvOs.h +++ b/sys/dev/hptmv/mvOs.h @@ -28,6 +28,19 @@ #ifndef __INCmvOsBsdh #define __INCmvOsBsdh +/* Taken out of the Makefile magic */ +#define __KERNEL__ 1 +#define KERNEL 1 +#define _KERNEL 1 +#define _FREEBSD_ 1 + +/* + * This binary object core for this driver is only for x86, so this constant + * will not change. + */ +#define BITS_PER_LONG 32 +#define DRIVER_VERSION "1.1" + #if DBG #define MV_DEBUG_LOG #endif diff --git a/sys/dev/hptmv/osbsd.h b/sys/dev/hptmv/osbsd.h index 4d9701d..f9a41fc 100644 --- a/sys/dev/hptmv/osbsd.h +++ b/sys/dev/hptmv/osbsd.h @@ -116,7 +116,7 @@ typedef struct _READ_CAPACITY_DATA { #define PRD_TABLES_FOR_VBUS (MV_SATA_CHANNELS_NUM*MV_EDMA_QUEUE_LENGTH) typedef enum _SataEvent { - SATA_EVENT_NO_CHANGE = 0, + SATA_EVENT_NO_CHANGE = 0, SATA_EVENT_CHANNEL_CONNECTED, SATA_EVENT_CHANNEL_DISCONNECTED } SATA_EVENT; @@ -221,7 +221,6 @@ int hpt_add_disk_to_array(_VBUS_ARG DEVICEID idArray, DEVICEID idDisk); #define REBUILD_PARITY 2 #define VERIFY 3 -extern char DRIVER_VERSION[]; /**********************************************************/ static __inline struct cam_periph * hpt_get_periph(int path_id,int target_id) |