Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
setup.c File Reference
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <cpu/irq.h>

Go to the source code of this file.

Macros

#define RES   NO_PRIORITY /* Disabled */
 
#define IR0   IRL0_PRIORITY /* IRLs */
 
#define IR1   IRL1_PRIORITY
 
#define IR2   IRL2_PRIORITY
 
#define IR3   IRL3_PRIORITY
 
#define PCA   INTA_PRIORITY /* PCI Ints */
 
#define PCB   INTB_PRIORITY
 
#define PCC   INTC_PRIORITY
 
#define PCD   INTD_PRIORITY
 
#define SER   TOP_PRIORITY
 
#define ERR   TOP_PRIORITY
 
#define PW0   TOP_PRIORITY
 
#define PW1   TOP_PRIORITY
 
#define PW2   TOP_PRIORITY
 
#define PW3   TOP_PRIORITY
 
#define DM0   NO_PRIORITY /* DMA Ints */
 
#define DM1   NO_PRIORITY
 
#define DM2   NO_PRIORITY
 
#define DM3   NO_PRIORITY
 
#define DAE   NO_PRIORITY
 
#define TU0   TIMER_PRIORITY /* TMU Ints */
 
#define TU1   NO_PRIORITY
 
#define TU2   NO_PRIORITY
 
#define TI2   NO_PRIORITY
 
#define ATI   NO_PRIORITY /* RTC Ints */
 
#define PRI   NO_PRIORITY
 
#define CUI   RTC_PRIORITY
 
#define ERI   SCIF_PRIORITY /* SCIF Ints */
 
#define RXI   SCIF_PRIORITY
 
#define BRI   SCIF_PRIORITY
 
#define TXI   SCIF_PRIORITY
 
#define ITI   TOP_PRIORITY /* WDT Ints */
 
#define SMSC_SUPERIO_BASE   0x04000000
 
#define SMSC_CONFIG_PORT_ADDR   0x3f0
 
#define SMSC_INDEX_PORT_ADDR   SMSC_CONFIG_PORT_ADDR
 
#define SMSC_DATA_PORT_ADDR   0x3f1
 
#define SMSC_ENTER_CONFIG_KEY   0x55
 
#define SMSC_EXIT_CONFIG_KEY   0xaa
 
#define SMCS_LOGICAL_DEV_INDEX   0x07
 
#define SMSC_DEVICE_ID_INDEX   0x20
 
#define SMSC_DEVICE_REV_INDEX   0x21
 
#define SMSC_ACTIVATE_INDEX   0x30
 
#define SMSC_PRIMARY_BASE_INDEX   0x60
 
#define SMSC_SECONDARY_BASE_INDEX   0x62
 
#define SMSC_PRIMARY_INT_INDEX   0x70
 
#define SMSC_SECONDARY_INT_INDEX   0x72
 
#define SMSC_IDE1_DEVICE   1
 
#define SMSC_KEYBOARD_DEVICE   7
 
#define SMSC_CONFIG_REGISTERS   8
 
#define SMSC_SUPERIO_READ_INDEXED(index)
 
#define SMSC_SUPERIO_WRITE_INDEXED(val, index)
 
#define IDE1_PRIMARY_BASE   0x01f0
 
#define IDE1_SECONDARY_BASE   0x03f6
 

Functions

 device_initcall (smsc_superio_setup)
 
void init_cayman_irq (void)
 

Variables

unsigned long smsc_superio_virt
 
int platform_int_priority [NR_INTC_IRQS]
 

Macro Definition Documentation

#define ATI   NO_PRIORITY /* RTC Ints */

Definition at line 47 of file setup.c.

#define BRI   SCIF_PRIORITY

Definition at line 52 of file setup.c.

#define CUI   RTC_PRIORITY

Definition at line 49 of file setup.c.

#define DAE   NO_PRIORITY

Definition at line 42 of file setup.c.

#define DM0   NO_PRIORITY /* DMA Ints */

Definition at line 38 of file setup.c.

#define DM1   NO_PRIORITY

Definition at line 39 of file setup.c.

#define DM2   NO_PRIORITY

Definition at line 40 of file setup.c.

#define DM3   NO_PRIORITY

Definition at line 41 of file setup.c.

#define ERI   SCIF_PRIORITY /* SCIF Ints */

Definition at line 50 of file setup.c.

#define ERR   TOP_PRIORITY

Definition at line 33 of file setup.c.

#define IDE1_PRIMARY_BASE   0x01f0

Definition at line 85 of file setup.c.

#define IDE1_SECONDARY_BASE   0x03f6

Definition at line 86 of file setup.c.

#define IR0   IRL0_PRIORITY /* IRLs */

Definition at line 24 of file setup.c.

#define IR1   IRL1_PRIORITY

Definition at line 25 of file setup.c.

#define IR2   IRL2_PRIORITY

Definition at line 26 of file setup.c.

#define IR3   IRL3_PRIORITY

Definition at line 27 of file setup.c.

#define ITI   TOP_PRIORITY /* WDT Ints */

Definition at line 54 of file setup.c.

#define PCA   INTA_PRIORITY /* PCI Ints */

Definition at line 28 of file setup.c.

#define PCB   INTB_PRIORITY

Definition at line 29 of file setup.c.

#define PCC   INTC_PRIORITY

Definition at line 30 of file setup.c.

#define PCD   INTD_PRIORITY

Definition at line 31 of file setup.c.

#define PRI   NO_PRIORITY

Definition at line 48 of file setup.c.

#define PW0   TOP_PRIORITY

Definition at line 34 of file setup.c.

#define PW1   TOP_PRIORITY

Definition at line 35 of file setup.c.

#define PW2   TOP_PRIORITY

Definition at line 36 of file setup.c.

#define PW3   TOP_PRIORITY

Definition at line 37 of file setup.c.

#define RES   NO_PRIORITY /* Disabled */

Definition at line 23 of file setup.c.

#define RXI   SCIF_PRIORITY

Definition at line 51 of file setup.c.

#define SER   TOP_PRIORITY

Definition at line 32 of file setup.c.

#define SMCS_LOGICAL_DEV_INDEX   0x07

Definition at line 65 of file setup.c.

#define SMSC_ACTIVATE_INDEX   0x30

Definition at line 68 of file setup.c.

#define SMSC_CONFIG_PORT_ADDR   0x3f0

Definition at line 58 of file setup.c.

#define SMSC_CONFIG_REGISTERS   8

Definition at line 76 of file setup.c.

#define SMSC_DATA_PORT_ADDR   0x3f1

Definition at line 60 of file setup.c.

#define SMSC_DEVICE_ID_INDEX   0x20

Definition at line 66 of file setup.c.

#define SMSC_DEVICE_REV_INDEX   0x21

Definition at line 67 of file setup.c.

#define SMSC_ENTER_CONFIG_KEY   0x55

Definition at line 62 of file setup.c.

#define SMSC_EXIT_CONFIG_KEY   0xaa

Definition at line 63 of file setup.c.

#define SMSC_IDE1_DEVICE   1

Definition at line 74 of file setup.c.

#define SMSC_INDEX_PORT_ADDR   SMSC_CONFIG_PORT_ADDR

Definition at line 59 of file setup.c.

#define SMSC_KEYBOARD_DEVICE   7

Definition at line 75 of file setup.c.

#define SMSC_PRIMARY_BASE_INDEX   0x60

Definition at line 69 of file setup.c.

#define SMSC_PRIMARY_INT_INDEX   0x70

Definition at line 71 of file setup.c.

#define SMSC_SECONDARY_BASE_INDEX   0x62

Definition at line 70 of file setup.c.

#define SMSC_SECONDARY_INT_INDEX   0x72

Definition at line 72 of file setup.c.

#define SMSC_SUPERIO_BASE   0x04000000

Definition at line 57 of file setup.c.

#define SMSC_SUPERIO_READ_INDEXED (   index)
Value:

Definition at line 78 of file setup.c.

#define SMSC_SUPERIO_WRITE_INDEXED (   val,
  index 
)
Value:
({ \
outb((val), SMSC_DATA_PORT_ADDR); })

Definition at line 81 of file setup.c.

#define TI2   NO_PRIORITY

Definition at line 46 of file setup.c.

#define TU0   TIMER_PRIORITY /* TMU Ints */

Definition at line 43 of file setup.c.

#define TU1   NO_PRIORITY

Definition at line 44 of file setup.c.

#define TU2   NO_PRIORITY

Definition at line 45 of file setup.c.

#define TXI   SCIF_PRIORITY

Definition at line 53 of file setup.c.

Function Documentation

device_initcall ( smsc_superio_setup  )
void init_cayman_irq ( void  )

Definition at line 139 of file irq.c.

Variable Documentation

int platform_int_priority[NR_INTC_IRQS]
Initial value:
= {
IR0, IR1, IR2, IR3, PCA, PCB, PCC, PCD,
RES, RES, RES, RES, SER, ERR, PW3, PW2,
PW1, PW0, DM0, DM1, DM2, DM3, DAE, RES,
RES, RES, RES, RES, RES, RES, RES, RES,
TU0, TU1, TU2, TI2, ATI, PRI, CUI, ERI,
RXI, BRI, TXI, RES, RES, RES, RES, RES,
RES, RES, RES, RES, RES, RES, RES, RES,
RES, RES, RES, RES, RES, RES, RES, ITI,
}

Definition at line 90 of file setup.c.

unsigned long smsc_superio_virt

Definition at line 88 of file setup.c.