Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
pm8001_defs.h File Reference

Go to the source code of this file.

Macros

#define USI_MAX_MEMCNT   9
 
#define PM8001_MAX_DMA_SG   SG_ALL
 
#define PM8001_MAX_CCB   512 /* max ccbs supported */
 
#define PM8001_MPI_QUEUE   1024 /* maximum mpi queue entries */
 
#define PM8001_MAX_INB_NUM   1
 
#define PM8001_MAX_OUTB_NUM   1
 
#define PM8001_CAN_QUEUE   508 /* SCSI Queue depth */
 
#define PM8001_MAX_PHYS   8 /* max. possible phys */
 
#define PM8001_MAX_PORTS   8 /* max. possible ports */
 
#define PM8001_MAX_DEVICES   1024 /* max supported device */
 
#define PM8001_EVENT_LOG_SIZE   (128 * 1024)
 

Enumerations

enum  chip_flavors {
  chip_6320, chip_6440, chip_6485, chip_9480,
  chip_9180, chip_9445, chip_9485, chip_1300,
  chip_1320, chip_8001
}
 
enum  phy_speed { PHY_SPEED_15 = 0x01, PHY_SPEED_30 = 0x02, PHY_SPEED_60 = 0x04 }
 
enum  data_direction {
  DATA_DIR_NONE = 0x0, DATA_DIR_IN = 0x01, DATA_DIR_OUT = 0x02, DATA_DIR_BYRECIPIENT = 0x04,
  DATA_DIR_UNKNOWN = 0, DATA_DIR_FROM_HOST, DATA_DIR_TO_HOST, DATA_DIR_NONE,
  DATA_DIR_UNKNOWN = 0, DATA_DIR_FROM_HOST, DATA_DIR_TO_HOST, DATA_DIR_NONE
}
 
enum  port_type {
  PORT_PATA0 = 0, PORT_PATA1 = 1, PORT_SATA = 2, PORT_PATA0 = 0,
  PORT_PATA1 = 1, PORT_SATA = 2, PORT_TYPE_SAS = (1L << 1), PORT_TYPE_SATA = (1L << 0),
  PORT_MDM = 0, PORT_DIAG = 1, PORT_APP1 = 2, PORT_APP2 = 3,
  PORT_CTRL = 4, PORT_ERROR = -1
}
 
enum  memory_region_num {
  AAP1 = 0x0, IOP, CI, PI,
  IB, OB, NVMD, DEV_MEM,
  CCB_MEM
}
 
enum  mpi_err { MPI_IO_STATUS_SUCCESS = 0x0, MPI_IO_STATUS_BUSY = 0x01, MPI_IO_STATUS_FAIL = 0x02 }
 
enum  phy_control_type { PHY_LINK_RESET = 0x01, PHY_HARD_RESET = 0x02, PHY_NOTIFY_ENABLE_SPINUP = 0x10 }
 
enum  pm8001_hba_info_flags { PM8001F_INIT_TIME = (1U << 0), PM8001F_RUN_TIME = (1U << 1) }
 

Macro Definition Documentation

#define PM8001_CAN_QUEUE   508 /* SCSI Queue depth */

Definition at line 72 of file pm8001_defs.h.

#define PM8001_EVENT_LOG_SIZE   (128 * 1024)

Definition at line 90 of file pm8001_defs.h.

#define PM8001_MAX_CCB   512 /* max ccbs supported */

Definition at line 68 of file pm8001_defs.h.

#define PM8001_MAX_DEVICES   1024 /* max supported device */

Definition at line 77 of file pm8001_defs.h.

#define PM8001_MAX_DMA_SG   SG_ALL

Definition at line 48 of file pm8001_defs.h.

#define PM8001_MAX_INB_NUM   1

Definition at line 70 of file pm8001_defs.h.

#define PM8001_MAX_OUTB_NUM   1

Definition at line 71 of file pm8001_defs.h.

#define PM8001_MAX_PHYS   8 /* max. possible phys */

Definition at line 75 of file pm8001_defs.h.

#define PM8001_MAX_PORTS   8 /* max. possible ports */

Definition at line 76 of file pm8001_defs.h.

#define PM8001_MPI_QUEUE   1024 /* maximum mpi queue entries */

Definition at line 69 of file pm8001_defs.h.

#define USI_MAX_MEMCNT   9

Definition at line 47 of file pm8001_defs.h.

Enumeration Type Documentation

Enumerator:
chip_6320 
chip_6440 
chip_6485 
chip_9480 
chip_9180 
chip_9445 
chip_9485 
chip_1300 
chip_1320 
chip_8001 

Definition at line 44 of file pm8001_defs.h.

Enumerator:
DATA_DIR_NONE 
DATA_DIR_IN 
DATA_DIR_OUT 
DATA_DIR_BYRECIPIENT 
DATA_DIR_UNKNOWN 
DATA_DIR_FROM_HOST 
DATA_DIR_TO_HOST 
DATA_DIR_NONE 
DATA_DIR_UNKNOWN 
DATA_DIR_FROM_HOST 
DATA_DIR_TO_HOST 
DATA_DIR_NONE 

Definition at line 55 of file pm8001_defs.h.

Enumerator:
AAP1 
IOP 
CI 
PI 
IB 
OB 
NVMD 
DEV_MEM 
CCB_MEM 

Definition at line 79 of file pm8001_defs.h.

enum mpi_err
Enumerator:
MPI_IO_STATUS_SUCCESS 
MPI_IO_STATUS_BUSY 
MPI_IO_STATUS_FAIL 

Definition at line 93 of file pm8001_defs.h.

Phy Control constants

Enumerator:
PHY_LINK_RESET 
PHY_HARD_RESET 
PHY_NOTIFY_ENABLE_SPINUP 

Definition at line 102 of file pm8001_defs.h.

enum phy_speed
Enumerator:
PHY_SPEED_15 
PHY_SPEED_30 
PHY_SPEED_60 

Definition at line 49 of file pm8001_defs.h.

Enumerator:
PM8001F_INIT_TIME 
PM8001F_RUN_TIME 

Definition at line 108 of file pm8001_defs.h.

enum port_type
Enumerator:
PORT_PATA0 
PORT_PATA1 
PORT_SATA 
PORT_PATA0 
PORT_PATA1 
PORT_SATA 
PORT_TYPE_SAS 
PORT_TYPE_SATA 
PORT_MDM 
PORT_DIAG 
PORT_APP1 
PORT_APP2 
PORT_CTRL 
PORT_ERROR 

Definition at line 62 of file pm8001_defs.h.