Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
q40_master.h File Reference
#include <asm/raw_io.h>
#include <asm/q40ints.h>

Go to the source code of this file.

Macros

#define q40_master_addr   0xff000000
 
#define IIRQ_REG   0x0 /* internal IRQ reg */
 
#define EIRQ_REG   0x4 /* external ... */
 
#define KEYCODE_REG   0x1c /* value of received scancode */
 
#define DISPLAY_CONTROL_REG   0x18
 
#define FRAME_CLEAR_REG   0x24
 
#define LED_REG   0x30
 
#define Q40_LED_ON()   master_outb(1,LED_REG)
 
#define Q40_LED_OFF()   master_outb(0,LED_REG)
 
#define INTERRUPT_REG   IIRQ_REG /* "native" ints */
 
#define KEY_IRQ_ENABLE_REG   0x08
 
#define KEYBOARD_UNLOCK_REG   0x20 /* clear kb int */
 
#define SAMPLE_ENABLE_REG   0x14 /* generate SAMPLE ints */
 
#define SAMPLE_RATE_REG   0x2c
 
#define SAMPLE_CLEAR_REG   0x28
 
#define SAMPLE_LOW   0x00
 
#define SAMPLE_HIGH   0x01
 
#define FRAME_RATE_REG   0x38 /* generate FRAME ints at 200 HZ rate */
 
#define EXT_ENABLE_REG   0x10 /* ... rest of the ISA ints ... */
 
#define master_inb(_reg_)   in_8((unsigned char *)q40_master_addr+_reg_)
 
#define master_outb(_b_, _reg_)   out_8((unsigned char *)q40_master_addr+_reg_,_b_)
 
#define Q40_RTC_BASE   (0xff021ffc)
 
#define Q40_RTC_YEAR   (*(volatile unsigned char *)(Q40_RTC_BASE+0))
 
#define Q40_RTC_MNTH   (*(volatile unsigned char *)(Q40_RTC_BASE-4))
 
#define Q40_RTC_DATE   (*(volatile unsigned char *)(Q40_RTC_BASE-8))
 
#define Q40_RTC_DOW   (*(volatile unsigned char *)(Q40_RTC_BASE-12))
 
#define Q40_RTC_HOUR   (*(volatile unsigned char *)(Q40_RTC_BASE-16))
 
#define Q40_RTC_MINS   (*(volatile unsigned char *)(Q40_RTC_BASE-20))
 
#define Q40_RTC_SECS   (*(volatile unsigned char *)(Q40_RTC_BASE-24))
 
#define Q40_RTC_CTRL   (*(volatile unsigned char *)(Q40_RTC_BASE-28))
 
#define Q40_RTC_READ   64 /* prepare for reading */
 
#define Q40_RTC_WRITE   128
 
#define DAC_LEFT   ((unsigned char *)0xff008000)
 
#define DAC_RIGHT   ((unsigned char *)0xff008004)
 

Macro Definition Documentation

#define DAC_LEFT   ((unsigned char *)0xff008000)

Definition at line 66 of file q40_master.h.

#define DAC_RIGHT   ((unsigned char *)0xff008004)

Definition at line 67 of file q40_master.h.

#define DISPLAY_CONTROL_REG   0x18

Definition at line 17 of file q40_master.h.

#define EIRQ_REG   0x4 /* external ... */

Definition at line 15 of file q40_master.h.

#define EXT_ENABLE_REG   0x10 /* ... rest of the ISA ints ... */

Definition at line 39 of file q40_master.h.

#define FRAME_CLEAR_REG   0x24

Definition at line 18 of file q40_master.h.

#define FRAME_RATE_REG   0x38 /* generate FRAME ints at 200 HZ rate */

Definition at line 34 of file q40_master.h.

#define IIRQ_REG   0x0 /* internal IRQ reg */

Definition at line 14 of file q40_master.h.

#define INTERRUPT_REG   IIRQ_REG /* "native" ints */

Definition at line 24 of file q40_master.h.

#define KEY_IRQ_ENABLE_REG   0x08

Definition at line 25 of file q40_master.h.

#define KEYBOARD_UNLOCK_REG   0x20 /* clear kb int */

Definition at line 26 of file q40_master.h.

#define KEYCODE_REG   0x1c /* value of received scancode */

Definition at line 16 of file q40_master.h.

#define LED_REG   0x30

Definition at line 19 of file q40_master.h.

#define master_inb (   _reg_)    in_8((unsigned char *)q40_master_addr+_reg_)

Definition at line 42 of file q40_master.h.

#define master_outb (   _b_,
  _reg_ 
)    out_8((unsigned char *)q40_master_addr+_reg_,_b_)

Definition at line 43 of file q40_master.h.

#define Q40_LED_OFF ( )    master_outb(0,LED_REG)

Definition at line 22 of file q40_master.h.

#define Q40_LED_ON ( )    master_outb(1,LED_REG)

Definition at line 21 of file q40_master.h.

#define q40_master_addr   0xff000000

Definition at line 12 of file q40_master.h.

#define Q40_RTC_BASE   (0xff021ffc)

Definition at line 47 of file q40_master.h.

#define Q40_RTC_CTRL   (*(volatile unsigned char *)(Q40_RTC_BASE-28))

Definition at line 56 of file q40_master.h.

#define Q40_RTC_DATE   (*(volatile unsigned char *)(Q40_RTC_BASE-8))

Definition at line 51 of file q40_master.h.

#define Q40_RTC_DOW   (*(volatile unsigned char *)(Q40_RTC_BASE-12))

Definition at line 52 of file q40_master.h.

#define Q40_RTC_HOUR   (*(volatile unsigned char *)(Q40_RTC_BASE-16))

Definition at line 53 of file q40_master.h.

#define Q40_RTC_MINS   (*(volatile unsigned char *)(Q40_RTC_BASE-20))

Definition at line 54 of file q40_master.h.

#define Q40_RTC_MNTH   (*(volatile unsigned char *)(Q40_RTC_BASE-4))

Definition at line 50 of file q40_master.h.

#define Q40_RTC_READ   64 /* prepare for reading */

Definition at line 59 of file q40_master.h.

#define Q40_RTC_SECS   (*(volatile unsigned char *)(Q40_RTC_BASE-24))

Definition at line 55 of file q40_master.h.

#define Q40_RTC_WRITE   128

Definition at line 60 of file q40_master.h.

#define Q40_RTC_YEAR   (*(volatile unsigned char *)(Q40_RTC_BASE+0))

Definition at line 49 of file q40_master.h.

#define SAMPLE_CLEAR_REG   0x28

Definition at line 30 of file q40_master.h.

#define SAMPLE_ENABLE_REG   0x14 /* generate SAMPLE ints */

Definition at line 28 of file q40_master.h.

#define SAMPLE_HIGH   0x01

Definition at line 32 of file q40_master.h.

#define SAMPLE_LOW   0x00

Definition at line 31 of file q40_master.h.

#define SAMPLE_RATE_REG   0x2c

Definition at line 29 of file q40_master.h.