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

Go to the source code of this file.

Data Structures

struct  qd65xx_timing_s
 

Macros

#define IDE_IN(a, b, c)   ( ((a)<(b)) ? (b) : ( (a)>(c) ? (c) : (a)) )
 
#define IDE_IMPLY(a, b)   ((!(a)) || (b))
 
#define QD_TIM1_PORT   (base)
 
#define QD_CONFIG_PORT   (base+0x01)
 
#define QD_TIM2_PORT   (base+0x02)
 
#define QD_CONTROL_PORT   (base+0x03)
 
#define QD_CONFIG_IDE_BASEPORT   0x01
 
#define QD_CONFIG_BASEPORT   0x02
 
#define QD_CONFIG_ID3   0x04
 
#define QD_CONFIG_DISABLED   0x08
 
#define QD_CONFIG_QD6500   0xc0
 
#define QD_CONFIG_QD6580_A   0xa0
 
#define QD_CONFIG_QD6580_B   0x50
 
#define QD_CONTR_SEC_DISABLED   0x01
 
#define QD_ID3   ((config & QD_CONFIG_ID3)!=0)
 
#define QD_CONFIG(hwif)   ((hwif)->config_data & 0x00ff)
 
#define QD6500_DEF_DATA   ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0c : 0x08))
 
#define QD6580_DEF_DATA   ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0a : 0x00))
 
#define QD6580_DEF_DATA2   ((QD_TIM2_PORT<<8) | (QD_ID3 ? 0x0a : 0x00))
 
#define QD_DEF_CONTR   (0x40 | ((control & 0x02) ? 0x9f : 0x1f))
 
#define QD_TESTVAL   0x19 /* safe value */
 

Macro Definition Documentation

#define IDE_IMPLY (   a,
  b 
)    ((!(a)) || (b))

Definition at line 13 of file qd65xx.h.

#define IDE_IN (   a,
  b,
  c 
)    ( ((a)<(b)) ? (b) : ( (a)>(c) ? (c) : (a)) )

Definition at line 11 of file qd65xx.h.

#define QD6500_DEF_DATA   ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0c : 0x08))

Definition at line 44 of file qd65xx.h.

#define QD6580_DEF_DATA   ((QD_TIM1_PORT<<8) | (QD_ID3 ? 0x0a : 0x00))

Definition at line 45 of file qd65xx.h.

#define QD6580_DEF_DATA2   ((QD_TIM2_PORT<<8) | (QD_ID3 ? 0x0a : 0x00))

Definition at line 46 of file qd65xx.h.

#define QD_CONFIG (   hwif)    ((hwif)->config_data & 0x00ff)

Definition at line 32 of file qd65xx.h.

#define QD_CONFIG_BASEPORT   0x02

Definition at line 21 of file qd65xx.h.

#define QD_CONFIG_DISABLED   0x08

Definition at line 23 of file qd65xx.h.

#define QD_CONFIG_ID3   0x04

Definition at line 22 of file qd65xx.h.

#define QD_CONFIG_IDE_BASEPORT   0x01

Definition at line 20 of file qd65xx.h.

#define QD_CONFIG_PORT   (base+0x01)

Definition at line 16 of file qd65xx.h.

#define QD_CONFIG_QD6500   0xc0

Definition at line 24 of file qd65xx.h.

#define QD_CONFIG_QD6580_A   0xa0

Definition at line 25 of file qd65xx.h.

#define QD_CONFIG_QD6580_B   0x50

Definition at line 26 of file qd65xx.h.

#define QD_CONTR_SEC_DISABLED   0x01

Definition at line 28 of file qd65xx.h.

#define QD_CONTROL_PORT   (base+0x03)

Definition at line 18 of file qd65xx.h.

#define QD_DEF_CONTR   (0x40 | ((control & 0x02) ? 0x9f : 0x1f))

Definition at line 47 of file qd65xx.h.

#define QD_ID3   ((config & QD_CONFIG_ID3)!=0)

Definition at line 30 of file qd65xx.h.

#define QD_TESTVAL   0x19 /* safe value */

Definition at line 49 of file qd65xx.h.

#define QD_TIM1_PORT   (base)

Definition at line 15 of file qd65xx.h.

#define QD_TIM2_PORT   (base+0x02)

Definition at line 17 of file qd65xx.h.