smartmontools  SVN Rev 4078
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Macros | Typedefs
os_freebsd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
struct  __packed
 
union  TWE_Command
 
union  TWE_Response_Queue
 
struct  twe_usercommand
 
struct  tw_cl_event_packet
 
struct  tw_cl_command_init_connect
 
struct  tw_cl_command_download_firmware
 
struct  tw_cl_command_reset_firmware
 
struct  tw_cl_command_param
 
struct  tw_cl_command_generic
 
struct  tw_cl_command_header
 
union  tw_cl_command_7k
 
struct  tw_cl_command_9k
 
struct  tw_cl_command_packet
 
struct  tw_cl_lock_packet
 
struct  tw_cl_compatibility_packet
 
struct  tw_cl_driver_packet
 
struct  tw_osli_ioctl_no_data_buf
 
struct  tw_osli_ioctl_with_payload
 
struct  _HPT_CHANNEL_INFO
 
struct  _HPT_CHANNEL_INFO_V2
 
struct  _HPT_IOCTL_PARAM
 
struct  _HPT_PASS_THROUGH_HEADER
 

Macros

#define OS_FREEBSD_H_CVSID   "$Id: os_freebsd.h 3727 2012-12-13 17:23:06Z samm2 $"
 
#define MAX_NUM_DEV   26
 
#define __packed   __attribute__((__packed__))
 The following cut out of twereg.h. More...
 
#define TWE_MAX_SGL_LENGTH   62
 
#define TWE_MAX_ATA_SGL_LENGTH   60
 
#define TWE_OP_ATA_PASSTHROUGH   0x11
 
#define TWE_OP_HOTSWAP_REMOVE   0x00 /* remove assumed-degraded unit */
 
#define TWE_OP_HOTSWAP_ADD_CBOD   0x01 /* add CBOD to empty port */
 
#define TWE_OP_HOTSWAP_ADD_SPARE   0x02 /* add spare to empty port */
 
#define TWE_OP_SETATAFEATURE_WCE   0x02
 
#define TWE_OP_SETATAFEATURE_DIS_WCE   0x82
 
#define TWE_OP_REBUILDUNIT_NOP   0
 
#define TWE_OP_REBUILDUNIT_STOP   2 /* stop all rebuilds */
 
#define TWE_OP_REBUILDUNIT_START   4 /* start rebuild with lowest unit */
 
#define TWE_OP_REBUILDUNIT_STARTUNIT   5 /* rebuild src_unit (not supported) */
 
#define TWE_FLAGS_SUCCESS   0x00
 
#define TWE_FLAGS_INFORMATIONAL   0x01
 
#define TWE_FLAGS_WARNING   0x02
 
#define TWE_FLAGS_FATAL   0x03
 
#define TWE_FLAGS_PERCENTAGE   (1<<8) /* bits 0-6 indicate completion percentage */
 
#define TWEIO_COMMAND   _IOWR('T', 100, struct twe_usercommand)
 
#define TWA_FW_CMD_ATA_PASSTHROUGH   0x11
 
#define TWA_SENSE_DATA_LENGTH   18
 
#define TW_OSL_IOCTL_FIRMWARE_PASS_THROUGH   _IOWR('T', 202, TW_OSLI_IOCTL_NO_DATA_BUF)
 
#define HPT_CTL_CODE(x)   (x+0xFF00)
 
#define HPT_IOCTL_GET_CHANNEL_INFO   HPT_CTL_CODE(3)
 
#define HPT_IOCTL_GET_CHANNEL_INFO_V2   HPT_CTL_CODE(53)
 
#define HPT_IOCTL_IDE_PASS_THROUGH   HPT_CTL_CODE(24)
 
#define HPT_READ   1
 
#define HPT_WRITE   2
 
#define HPT_IOCTL_MAGIC   0xA1B2C3D4
 
#define MAXDEV_PER_CHANNEL   2
 
#define PMPORT_PER_CHANNEL   15 /* max devices connected to this channel via pmport */
 
#define HPT_DO_IOCONTROL   _IOW('H', 0, HPT_IOCTL_PARAM)
 
#define __unused   __attribute__ ((__unused__))
 

Typedefs

typedef void TW_VOID
 
typedef char TW_INT8
 
typedef unsigned char TW_UINT8
 
typedef short TW_INT16
 
typedef unsigned short TW_UINT16
 
typedef int TW_INT32
 
typedef unsigned int TW_UINT32
 
typedef long long TW_INT64
 
typedef unsigned long long TW_UINT64
 
typedef struct tw_osli_ioctl_no_data_buf TW_OSLI_IOCTL_NO_DATA_BUF
 
typedef struct tw_osli_ioctl_with_payload TW_OSLI_IOCTL_WITH_PAYLOAD
 
typedef struct _HPT_CHANNEL_INFO HPT_CHANNEL_INFO
 
typedef struct _HPT_CHANNEL_INFOPHPT_CHANNEL_INFO
 
typedef struct _HPT_CHANNEL_INFO_V2 HPT_CHANNEL_INFO_V2
 
typedef struct _HPT_CHANNEL_INFO_V2PHPT_CHANNEL_INFO_V2
 
typedef struct _HPT_IOCTL_PARAM HPT_IOCTL_PARAM
 
typedef struct _HPT_IOCTL_PARAMPHPT_IOCTL_PARAM
 
typedef struct _HPT_PASS_THROUGH_HEADER HPT_PASS_THROUGH_HEADER
 
typedef struct _HPT_PASS_THROUGH_HEADERPHPT_PASS_THROUGH_HEADER
 

Macro Definition Documentation

#define __packed   __attribute__((__packed__))

The following cut out of twereg.h.

Definition at line 97 of file os_freebsd.h.

#define __unused   __attribute__ ((__unused__))

Definition at line 619 of file os_freebsd.h.

#define HPT_CTL_CODE (   x)    (x+0xFF00)

Definition at line 565 of file os_freebsd.h.

#define HPT_DO_IOCONTROL   _IOW('H', 0, HPT_IOCTL_PARAM)

Definition at line 600 of file os_freebsd.h.

#define HPT_IOCTL_GET_CHANNEL_INFO   HPT_CTL_CODE(3)

Definition at line 566 of file os_freebsd.h.

#define HPT_IOCTL_GET_CHANNEL_INFO_V2   HPT_CTL_CODE(53)

Definition at line 567 of file os_freebsd.h.

#define HPT_IOCTL_IDE_PASS_THROUGH   HPT_CTL_CODE(24)

Definition at line 568 of file os_freebsd.h.

#define HPT_IOCTL_MAGIC   0xA1B2C3D4

Definition at line 573 of file os_freebsd.h.

#define HPT_READ   1

Definition at line 570 of file os_freebsd.h.

#define HPT_WRITE   2

Definition at line 571 of file os_freebsd.h.

#define MAX_NUM_DEV   26

Definition at line 87 of file os_freebsd.h.

#define MAXDEV_PER_CHANNEL   2

Definition at line 575 of file os_freebsd.h.

#define OS_FREEBSD_H_CVSID   "$Id: os_freebsd.h 3727 2012-12-13 17:23:06Z samm2 $"

Definition at line 85 of file os_freebsd.h.

#define PMPORT_PER_CHANNEL   15 /* max devices connected to this channel via pmport */

Definition at line 576 of file os_freebsd.h.

#define TW_OSL_IOCTL_FIRMWARE_PASS_THROUGH   _IOWR('T', 202, TW_OSLI_IOCTL_NO_DATA_BUF)

Definition at line 544 of file os_freebsd.h.

#define TWA_FW_CMD_ATA_PASSTHROUGH   0x11

Definition at line 354 of file os_freebsd.h.

#define TWA_SENSE_DATA_LENGTH   18

Definition at line 356 of file os_freebsd.h.

#define TWE_FLAGS_FATAL   0x03

Definition at line 253 of file os_freebsd.h.

#define TWE_FLAGS_INFORMATIONAL   0x01

Definition at line 251 of file os_freebsd.h.

#define TWE_FLAGS_PERCENTAGE   (1<<8) /* bits 0-6 indicate completion percentage */

Definition at line 254 of file os_freebsd.h.

#define TWE_FLAGS_SUCCESS   0x00

Definition at line 250 of file os_freebsd.h.

#define TWE_FLAGS_WARNING   0x02

Definition at line 252 of file os_freebsd.h.

#define TWE_MAX_ATA_SGL_LENGTH   60

Definition at line 101 of file os_freebsd.h.

#define TWE_MAX_SGL_LENGTH   62

Definition at line 100 of file os_freebsd.h.

#define TWE_OP_ATA_PASSTHROUGH   0x11

Definition at line 102 of file os_freebsd.h.

#define TWE_OP_HOTSWAP_ADD_CBOD   0x01 /* add CBOD to empty port */

Definition at line 151 of file os_freebsd.h.

#define TWE_OP_HOTSWAP_ADD_SPARE   0x02 /* add spare to empty port */

Definition at line 152 of file os_freebsd.h.

#define TWE_OP_HOTSWAP_REMOVE   0x00 /* remove assumed-degraded unit */

Definition at line 150 of file os_freebsd.h.

#define TWE_OP_REBUILDUNIT_NOP   0

Definition at line 212 of file os_freebsd.h.

#define TWE_OP_REBUILDUNIT_START   4 /* start rebuild with lowest unit */

Definition at line 214 of file os_freebsd.h.

#define TWE_OP_REBUILDUNIT_STARTUNIT   5 /* rebuild src_unit (not supported) */

Definition at line 215 of file os_freebsd.h.

#define TWE_OP_REBUILDUNIT_STOP   2 /* stop all rebuilds */

Definition at line 213 of file os_freebsd.h.

#define TWE_OP_SETATAFEATURE_DIS_WCE   0x82

Definition at line 168 of file os_freebsd.h.

#define TWE_OP_SETATAFEATURE_WCE   0x02

Definition at line 167 of file os_freebsd.h.

#define TWEIO_COMMAND   _IOWR('T', 100, struct twe_usercommand)

Definition at line 305 of file os_freebsd.h.

Typedef Documentation

typedef short TW_INT16

Definition at line 320 of file os_freebsd.h.

typedef int TW_INT32

Definition at line 322 of file os_freebsd.h.

typedef long long TW_INT64

Definition at line 324 of file os_freebsd.h.

typedef char TW_INT8

Definition at line 318 of file os_freebsd.h.

typedef unsigned short TW_UINT16

Definition at line 321 of file os_freebsd.h.

typedef unsigned int TW_UINT32

Definition at line 323 of file os_freebsd.h.

typedef unsigned long long TW_UINT64

Definition at line 325 of file os_freebsd.h.

typedef unsigned char TW_UINT8

Definition at line 319 of file os_freebsd.h.

typedef void TW_VOID

Definition at line 317 of file os_freebsd.h.