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

Go to the source code of this file.

Macros

#define CO_CPU_NUM_PHYS   0x1e00
 
#define CO_CPU_TAB_PHYS   (CO_CPU_NUM_PHYS + 2)
 
#define CO_CPU_MAX   4
 
#define CO_CPU_PHYS   0xc2000000
 
#define CO_APIC_PHYS   0xc4000000
 
#define CO_CPU_VADDR   (fix_to_virt(FIX_CO_CPU))
 
#define CO_APIC_VADDR   (fix_to_virt(FIX_CO_APIC))
 
#define CO_CPU_REV   0x08
 
#define CO_CPU_CTRL   0x10
 
#define CO_CPU_STAT   0x20
 
#define CO_CPU_TIMEVAL   0x30
 
#define CO_CTRL_TIMERUN   0x04 /* 0 == disabled */
 
#define CO_CTRL_TIMEMASK   0x08 /* 0 == unmasked */
 
#define CO_STAT_TIMEINTR   0x02 /* (r) 1 == int pend, (w) 0 == clear */
 
#define CO_TIME_HZ   100000000 /* Cobalt core rate */
 
#define CO_APIC_HI(n)   (((n) * 0x10) + 4)
 
#define CO_APIC_LO(n)   ((n) * 0x10)
 
#define CO_APIC_ID   0x0ffc
 
#define CO_APIC_ENABLE   0x00000100
 
#define CO_APIC_MASK   0x00010000 /* 0 = enabled */
 
#define CO_APIC_LEVEL   0x00008000 /* 0 = edge */
 
#define CO_APIC_IDE0   4
 
#define CO_APIC_IDE1   2 /* Only on 320 */
 
#define CO_APIC_8259   12 /* serial, floppy, par-l-l */
 
#define CO_APIC_PCIA_BASE0   0 /* and 1 */ /* slot 0, line 0 */
 
#define CO_APIC_PCIA_BASE123   5 /* and 6 */ /* slot 0, line 1 */
 
#define CO_APIC_PIIX4_USB   7 /* this one is weird */
 
#define CO_APIC_PCIB_BASE0   8 /* and 9-12 *//* slot 0, line 0 */
 
#define CO_APIC_PCIB_BASE123   13 /* 14.15 */ /* slot 0, line 1 */
 
#define CO_APIC_VIDOUT0   16
 
#define CO_APIC_VIDOUT1   17
 
#define CO_APIC_VIDIN0   18
 
#define CO_APIC_VIDIN1   19
 
#define CO_APIC_LI_AUDIO   22
 
#define CO_APIC_AS   24
 
#define CO_APIC_RE   25
 
#define CO_APIC_CPU   28 /* Timer and Cache interrupt */
 
#define CO_APIC_NMI   29
 
#define CO_APIC_LAST   CO_APIC_NMI
 
#define CO_IRQ_APIC0   16 /* irq of apic entry 0 */
 
#define IS_CO_APIC(irq)   ((irq) >= CO_IRQ_APIC0)
 
#define CO_IRQ(apic)   (CO_IRQ_APIC0 + (apic)) /* apic ent to irq */
 
#define CO_APIC(irq)   ((irq) - CO_IRQ_APIC0) /* irq to apic ent */
 
#define CO_IRQ_IDE0   14 /* knowledge of... */
 
#define CO_IRQ_IDE1   15 /* ... ide driver defaults! */
 
#define CO_IRQ_8259   CO_IRQ(CO_APIC_8259)
 
#define VISWS_320   0
 
#define VISWS_540   1
 

Functions

int pci_visws_init (void)
 

Variables

char visws_board_type
 
char visws_board_rev
 

Macro Definition Documentation

#define CO_APIC (   irq)    ((irq) - CO_IRQ_APIC0) /* irq to apic ent */

Definition at line 91 of file cobalt.h.

#define CO_APIC_8259   12 /* serial, floppy, par-l-l */

Definition at line 57 of file cobalt.h.

#define CO_APIC_AS   24

Definition at line 76 of file cobalt.h.

#define CO_APIC_CPU   28 /* Timer and Cache interrupt */

Definition at line 79 of file cobalt.h.

#define CO_APIC_ENABLE   0x00000100

Definition at line 44 of file cobalt.h.

#define CO_APIC_HI (   n)    (((n) * 0x10) + 4)

Definition at line 39 of file cobalt.h.

#define CO_APIC_ID   0x0ffc

Definition at line 41 of file cobalt.h.

#define CO_APIC_IDE0   4

Definition at line 54 of file cobalt.h.

#define CO_APIC_IDE1   2 /* Only on 320 */

Definition at line 55 of file cobalt.h.

#define CO_APIC_LAST   CO_APIC_NMI

Definition at line 81 of file cobalt.h.

#define CO_APIC_LEVEL   0x00008000 /* 0 = edge */

Definition at line 48 of file cobalt.h.

#define CO_APIC_LI_AUDIO   22

Definition at line 74 of file cobalt.h.

#define CO_APIC_LO (   n)    ((n) * 0x10)

Definition at line 40 of file cobalt.h.

#define CO_APIC_MASK   0x00010000 /* 0 = enabled */

Definition at line 47 of file cobalt.h.

#define CO_APIC_NMI   29

Definition at line 80 of file cobalt.h.

#define CO_APIC_PCIA_BASE0   0 /* and 1 */ /* slot 0, line 0 */

Definition at line 60 of file cobalt.h.

#define CO_APIC_PCIA_BASE123   5 /* and 6 */ /* slot 0, line 1 */

Definition at line 61 of file cobalt.h.

#define CO_APIC_PCIB_BASE0   8 /* and 9-12 *//* slot 0, line 0 */

Definition at line 66 of file cobalt.h.

#define CO_APIC_PCIB_BASE123   13 /* 14.15 */ /* slot 0, line 1 */

Definition at line 67 of file cobalt.h.

#define CO_APIC_PHYS   0xc4000000

Definition at line 16 of file cobalt.h.

#define CO_APIC_PIIX4_USB   7 /* this one is weird */

Definition at line 63 of file cobalt.h.

#define CO_APIC_RE   25

Definition at line 77 of file cobalt.h.

#define CO_APIC_VADDR   (fix_to_virt(FIX_CO_APIC))

Definition at line 20 of file cobalt.h.

#define CO_APIC_VIDIN0   18

Definition at line 71 of file cobalt.h.

#define CO_APIC_VIDIN1   19

Definition at line 72 of file cobalt.h.

#define CO_APIC_VIDOUT0   16

Definition at line 69 of file cobalt.h.

#define CO_APIC_VIDOUT1   17

Definition at line 70 of file cobalt.h.

#define CO_CPU_CTRL   0x10

Definition at line 24 of file cobalt.h.

#define CO_CPU_MAX   4

Definition at line 13 of file cobalt.h.

#define CO_CPU_NUM_PHYS   0x1e00

Definition at line 10 of file cobalt.h.

#define CO_CPU_PHYS   0xc2000000

Definition at line 15 of file cobalt.h.

#define CO_CPU_REV   0x08

Definition at line 23 of file cobalt.h.

#define CO_CPU_STAT   0x20

Definition at line 25 of file cobalt.h.

#define CO_CPU_TAB_PHYS   (CO_CPU_NUM_PHYS + 2)

Definition at line 11 of file cobalt.h.

#define CO_CPU_TIMEVAL   0x30

Definition at line 26 of file cobalt.h.

#define CO_CPU_VADDR   (fix_to_virt(FIX_CO_CPU))

Definition at line 19 of file cobalt.h.

#define CO_CTRL_TIMEMASK   0x08 /* 0 == unmasked */

Definition at line 30 of file cobalt.h.

#define CO_CTRL_TIMERUN   0x04 /* 0 == disabled */

Definition at line 29 of file cobalt.h.

#define CO_IRQ (   apic)    (CO_IRQ_APIC0 + (apic)) /* apic ent to irq */

Definition at line 90 of file cobalt.h.

#define CO_IRQ_8259   CO_IRQ(CO_APIC_8259)

Definition at line 94 of file cobalt.h.

#define CO_IRQ_APIC0   16 /* irq of apic entry 0 */

Definition at line 88 of file cobalt.h.

#define CO_IRQ_IDE0   14 /* knowledge of... */

Definition at line 92 of file cobalt.h.

#define CO_IRQ_IDE1   15 /* ... ide driver defaults! */

Definition at line 93 of file cobalt.h.

#define CO_STAT_TIMEINTR   0x02 /* (r) 1 == int pend, (w) 0 == clear */

Definition at line 33 of file cobalt.h.

#define CO_TIME_HZ   100000000 /* Cobalt core rate */

Definition at line 36 of file cobalt.h.

#define IS_CO_APIC (   irq)    ((irq) >= CO_IRQ_APIC0)

Definition at line 89 of file cobalt.h.

#define VISWS_320   0

Definition at line 120 of file cobalt.h.

#define VISWS_540   1

Definition at line 121 of file cobalt.h.

Function Documentation

int pci_visws_init ( void  )

Definition at line 65 of file visws.c.

Variable Documentation

char visws_board_rev

Definition at line 50 of file visws_quirks.c.

char visws_board_type

Definition at line 49 of file visws_quirks.c.