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

Go to the source code of this file.

Macros

#define ISA_POLL_LOOP   40 /* Try to read-write before give up */
 
#define ISA_COR   0 /* Offset for ISA config register */
 
#define ISA_COR_PERR   0x01 /* Processor Error Enabled */
 
#define ISA_COR_WS   0x02 /* Insert Wait State if 1 */
 
#define ISA_COR_IRQOFF   0x38 /* No Interrupt */
 
#define ISA_COR_IRQ07   0x30 /* IRQ 7 Enable */
 
#define ISA_COR_IRQ05   0x28 /* IRQ 5 Enable */
 
#define ISA_COR_IRQ03   0x20 /* IRQ 3 Enable */
 
#define ISA_COR_IRQ10   0x18 /* IRQ 10 Enable */
 
#define ISA_COR_IRQ11   0x10 /* IRQ 11 Enable */
 
#define ISA_COR_IRQ12   0x08 /* IRQ 12 Enable */
 
#define ISA_COR_IRQ15   0x00 /* IRQ 15 Enable */
 
#define ISA_COR_IRQPULSE   0x40 /* 0 = Level 1 = Pulse Interrupt */
 
#define ISA_COR_RESET   0x80 /* Soft Reset for Transputer */
 
#define ISA_ISR   1 /* Offset for Interrupt Register */
 
#define ISA_ISR_ERR   0x01 /* Error Interrupt */
 
#define ISA_ISR_OUT   0x02 /* Output Interrupt */
 
#define ISA_ISR_INP   0x04 /* Input Interrupt */
 
#define ISA_ISR_SERIAL   0x08 /* Read out Serial ID after Reset */
 
#define ISA_ISR_ERRSIG   0x10 /* Error Signal Input */
 
#define ISA_ISR_ERR_MASK   0xfe /* Mask Error Interrupt */
 
#define ISA_ISR_OUT_MASK   0xfd /* Mask Output Interrupt */
 
#define ISA_ISR_INP_MASK   0xfb /* Mask Input Interrupt */
 
#define ISA_SER_ID   0x0201 /* ID for ISA Card */
 
#define ISA_EPR   2 /* Offset for this Register */
 
#define ISA_EPR_OUT   0x01 /* Rome Register Out (RO) */
 
#define ISA_EPR_IN   0x02 /* Rom Register In (WR) */
 
#define ISA_EPR_CLK   0x04 /* Rom Clock (WR) */
 
#define ISA_EPR_CS   0x08 /* Rom Cip Select (WR) */
 
#define ISA_EPR_HOLD   0x10 /* Rom Hold Signal (WR) */
 
#define ISA_EER   3 /* Offset for this Register */
 
#define ISA_SDI   4 /* Offset for this Register */
 
#define ISA_SDO   5 /* Offset for this Register */
 
#define ISA_SIS   6 /* Offset for this Register */
 
#define ISA_SIS_READY   0x01 /* If 1 : data is available */
 
#define ISA_SIS_INT   0x02 /* Enable Interrupt for READ */
 
#define ISA_SOS   7 /* Offset for this Register */
 
#define ISA_SOS_READY   0x01 /* If 1 : we can write Data */
 
#define ISA_SOS_INT   0x02 /* Enable Interrupt for WRITE */
 
#define ISA_REGION   8 /* Number of Registers */
 
#define ISA_PORT_COR   (card->port + ISA_COR)
 
#define ISA_PORT_ISR   (card->port + ISA_ISR)
 
#define ISA_PORT_EPR   (card->port + ISA_EPR)
 
#define ISA_PORT_EER   (card->port + ISA_EER)
 
#define ISA_PORT_SDI   (card->port + ISA_SDI)
 
#define ISA_PORT_SDO   (card->port + ISA_SDO)
 
#define ISA_PORT_SIS   (card->port + ISA_SIS)
 
#define ISA_PORT_SOS   (card->port + ISA_SOS)
 

Enumerations

enum  ISA_INT_T { INT_NO_CHANGE = 0, INT_ON = 1, INT_OFF = 2 }
 

Functions

int act2000_isa_detect (unsigned short portbase)
 
int act2000_isa_config_irq (act2000_card *card, short irq)
 
int act2000_isa_config_port (act2000_card *card, unsigned short portbase)
 
int act2000_isa_download (act2000_card *card, act2000_ddef __user *cb)
 
void act2000_isa_release (act2000_card *card)
 
void act2000_isa_receive (act2000_card *card)
 
void act2000_isa_send (act2000_card *card)
 

Macro Definition Documentation

#define ISA_COR   0 /* Offset for ISA config register */

Definition at line 32 of file act2000_isa.h.

#define ISA_COR_IRQ03   0x20 /* IRQ 3 Enable */

Definition at line 38 of file act2000_isa.h.

#define ISA_COR_IRQ05   0x28 /* IRQ 5 Enable */

Definition at line 37 of file act2000_isa.h.

#define ISA_COR_IRQ07   0x30 /* IRQ 7 Enable */

Definition at line 36 of file act2000_isa.h.

#define ISA_COR_IRQ10   0x18 /* IRQ 10 Enable */

Definition at line 39 of file act2000_isa.h.

#define ISA_COR_IRQ11   0x10 /* IRQ 11 Enable */

Definition at line 40 of file act2000_isa.h.

#define ISA_COR_IRQ12   0x08 /* IRQ 12 Enable */

Definition at line 41 of file act2000_isa.h.

#define ISA_COR_IRQ15   0x00 /* IRQ 15 Enable */

Definition at line 42 of file act2000_isa.h.

#define ISA_COR_IRQOFF   0x38 /* No Interrupt */

Definition at line 35 of file act2000_isa.h.

#define ISA_COR_IRQPULSE   0x40 /* 0 = Level 1 = Pulse Interrupt */

Definition at line 43 of file act2000_isa.h.

#define ISA_COR_PERR   0x01 /* Processor Error Enabled */

Definition at line 33 of file act2000_isa.h.

#define ISA_COR_RESET   0x80 /* Soft Reset for Transputer */

Definition at line 44 of file act2000_isa.h.

#define ISA_COR_WS   0x02 /* Insert Wait State if 1 */

Definition at line 34 of file act2000_isa.h.

#define ISA_EER   3 /* Offset for this Register */

Definition at line 81 of file act2000_isa.h.

#define ISA_EPR   2 /* Offset for this Register */

Definition at line 71 of file act2000_isa.h.

#define ISA_EPR_CLK   0x04 /* Rom Clock (WR) */

Definition at line 74 of file act2000_isa.h.

#define ISA_EPR_CS   0x08 /* Rom Cip Select (WR) */

Definition at line 75 of file act2000_isa.h.

#define ISA_EPR_HOLD   0x10 /* Rom Hold Signal (WR) */

Definition at line 76 of file act2000_isa.h.

#define ISA_EPR_IN   0x02 /* Rom Register In (WR) */

Definition at line 73 of file act2000_isa.h.

#define ISA_EPR_OUT   0x01 /* Rome Register Out (RO) */

Definition at line 72 of file act2000_isa.h.

#define ISA_ISR   1 /* Offset for Interrupt Register */

Definition at line 52 of file act2000_isa.h.

#define ISA_ISR_ERR   0x01 /* Error Interrupt */

Definition at line 53 of file act2000_isa.h.

#define ISA_ISR_ERR_MASK   0xfe /* Mask Error Interrupt */

Definition at line 58 of file act2000_isa.h.

#define ISA_ISR_ERRSIG   0x10 /* Error Signal Input */

Definition at line 57 of file act2000_isa.h.

#define ISA_ISR_INP   0x04 /* Input Interrupt */

Definition at line 55 of file act2000_isa.h.

#define ISA_ISR_INP_MASK   0xfb /* Mask Input Interrupt */

Definition at line 60 of file act2000_isa.h.

#define ISA_ISR_OUT   0x02 /* Output Interrupt */

Definition at line 54 of file act2000_isa.h.

#define ISA_ISR_OUT_MASK   0xfd /* Mask Output Interrupt */

Definition at line 59 of file act2000_isa.h.

#define ISA_ISR_SERIAL   0x08 /* Read out Serial ID after Reset */

Definition at line 56 of file act2000_isa.h.

#define ISA_POLL_LOOP   40 /* Try to read-write before give up */

Definition at line 18 of file act2000_isa.h.

#define ISA_PORT_COR   (card->port + ISA_COR)

Definition at line 117 of file act2000_isa.h.

#define ISA_PORT_EER   (card->port + ISA_EER)

Definition at line 120 of file act2000_isa.h.

#define ISA_PORT_EPR   (card->port + ISA_EPR)

Definition at line 119 of file act2000_isa.h.

#define ISA_PORT_ISR   (card->port + ISA_ISR)

Definition at line 118 of file act2000_isa.h.

#define ISA_PORT_SDI   (card->port + ISA_SDI)

Definition at line 121 of file act2000_isa.h.

#define ISA_PORT_SDO   (card->port + ISA_SDO)

Definition at line 122 of file act2000_isa.h.

#define ISA_PORT_SIS   (card->port + ISA_SIS)

Definition at line 123 of file act2000_isa.h.

#define ISA_PORT_SOS   (card->port + ISA_SOS)

Definition at line 124 of file act2000_isa.h.

#define ISA_REGION   8 /* Number of Registers */

Definition at line 113 of file act2000_isa.h.

#define ISA_SDI   4 /* Offset for this Register */

Definition at line 86 of file act2000_isa.h.

#define ISA_SDO   5 /* Offset for this Register */

Definition at line 91 of file act2000_isa.h.

#define ISA_SER_ID   0x0201 /* ID for ISA Card */

Definition at line 63 of file act2000_isa.h.

#define ISA_SIS   6 /* Offset for this Register */

Definition at line 99 of file act2000_isa.h.

#define ISA_SIS_INT   0x02 /* Enable Interrupt for READ */

Definition at line 101 of file act2000_isa.h.

#define ISA_SIS_READY   0x01 /* If 1 : data is available */

Definition at line 100 of file act2000_isa.h.

#define ISA_SOS   7 /* Offset for this Register */

Definition at line 109 of file act2000_isa.h.

#define ISA_SOS_INT   0x02 /* Enable Interrupt for WRITE */

Definition at line 111 of file act2000_isa.h.

#define ISA_SOS_READY   0x01 /* If 1 : we can write Data */

Definition at line 110 of file act2000_isa.h.

Enumeration Type Documentation

enum ISA_INT_T
Enumerator:
INT_NO_CHANGE 
INT_ON 
INT_OFF 

Definition at line 20 of file act2000_isa.h.

Function Documentation

int act2000_isa_config_irq ( act2000_card *  card,
short  irq 
)

Definition at line 132 of file act2000_isa.c.

int act2000_isa_config_port ( act2000_card *  card,
unsigned short  portbase 
)

Definition at line 162 of file act2000_isa.c.

int act2000_isa_detect ( unsigned short  portbase)

Definition at line 52 of file act2000_isa.c.

int act2000_isa_download ( act2000_card *  card,
act2000_ddef __user cb 
)

Definition at line 395 of file act2000_isa.c.

void act2000_isa_receive ( act2000_card *  card)

Definition at line 231 of file act2000_isa.c.

void act2000_isa_release ( act2000_card *  card)

Definition at line 181 of file act2000_isa.c.

void act2000_isa_send ( act2000_card *  card)

Definition at line 294 of file act2000_isa.c.