kernels/linux-2.4.0/drivers/pcmcia/ti113x.h
/*
 * Generic TI init - TI has an extension for the
 * INTCTL register that sets the PCI CSC interrupt.
 * Make sure we set it correctly at open and init
 * time
 * - open: disable the PCI CSC interrupt. This makes
 *   it possible to use the CSC interrupt to probe the
 *   ISA interrupts.
 * - init: set the interrupt to match our PCI state.
 *   This makes us correctly get PCI CSC interrupt
 *   events.
 */
Generic TI init - TI has an extension for the
INTCTL register that sets the PCI CSC interrupt.
Make sure we set it correctly at open and init
time
- open: disable the PCI CSC interrupt. This makes
it possible to use the CSC interrupt to probe the
ISA interrupts.
- init: set the interrupt to match our PCI state.
This makes us correctly get PCI CSC interrupt
events.
Generic TI init - TI has an extension for the INTCTL register that sets the PCI CSC interrupt . Make sure we set it correctly at open and init time - open : disable the PCI CSC interrupt . This makes it possible to use the CSC interrupt to probe the ISA interrupts . - init : set the interrupt to match our PCI state . This makes us correctly get PCI CSC interrupt events .
static int ti_open(pci_socket_t *socket)
{
	u8 new, reg = exca_readb(socket, I365_INTCTL);
	new = reg & ~I365_INTR_ENA;
	if (new != reg)
		exca_writeb(socket, I365_INTCTL, new);
	return 0;
}
static int ti_open ( pci_socket_t * socket ) { u8 new , reg = exca_readb ( socket , I365_INTCTL ) ; new = reg & ~ I365_INTR_ENA ; if ( new != reg ) exca_writeb ( socket , I365_INTCTL , new ) ; return 0 ; }
Generic TI init - TI has an extension for the
 INTCTL register that sets the PCI CSC interrupt.
Generic TI init - TI has an extension for the INTCTL register that sets the PCI CSC interrupt .