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

Go to the source code of this file.

Macros

#define MAX_TRANS   (0x0fff)
 
#define MST_8259   (0x20)
 
#define SLV_8259   (0xA0)
 
#define TPS   (18) /* ticks per second */
 
#define TN   (4) /* number of supported timer = TN+1 */
 
#define SNPPND_TIME   (5) /* buffer memory access over mem. data reg. */
 
#define MAC_AD   0x405a0000
 
#define MODR1   FM_A(FM_MDREG1) /* mode register 1 */
 
#define MODR2   FM_A(FM_MDREG2) /* mode register 2 */
 
#define CMDR1   FM_A(FM_CMDREG1) /* command register 1 */
 
#define CMDR2   FM_A(FM_CMDREG2) /* command register 2 */
 
#define CLEAR(io, mask)   outpw((io),inpw(io)&(~(mask)))
 
#define SET(io, mask)   outpw((io),inpw(io)|(mask))
 
#define GET(io, mask)   (inpw(io)&(mask))
 
#define SETMASK(io, val, mask)   outpw((io),(inpw(io) & ~(mask)) | (val))
 
#define PLC(np, reg)   (((np) == PA) ? P2_A(reg) : P1_A(reg))
 
#define MARW(ma)   outpw(FM_A(FM_MARW),(unsigned int)(ma))
 
#define MARR(ma)   outpw(FM_A(FM_MARR),(unsigned int)(ma))
 
#define MDRW(dd)
 
#define MDRR()   (((long)inpw(FM_A(FM_MDRU))<<16) + inpw(FM_A(FM_MDRL)))
 
#define GET_ST1()   (((long)inpw(FM_A(FM_ST1U))<<16) + inpw(FM_A(FM_ST1L)))
 
#define GET_ST2()   (((long)inpw(FM_A(FM_ST2U))<<16) + inpw(FM_A(FM_ST2L)))
 
#define OUT_82c54_TIMER(port, val)   outpw(TI_A(port),(val)<<8)
 
#define IN_82c54_TIMER(port)   ((inpw(TI_A(port))>>8) & 0xff)
 
#define DB_MAC(mac, st)
 
#define DB_PLC(p, iev)
 
#define DB_TIMER()
 
#define INC_PTR(sp, cp, ep)   if (++cp == ep) cp = sp
 
#define COUNT(t)   ((t)<<6) /* counter */
 
#define RW_OP(o)   ((o)<<4) /* read/write operation */
 
#define TMODE(m)   ((m)<<1) /* timer mode */
 

Macro Definition Documentation

#define CLEAR (   io,
  mask 
)    outpw((io),inpw(io)&(~(mask)))

Definition at line 1041 of file skfbi.h.

#define CMDR1   FM_A(FM_CMDREG1) /* command register 1 */

Definition at line 1034 of file skfbi.h.

#define CMDR2   FM_A(FM_CMDREG2) /* command register 2 */

Definition at line 1035 of file skfbi.h.

#define COUNT (   t)    ((t)<<6) /* counter */

Definition at line 1129 of file skfbi.h.

#define DB_MAC (   mac,
  st 
)

Definition at line 1119 of file skfbi.h.

#define DB_PLC (   p,
  iev 
)

Definition at line 1120 of file skfbi.h.

#define DB_TIMER ( )

Definition at line 1121 of file skfbi.h.

#define GET (   io,
  mask 
)    (inpw(io)&(mask))

Definition at line 1043 of file skfbi.h.

#define GET_ST1 ( )    (((long)inpw(FM_A(FM_ST1U))<<16) + inpw(FM_A(FM_ST1L)))

Definition at line 1070 of file skfbi.h.

#define GET_ST2 ( )    (((long)inpw(FM_A(FM_ST2U))<<16) + inpw(FM_A(FM_ST2L)))

Definition at line 1071 of file skfbi.h.

#define IN_82c54_TIMER (   port)    ((inpw(TI_A(port))>>8) & 0xff)

Definition at line 1090 of file skfbi.h.

#define INC_PTR (   sp,
  cp,
  ep 
)    if (++cp == ep) cp = sp

Definition at line 1125 of file skfbi.h.

#define MAC_AD   0x405a0000

Definition at line 1029 of file skfbi.h.

#define MARR (   ma)    outpw(FM_A(FM_MARR),(unsigned int)(ma))

Definition at line 1056 of file skfbi.h.

#define MARW (   ma)    outpw(FM_A(FM_MARW),(unsigned int)(ma))

Definition at line 1055 of file skfbi.h.

#define MAX_TRANS   (0x0fff)

Definition at line 1013 of file skfbi.h.

#define MDRR ( )    (((long)inpw(FM_A(FM_MDRU))<<16) + inpw(FM_A(FM_MDRL)))

Definition at line 1067 of file skfbi.h.

#define MDRW (   dd)
Value:
outpw(FM_A(FM_MDRU),(unsigned int)((dd)>>16)) ;\
outpw(FM_A(FM_MDRL),(unsigned int)(dd))

Definition at line 1062 of file skfbi.h.

#define MODR1   FM_A(FM_MDREG1) /* mode register 1 */

Definition at line 1031 of file skfbi.h.

#define MODR2   FM_A(FM_MDREG2) /* mode register 2 */

Definition at line 1032 of file skfbi.h.

#define MST_8259   (0x20)

Definition at line 1018 of file skfbi.h.

#define OUT_82c54_TIMER (   port,
  val 
)    outpw(TI_A(port),(val)<<8)

Definition at line 1089 of file skfbi.h.

#define PLC (   np,
  reg 
)    (((np) == PA) ? P2_A(reg) : P1_A(reg))

Definition at line 1050 of file skfbi.h.

#define RW_OP (   o)    ((o)<<4) /* read/write operation */

Definition at line 1130 of file skfbi.h.

#define SET (   io,
  mask 
)    outpw((io),inpw(io)|(mask))

Definition at line 1042 of file skfbi.h.

#define SETMASK (   io,
  val,
  mask 
)    outpw((io),(inpw(io) & ~(mask)) | (val))

Definition at line 1044 of file skfbi.h.

#define SLV_8259   (0xA0)

Definition at line 1019 of file skfbi.h.

#define SNPPND_TIME   (5) /* buffer memory access over mem. data reg. */

Definition at line 1027 of file skfbi.h.

#define TMODE (   m)    ((m)<<1) /* timer mode */

Definition at line 1131 of file skfbi.h.

#define TN   (4) /* number of supported timer = TN+1 */

Definition at line 1026 of file skfbi.h.

#define TPS   (18) /* ticks per second */

Definition at line 1021 of file skfbi.h.