Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gdth.h File Reference
#include <linux/types.h>
#include "gdth_ioctl.h"

Go to the source code of this file.

Data Structures

struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  gdth_pci_str
 
struct  gdth_ha_str
 
struct  gdth_ha_str::gdth_cmndinfo
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 

Macros

#define TRUE   1
 
#define FALSE   0
 
#define GDTH_VERSION_STR   "3.05"
 
#define GDTH_VERSION   3
 
#define GDTH_SUBVERSION   5
 
#define PROTOCOL_VERSION   1
 
#define OEM_ID_ICP   0x941c
 
#define OEM_ID_INTEL   0x8000
 
#define GDT_ISA   0x01 /* ISA controller */
 
#define GDT_EISA   0x02 /* EISA controller */
 
#define GDT_PCI   0x03 /* PCI controller */
 
#define GDT_PCINEW   0x04 /* new PCI controller */
 
#define GDT_PCIMPR   0x05 /* PCI MPR controller */
 
#define GDT3_ID   0x0130941c /* GDT3000/3020 */
 
#define GDT3A_ID   0x0230941c /* GDT3000A/3020A/3050A */
 
#define GDT3B_ID   0x0330941c /* GDT3000B/3010A */
 
#define GDT2_ID   0x0120941c /* GDT2000/2020 */
 
#define PCI_DEVICE_ID_VORTEX_GDT60x0   0 /* GDT6000/6020/6050 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6000B   1 /* GDT6000B/6010 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x10   2 /* GDT6110/6510 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x20   3 /* GDT6120/6520 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6530   4 /* GDT6530 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6550   5 /* GDT6550 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x17   6 /* GDT6117/6517 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x27   7 /* GDT6127/6527 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6537   8 /* GDT6537 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6557   9 /* GDT6557/6557-ECC */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x15   10 /* GDT6115/6515 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x25   11 /* GDT6125/6525 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6535   12 /* GDT6535 */
 
#define PCI_DEVICE_ID_VORTEX_GDT6555   13 /* GDT6555/6555-ECC */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x17RP   0x100 /* GDT6117RP/GDT6517RP */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x27RP   0x101 /* GDT6127RP/GDT6527RP */
 
#define PCI_DEVICE_ID_VORTEX_GDT6537RP   0x102 /* GDT6537RP */
 
#define PCI_DEVICE_ID_VORTEX_GDT6557RP   0x103 /* GDT6557RP */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x11RP   0x104 /* GDT6111RP/GDT6511RP */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x21RP   0x105 /* GDT6121RP/GDT6521RP */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x17RD   0x110 /* GDT6117RD/GDT6517RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x27RD   0x111 /* GDT6127RD/GDT6527RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6537RD   0x112 /* GDT6537RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6557RD   0x113 /* GDT6557RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x11RD   0x114 /* GDT6111RD/GDT6511RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x21RD   0x115 /* GDT6121RD/GDT6521RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x18RD
 
#define PCI_DEVICE_ID_VORTEX_GDT6x28RD
 
#define PCI_DEVICE_ID_VORTEX_GDT6x38RD   0x11A /* GDT6538RD/GDT6638RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x58RD   0x11B /* GDT6558RD/GDT6658RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT7x18RN
 
#define PCI_DEVICE_ID_VORTEX_GDT7x28RN
 
#define PCI_DEVICE_ID_VORTEX_GDT7x38RN   0x16A /* GDT7538RN/GDT7638RN */
 
#define PCI_DEVICE_ID_VORTEX_GDT7x58RN   0x16B /* GDT7558RN/GDT7658RN */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x19RD   0x210 /* GDT6519RD/GDT6619RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT6x29RD   0x211 /* GDT6529RD/GDT6629RD */
 
#define PCI_DEVICE_ID_VORTEX_GDT7x19RN   0x260 /* GDT7519RN/GDT7619RN */
 
#define PCI_DEVICE_ID_VORTEX_GDT7x29RN   0x261 /* GDT7529RN/GDT7629RN */
 
#define PCI_DEVICE_ID_VORTEX_GDTMAXRP   0x2ff
 
#define PCI_DEVICE_ID_VORTEX_GDTNEWRX   0x300
 
#define PCI_DEVICE_ID_VORTEX_GDTNEWRX2   0x301
 
#define PCI_DEVICE_ID_INTEL_SRC   0x600
 
#define PCI_DEVICE_ID_INTEL_SRC_XSCALE   0x601
 
#define GDTH_SCRATCH   PAGE_SIZE /* 4KB scratch buffer */
 
#define GDTH_MAXCMDS   120
 
#define GDTH_MAXC_P_L   16 /* max. cmds per lun */
 
#define GDTH_MAX_RAW   2 /* max. cmds per raw device */
 
#define MAXOFFSETS   128
 
#define MAXHA   16
 
#define MAXID   127
 
#define MAXLUN   8
 
#define MAXBUS   6
 
#define MAX_EVENTS   100 /* event buffer count */
 
#define MAX_RES_ARGS
 
#define MAXCYLS   1024
 
#define HEADS   64
 
#define SECS   32 /* mapping 64*32 */
 
#define MEDHEADS   127
 
#define MEDSECS   63 /* mapping 127*63 */
 
#define BIGHEADS   255
 
#define BIGSECS   63 /* mapping 255*63 */
 
#define UNUSED_CMND   ((Scsi_Cmnd *)-1)
 
#define INTERNAL_CMND   ((Scsi_Cmnd *)-2)
 
#define SCREEN_CMND   ((Scsi_Cmnd *)-3)
 
#define SPECIAL_SCP(p)   (p==UNUSED_CMND || p==INTERNAL_CMND || p==SCREEN_CMND)
 
#define SCSIRAWSERVICE   3
 
#define CACHESERVICE   9
 
#define SCREENSERVICE   11
 
#define MSG_INV_HANDLE   -1 /* special message handle */
 
#define MSGLEN   16 /* size of message text */
 
#define MSG_SIZE   34 /* size of message structure */
 
#define MSG_REQUEST   0 /* async. event: message */
 
#define SECTOR_SIZE   0x200 /* always 512 bytes per sec. */
 
#define DPMEM_MAGIC   0xC0FFEE11
 
#define IC_HEADER_BYTES   48
 
#define IC_QUEUE_BYTES   4
 
#define DPMEM_COMMAND_OFFSET   IC_HEADER_BYTES+IC_QUEUE_BYTES*MAXOFFSETS
 
#define CLUSTER_DRIVE   1
 
#define CLUSTER_MOUNTED   2
 
#define CLUSTER_RESERVED   4
 
#define CLUSTER_RESERVE_STATE   (CLUSTER_DRIVE|CLUSTER_MOUNTED|CLUSTER_RESERVED)
 
#define GDT_INIT   0 /* service initialization */
 
#define GDT_READ   1 /* read command */
 
#define GDT_WRITE   2 /* write command */
 
#define GDT_INFO   3 /* information about devices */
 
#define GDT_FLUSH   4 /* flush dirty cache buffers */
 
#define GDT_IOCTL   5 /* ioctl command */
 
#define GDT_DEVTYPE   9 /* additional information */
 
#define GDT_MOUNT   10 /* mount cache device */
 
#define GDT_UNMOUNT   11 /* unmount cache device */
 
#define GDT_SET_FEAT   12 /* set feat. (scatter/gather) */
 
#define GDT_GET_FEAT   13 /* get features */
 
#define GDT_WRITE_THR   16 /* write through */
 
#define GDT_READ_THR   17 /* read through */
 
#define GDT_EXT_INFO   18 /* extended info */
 
#define GDT_RESET   19 /* controller reset */
 
#define GDT_RESERVE_DRV   20 /* reserve host drive */
 
#define GDT_RELEASE_DRV   21 /* release host drive */
 
#define GDT_CLUST_INFO   22 /* cluster info */
 
#define GDT_RW_ATTRIBS   23 /* R/W attribs (write thru,..)*/
 
#define GDT_CLUST_RESET   24 /* releases the cluster drives*/
 
#define GDT_FREEZE_IO   25 /* freezes all IOs */
 
#define GDT_UNFREEZE_IO   26 /* unfreezes all IOs */
 
#define GDT_X_INIT_HOST   29 /* ext. init: 64 bit support */
 
#define GDT_X_INFO   30 /* ext. info for drives>2TB */
 
#define GDT_RESERVE   14 /* reserve dev. to raw serv. */
 
#define GDT_RELEASE   15 /* release device */
 
#define GDT_RESERVE_ALL   16 /* reserve all devices */
 
#define GDT_RELEASE_ALL   17 /* release all devices */
 
#define GDT_RESET_BUS   18 /* reset bus */
 
#define GDT_SCAN_START   19 /* start device scan */
 
#define GDT_SCAN_END   20 /* stop device scan */
 
#define GDT_X_INIT_RAW   21 /* ext. init: 64 bit support */
 
#define GDT_REALTIME   3 /* realtime clock to screens. */
 
#define GDT_X_INIT_SCR   4 /* ext. init: 64 bit support */
 
#define SCSI_DR_INFO   0x00 /* SCSI drive info */
 
#define SCSI_CHAN_CNT   0x05 /* SCSI channel count */
 
#define SCSI_DR_LIST   0x06 /* SCSI drive list */
 
#define SCSI_DEF_CNT   0x15 /* grown/primary defects */
 
#define DSK_STATISTICS   0x4b /* SCSI disk statistics */
 
#define IOCHAN_DESC   0x5d /* description of IO channel */
 
#define IOCHAN_RAW_DESC   0x5e /* description of raw IO chn. */
 
#define L_CTRL_PATTERN   0x20000000L /* SCSI IOCTL mask */
 
#define ARRAY_INFO   0x12 /* array drive info */
 
#define ARRAY_DRV_LIST   0x0f /* array drive list */
 
#define ARRAY_DRV_LIST2   0x34 /* array drive list (new) */
 
#define LA_CTRL_PATTERN   0x10000000L /* array IOCTL mask */
 
#define CACHE_DRV_CNT   0x01 /* cache drive count */
 
#define CACHE_DRV_LIST   0x02 /* cache drive list */
 
#define CACHE_INFO   0x04 /* cache info */
 
#define CACHE_CONFIG   0x05 /* cache configuration */
 
#define CACHE_DRV_INFO   0x07 /* cache drive info */
 
#define BOARD_FEATURES   0x15 /* controller features */
 
#define BOARD_INFO   0x28 /* controller info */
 
#define SET_PERF_MODES   0x82 /* set mode (coalescing,..) */
 
#define GET_PERF_MODES   0x83 /* get mode */
 
#define CACHE_READ_OEM_STRING_RECORD   0x84 /* read OEM string record */
 
#define HOST_GET   0x10001L /* get host drive list */
 
#define IO_CHANNEL   0x00020000L /* default IO channel */
 
#define INVALID_CHANNEL   0x0000ffffL /* invalid channel */
 
#define S_OK   1 /* no error */
 
#define S_GENERR   6 /* general error */
 
#define S_BSY   7 /* controller busy */
 
#define S_CACHE_UNKNOWN   12 /* cache serv.: drive unknown */
 
#define S_RAW_SCSI   12 /* raw serv.: target error */
 
#define S_RAW_ILL   0xff /* raw serv.: illegal */
 
#define S_NOFUNC   -2 /* unknown function */
 
#define S_CACHE_RESERV   -24 /* cache: reserv. conflict */
 
#define INIT_RETRIES   100000 /* 100000 * 1ms = 100s */
 
#define INIT_TIMEOUT   100000 /* 100000 * 1ms = 100s */
 
#define POLL_TIMEOUT   10000 /* 10000 * 1ms = 10s */
 
#define DEFAULT_PRI   0x20
 
#define IOCTL_PRI   0x10
 
#define HIGH_PRI   0x08
 
#define GDTH_DATA_IN   0x01000000L /* data from target */
 
#define GDTH_DATA_OUT   0x00000000L /* data to target */
 
#define ID0REG   0x0c80 /* board ID */
 
#define EINTENABREG   0x0c89 /* interrupt enable */
 
#define SEMA0REG   0x0c8a /* command semaphore */
 
#define SEMA1REG   0x0c8b /* status semaphore */
 
#define LDOORREG   0x0c8d /* local doorbell */
 
#define EDENABREG   0x0c8e /* EISA system doorbell enab. */
 
#define EDOORREG   0x0c8f /* EISA system doorbell */
 
#define MAILBOXREG   0x0c90 /* mailbox reg. (16 bytes) */
 
#define EISAREG   0x0cc0 /* EISA configuration */
 
#define LINUX_OS   8 /* used for cache optim. */
 
#define SECS32   0x1f /* round capacity */
 
#define BIOS_ID_OFFS   0x10 /* offset contr-ID in ISABIOS */
 
#define LOCALBOARD   0 /* board node always 0 */
 
#define ASYNCINDEX   0 /* cmd index async. event */
 
#define SPEZINDEX   1 /* cmd index unknown service */
 
#define COALINDEX   (GDTH_MAXCMDS + 2)
 
#define SCATTER_GATHER   1 /* s/g feature */
 
#define GDT_WR_THROUGH   0x100 /* WRITE_THROUGH supported */
 
#define GDT_64BIT   0x200 /* 64bit / drv>2TB support */
 

Functions

int gdth_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int)
 

Variables

u8 tid
 
u8 lun
 
u8 res [2]
 
u32 blk_size
 
u32 rd_count
 
u32 wr_count
 
u32 rd_blk_count
 
u32 wr_blk_count
 
u32 retries
 
u32 reassigns
 
u32 address
 
u8 type
 
u8 local_no
 
u16 features
 
u8 proc_id
 
u8 proc_defect
 
u8 reserved [2]
 
u16 offset
 
u16 serv_id
 
u8 bios_used [0x3c00-32]
 
u32 magic
 
u16 need_deinit
 
u8 switch_support
 
u8 padding [9]
 
u8 os_used [16]
 
u8 memlock
 
u8 event
 
u8 irqen
 
u8 irqdel
 
u8 volatile Sema1
 
u8 rq
 
u8 unused0 [1]
 
u8 unused1 [3]
 
u8 unused2 [2]
 
u8 unused3 [3]
 
u8 unused4 [3]
 
u8 data_length
 
u8 med_type
 
u8 dev_par
 
u8 bd_length
 
u8 dens_code
 
u8 block_count [3]
 
u8 block_length [3]
 

Macro Definition Documentation

#define ARRAY_DRV_LIST   0x0f /* array drive list */

Definition at line 240 of file gdth.h.

#define ARRAY_DRV_LIST2   0x34 /* array drive list (new) */

Definition at line 241 of file gdth.h.

#define ARRAY_INFO   0x12 /* array drive info */

Definition at line 239 of file gdth.h.

#define ASYNCINDEX   0 /* cmd index async. event */

Definition at line 297 of file gdth.h.

#define BIGHEADS   255

Definition at line 155 of file gdth.h.

#define BIGSECS   63 /* mapping 255*63 */

Definition at line 156 of file gdth.h.

#define BIOS_ID_OFFS   0x10 /* offset contr-ID in ISABIOS */

Definition at line 295 of file gdth.h.

#define BOARD_FEATURES   0x15 /* controller features */

Definition at line 248 of file gdth.h.

#define BOARD_INFO   0x28 /* controller info */

Definition at line 249 of file gdth.h.

#define CACHE_CONFIG   0x05 /* cache configuration */

Definition at line 246 of file gdth.h.

#define CACHE_DRV_CNT   0x01 /* cache drive count */

Definition at line 243 of file gdth.h.

#define CACHE_DRV_INFO   0x07 /* cache drive info */

Definition at line 247 of file gdth.h.

#define CACHE_DRV_LIST   0x02 /* cache drive list */

Definition at line 244 of file gdth.h.

#define CACHE_INFO   0x04 /* cache info */

Definition at line 245 of file gdth.h.

#define CACHE_READ_OEM_STRING_RECORD   0x84 /* read OEM string record */

Definition at line 252 of file gdth.h.

#define CACHESERVICE   9

Definition at line 166 of file gdth.h.

#define CLUSTER_DRIVE   1

Definition at line 185 of file gdth.h.

#define CLUSTER_MOUNTED   2

Definition at line 186 of file gdth.h.

#define CLUSTER_RESERVE_STATE   (CLUSTER_DRIVE|CLUSTER_MOUNTED|CLUSTER_RESERVED)

Definition at line 188 of file gdth.h.

#define CLUSTER_RESERVED   4

Definition at line 187 of file gdth.h.

#define COALINDEX   (GDTH_MAXCMDS + 2)

Definition at line 299 of file gdth.h.

#define DEFAULT_PRI   0x20

Definition at line 273 of file gdth.h.

#define DPMEM_COMMAND_OFFSET   IC_HEADER_BYTES+IC_QUEUE_BYTES*MAXOFFSETS

Definition at line 182 of file gdth.h.

#define DPMEM_MAGIC   0xC0FFEE11

Definition at line 179 of file gdth.h.

#define DSK_STATISTICS   0x4b /* SCSI disk statistics */

Definition at line 235 of file gdth.h.

#define EDENABREG   0x0c8e /* EISA system doorbell enab. */

Definition at line 287 of file gdth.h.

#define EDOORREG   0x0c8f /* EISA system doorbell */

Definition at line 288 of file gdth.h.

#define EINTENABREG   0x0c89 /* interrupt enable */

Definition at line 283 of file gdth.h.

#define EISAREG   0x0cc0 /* EISA configuration */

Definition at line 290 of file gdth.h.

#define FALSE   0

Definition at line 22 of file gdth.h.

#define GDT2_ID   0x0120941c /* GDT2000/2020 */

Definition at line 50 of file gdth.h.

#define GDT3_ID   0x0130941c /* GDT3000/3020 */

Definition at line 46 of file gdth.h.

#define GDT3A_ID   0x0230941c /* GDT3000A/3020A/3050A */

Definition at line 47 of file gdth.h.

#define GDT3B_ID   0x0330941c /* GDT3000B/3010A */

Definition at line 48 of file gdth.h.

#define GDT_64BIT   0x200 /* 64bit / drv>2TB support */

Definition at line 304 of file gdth.h.

#define GDT_CLUST_INFO   22 /* cluster info */

Definition at line 208 of file gdth.h.

#define GDT_CLUST_RESET   24 /* releases the cluster drives*/

Definition at line 210 of file gdth.h.

#define GDT_DEVTYPE   9 /* additional information */

Definition at line 197 of file gdth.h.

#define GDT_EISA   0x02 /* EISA controller */

Definition at line 41 of file gdth.h.

#define GDT_EXT_INFO   18 /* extended info */

Definition at line 204 of file gdth.h.

#define GDT_FLUSH   4 /* flush dirty cache buffers */

Definition at line 195 of file gdth.h.

#define GDT_FREEZE_IO   25 /* freezes all IOs */

Definition at line 211 of file gdth.h.

#define GDT_GET_FEAT   13 /* get features */

Definition at line 201 of file gdth.h.

#define GDT_INFO   3 /* information about devices */

Definition at line 194 of file gdth.h.

#define GDT_INIT   0 /* service initialization */

Definition at line 191 of file gdth.h.

#define GDT_IOCTL   5 /* ioctl command */

Definition at line 196 of file gdth.h.

#define GDT_ISA   0x01 /* ISA controller */

Definition at line 40 of file gdth.h.

#define GDT_MOUNT   10 /* mount cache device */

Definition at line 198 of file gdth.h.

#define GDT_PCI   0x03 /* PCI controller */

Definition at line 42 of file gdth.h.

#define GDT_PCIMPR   0x05 /* PCI MPR controller */

Definition at line 44 of file gdth.h.

#define GDT_PCINEW   0x04 /* new PCI controller */

Definition at line 43 of file gdth.h.

#define GDT_READ   1 /* read command */

Definition at line 192 of file gdth.h.

#define GDT_READ_THR   17 /* read through */

Definition at line 203 of file gdth.h.

#define GDT_REALTIME   3 /* realtime clock to screens. */

Definition at line 227 of file gdth.h.

#define GDT_RELEASE   15 /* release device */

Definition at line 218 of file gdth.h.

#define GDT_RELEASE_ALL   17 /* release all devices */

Definition at line 220 of file gdth.h.

#define GDT_RELEASE_DRV   21 /* release host drive */

Definition at line 207 of file gdth.h.

#define GDT_RESERVE   14 /* reserve dev. to raw serv. */

Definition at line 217 of file gdth.h.

#define GDT_RESERVE_ALL   16 /* reserve all devices */

Definition at line 219 of file gdth.h.

#define GDT_RESERVE_DRV   20 /* reserve host drive */

Definition at line 206 of file gdth.h.

#define GDT_RESET   19 /* controller reset */

Definition at line 205 of file gdth.h.

#define GDT_RESET_BUS   18 /* reset bus */

Definition at line 221 of file gdth.h.

#define GDT_RW_ATTRIBS   23 /* R/W attribs (write thru,..)*/

Definition at line 209 of file gdth.h.

#define GDT_SCAN_END   20 /* stop device scan */

Definition at line 223 of file gdth.h.

#define GDT_SCAN_START   19 /* start device scan */

Definition at line 222 of file gdth.h.

#define GDT_SET_FEAT   12 /* set feat. (scatter/gather) */

Definition at line 200 of file gdth.h.

#define GDT_UNFREEZE_IO   26 /* unfreezes all IOs */

Definition at line 212 of file gdth.h.

#define GDT_UNMOUNT   11 /* unmount cache device */

Definition at line 199 of file gdth.h.

#define GDT_WR_THROUGH   0x100 /* WRITE_THROUGH supported */

Definition at line 303 of file gdth.h.

#define GDT_WRITE   2 /* write command */

Definition at line 193 of file gdth.h.

#define GDT_WRITE_THR   16 /* write through */

Definition at line 202 of file gdth.h.

#define GDT_X_INFO   30 /* ext. info for drives>2TB */

Definition at line 214 of file gdth.h.

#define GDT_X_INIT_HOST   29 /* ext. init: 64 bit support */

Definition at line 213 of file gdth.h.

#define GDT_X_INIT_RAW   21 /* ext. init: 64 bit support */

Definition at line 224 of file gdth.h.

#define GDT_X_INIT_SCR   4 /* ext. init: 64 bit support */

Definition at line 228 of file gdth.h.

#define GDTH_DATA_IN   0x01000000L /* data from target */

Definition at line 278 of file gdth.h.

#define GDTH_DATA_OUT   0x00000000L /* data to target */

Definition at line 279 of file gdth.h.

#define GDTH_MAX_RAW   2 /* max. cmds per raw device */

Definition at line 142 of file gdth.h.

#define GDTH_MAXC_P_L   16 /* max. cmds per lun */

Definition at line 141 of file gdth.h.

#define GDTH_MAXCMDS   120

Definition at line 140 of file gdth.h.

#define GDTH_SCRATCH   PAGE_SIZE /* 4KB scratch buffer */

Definition at line 139 of file gdth.h.

#define GDTH_SUBVERSION   5

Definition at line 30 of file gdth.h.

#define GDTH_VERSION   3

Definition at line 29 of file gdth.h.

#define GDTH_VERSION_STR   "3.05"

Definition at line 28 of file gdth.h.

#define GET_PERF_MODES   0x83 /* get mode */

Definition at line 251 of file gdth.h.

#define HEADS   64

Definition at line 151 of file gdth.h.

#define HIGH_PRI   0x08

Definition at line 275 of file gdth.h.

#define HOST_GET   0x10001L /* get host drive list */

Definition at line 253 of file gdth.h.

#define IC_HEADER_BYTES   48

Definition at line 180 of file gdth.h.

#define IC_QUEUE_BYTES   4

Definition at line 181 of file gdth.h.

#define ID0REG   0x0c80 /* board ID */

Definition at line 282 of file gdth.h.

#define INIT_RETRIES   100000 /* 100000 * 1ms = 100s */

Definition at line 268 of file gdth.h.

#define INIT_TIMEOUT   100000 /* 100000 * 1ms = 100s */

Definition at line 269 of file gdth.h.

#define INTERNAL_CMND   ((Scsi_Cmnd *)-2)

Definition at line 160 of file gdth.h.

#define INVALID_CHANNEL   0x0000ffffL /* invalid channel */

Definition at line 255 of file gdth.h.

#define IO_CHANNEL   0x00020000L /* default IO channel */

Definition at line 254 of file gdth.h.

#define IOCHAN_DESC   0x5d /* description of IO channel */

Definition at line 236 of file gdth.h.

#define IOCHAN_RAW_DESC   0x5e /* description of raw IO chn. */

Definition at line 237 of file gdth.h.

#define IOCTL_PRI   0x10

Definition at line 274 of file gdth.h.

#define L_CTRL_PATTERN   0x20000000L /* SCSI IOCTL mask */

Definition at line 238 of file gdth.h.

#define LA_CTRL_PATTERN   0x10000000L /* array IOCTL mask */

Definition at line 242 of file gdth.h.

#define LDOORREG   0x0c8d /* local doorbell */

Definition at line 286 of file gdth.h.

#define LINUX_OS   8 /* used for cache optim. */

Definition at line 293 of file gdth.h.

#define LOCALBOARD   0 /* board node always 0 */

Definition at line 296 of file gdth.h.

#define MAILBOXREG   0x0c90 /* mailbox reg. (16 bytes) */

Definition at line 289 of file gdth.h.

#define MAX_EVENTS   100 /* event buffer count */

Definition at line 148 of file gdth.h.

#define MAX_RES_ARGS
Value:
40 /* device reservation,
must be a multiple of 4 */

Definition at line 149 of file gdth.h.

#define MAXBUS   6

Definition at line 147 of file gdth.h.

#define MAXCYLS   1024

Definition at line 150 of file gdth.h.

#define MAXHA   16

Definition at line 144 of file gdth.h.

#define MAXID   127

Definition at line 145 of file gdth.h.

#define MAXLUN   8

Definition at line 146 of file gdth.h.

#define MAXOFFSETS   128

Definition at line 143 of file gdth.h.

#define MEDHEADS   127

Definition at line 153 of file gdth.h.

#define MEDSECS   63 /* mapping 127*63 */

Definition at line 154 of file gdth.h.

#define MSG_INV_HANDLE   -1 /* special message handle */

Definition at line 170 of file gdth.h.

#define MSG_REQUEST   0 /* async. event: message */

Definition at line 173 of file gdth.h.

#define MSG_SIZE   34 /* size of message structure */

Definition at line 172 of file gdth.h.

#define MSGLEN   16 /* size of message text */

Definition at line 171 of file gdth.h.

#define OEM_ID_ICP   0x941c

Definition at line 36 of file gdth.h.

#define OEM_ID_INTEL   0x8000

Definition at line 37 of file gdth.h.

#define PCI_DEVICE_ID_INTEL_SRC   0x600

Definition at line 130 of file gdth.h.

#define PCI_DEVICE_ID_INTEL_SRC_XSCALE   0x601

Definition at line 135 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6000B   1 /* GDT6000B/6010 */

Definition at line 55 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT60x0   0 /* GDT6000/6020/6050 */

Definition at line 54 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6530   4 /* GDT6530 */

Definition at line 59 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6535   12 /* GDT6535 */

Definition at line 69 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6537   8 /* GDT6537 */

Definition at line 64 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6537RD   0x112 /* GDT6537RD */

Definition at line 87 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6537RP   0x102 /* GDT6537RP */

Definition at line 77 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6550   5 /* GDT6550 */

Definition at line 60 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6555   13 /* GDT6555/6555-ECC */

Definition at line 70 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6557   9 /* GDT6557/6557-ECC */

Definition at line 65 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6557RD   0x113 /* GDT6557RD */

Definition at line 88 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6557RP   0x103 /* GDT6557RP */

Definition at line 78 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x10   2 /* GDT6110/6510 */

Definition at line 57 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x11RD   0x114 /* GDT6111RD/GDT6511RD */

Definition at line 90 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x11RP   0x104 /* GDT6111RP/GDT6511RP */

Definition at line 80 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x15   10 /* GDT6115/6515 */

Definition at line 67 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x17   6 /* GDT6117/6517 */

Definition at line 62 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x17RD   0x110 /* GDT6117RD/GDT6517RD */

Definition at line 85 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x17RP   0x100 /* GDT6117RP/GDT6517RP */

Definition at line 75 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x18RD
Value:
0x118 /* GDT6118RD/GDT6518RD/
GDT6618RD */

Definition at line 93 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x19RD   0x210 /* GDT6519RD/GDT6619RD */

Definition at line 106 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x20   3 /* GDT6120/6520 */

Definition at line 58 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x21RD   0x115 /* GDT6121RD/GDT6521RD */

Definition at line 91 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x21RP   0x105 /* GDT6121RP/GDT6521RP */

Definition at line 81 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x25   11 /* GDT6125/6525 */

Definition at line 68 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x27   7 /* GDT6127/6527 */

Definition at line 63 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x27RD   0x111 /* GDT6127RD/GDT6527RD */

Definition at line 86 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x27RP   0x101 /* GDT6127RP/GDT6527RP */

Definition at line 76 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x28RD
Value:
0x119 /* GDT6128RD/GDT6528RD/
GDT6628RD */

Definition at line 94 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x29RD   0x211 /* GDT6529RD/GDT6629RD */

Definition at line 107 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x38RD   0x11A /* GDT6538RD/GDT6638RD */

Definition at line 95 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT6x58RD   0x11B /* GDT6558RD/GDT6658RD */

Definition at line 96 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT7x18RN
Value:
0x168 /* GDT7118RN/GDT7518RN/
GDT7618RN */

Definition at line 98 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT7x19RN   0x260 /* GDT7519RN/GDT7619RN */

Definition at line 109 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT7x28RN
Value:
0x169 /* GDT7128RN/GDT7528RN/
GDT7628RN */

Definition at line 99 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT7x29RN   0x261 /* GDT7529RN/GDT7629RN */

Definition at line 110 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT7x38RN   0x16A /* GDT7538RN/GDT7638RN */

Definition at line 100 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDT7x58RN   0x16B /* GDT7558RN/GDT7658RN */

Definition at line 101 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDTMAXRP   0x2ff

Definition at line 115 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDTNEWRX   0x300

Definition at line 120 of file gdth.h.

#define PCI_DEVICE_ID_VORTEX_GDTNEWRX2   0x301

Definition at line 125 of file gdth.h.

#define POLL_TIMEOUT   10000 /* 10000 * 1ms = 10s */

Definition at line 270 of file gdth.h.

#define PROTOCOL_VERSION   1

Definition at line 33 of file gdth.h.

#define S_BSY   7 /* controller busy */

Definition at line 260 of file gdth.h.

#define S_CACHE_RESERV   -24 /* cache: reserv. conflict */

Definition at line 265 of file gdth.h.

#define S_CACHE_UNKNOWN   12 /* cache serv.: drive unknown */

Definition at line 261 of file gdth.h.

#define S_GENERR   6 /* general error */

Definition at line 259 of file gdth.h.

#define S_NOFUNC   -2 /* unknown function */

Definition at line 264 of file gdth.h.

#define S_OK   1 /* no error */

Definition at line 258 of file gdth.h.

#define S_RAW_ILL   0xff /* raw serv.: illegal */

Definition at line 263 of file gdth.h.

#define S_RAW_SCSI   12 /* raw serv.: target error */

Definition at line 262 of file gdth.h.

#define SCATTER_GATHER   1 /* s/g feature */

Definition at line 302 of file gdth.h.

#define SCREEN_CMND   ((Scsi_Cmnd *)-3)

Definition at line 161 of file gdth.h.

#define SCREENSERVICE   11

Definition at line 167 of file gdth.h.

#define SCSI_CHAN_CNT   0x05 /* SCSI channel count */

Definition at line 232 of file gdth.h.

#define SCSI_DEF_CNT   0x15 /* grown/primary defects */

Definition at line 234 of file gdth.h.

#define SCSI_DR_INFO   0x00 /* SCSI drive info */

Definition at line 231 of file gdth.h.

#define SCSI_DR_LIST   0x06 /* SCSI drive list */

Definition at line 233 of file gdth.h.

#define SCSIRAWSERVICE   3

Definition at line 165 of file gdth.h.

#define SECS   32 /* mapping 64*32 */

Definition at line 152 of file gdth.h.

#define SECS32   0x1f /* round capacity */

Definition at line 294 of file gdth.h.

#define SECTOR_SIZE   0x200 /* always 512 bytes per sec. */

Definition at line 176 of file gdth.h.

#define SEMA0REG   0x0c8a /* command semaphore */

Definition at line 284 of file gdth.h.

#define SEMA1REG   0x0c8b /* status semaphore */

Definition at line 285 of file gdth.h.

#define SET_PERF_MODES   0x82 /* set mode (coalescing,..) */

Definition at line 250 of file gdth.h.

#define SPECIAL_SCP (   p)    (p==UNUSED_CMND || p==INTERNAL_CMND || p==SCREEN_CMND)

Definition at line 162 of file gdth.h.

#define SPEZINDEX   1 /* cmd index unknown service */

Definition at line 298 of file gdth.h.

#define TRUE   1

Definition at line 19 of file gdth.h.

#define UNUSED_CMND   ((Scsi_Cmnd *)-1)

Definition at line 159 of file gdth.h.

Function Documentation

int gdth_proc_info ( struct Scsi_Host ,
char ,
char **  ,
off_t  ,
int  ,
int   
)

Definition at line 8 of file gdth_proc.c.

Variable Documentation

Definition at line 461 of file gdth.h.

u8 bd_length

Definition at line 992 of file gdth.h.

u8 bios_used[0x3c00-32]

Definition at line 726 of file gdth.h.

u32 blk_size

Definition at line 443 of file gdth.h.

u8 block_count[3]

Definition at line 996 of file gdth.h.

u8 block_length[3]

Definition at line 998 of file gdth.h.

le16 data_length

Definition at line 989 of file gdth.h.

u8 dens_code

Definition at line 995 of file gdth.h.

u8 dev_par

Definition at line 991 of file gdth.h.

Definition at line 741 of file gdth.h.

Definition at line 464 of file gdth.h.

u8 irqdel

Definition at line 743 of file gdth.h.

u8 irqen

Definition at line 742 of file gdth.h.

u8 local_no

Definition at line 463 of file gdth.h.

u8 lun

Definition at line 441 of file gdth.h.

u32 magic

Definition at line 727 of file gdth.h.

u8 med_type

Definition at line 990 of file gdth.h.

u8 memlock

Definition at line 740 of file gdth.h.

u16 need_deinit

Definition at line 728 of file gdth.h.

Definition at line 691 of file gdth.h.

u8 os_used[16]

Definition at line 731 of file gdth.h.

u8 padding[9]

Definition at line 730 of file gdth.h.

u8 proc_defect

Definition at line 472 of file gdth.h.

u8 proc_id

Definition at line 471 of file gdth.h.

u32 rd_blk_count

Definition at line 446 of file gdth.h.

u32 rd_count

Definition at line 444 of file gdth.h.

u32 reassigns

Definition at line 449 of file gdth.h.

u8 res[2]

Definition at line 442 of file gdth.h.

u8 reserved

Definition at line 473 of file gdth.h.

u32 retries

Definition at line 448 of file gdth.h.

u8 rq

Definition at line 745 of file gdth.h.

u8 volatile Sema1

Definition at line 744 of file gdth.h.

u16 serv_id

Definition at line 692 of file gdth.h.

u8 switch_support

Definition at line 729 of file gdth.h.

__le64 tid

Definition at line 440 of file gdth.h.

Definition at line 462 of file gdth.h.

u8 unused0[1]

Definition at line 760 of file gdth.h.

u8 unused1[3]

Definition at line 762 of file gdth.h.

u8 unused2[2]

Definition at line 764 of file gdth.h.

u8 unused3[3]

Definition at line 766 of file gdth.h.

u8 unused4[3]

Definition at line 768 of file gdth.h.

u32 wr_blk_count

Definition at line 447 of file gdth.h.

u32 wr_count

Definition at line 445 of file gdth.h.