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

Go to the source code of this file.

Macros

#define PCISH5_PID   0x350d
 
#define PCISH5_VID   0x1054
 
#define ST_TYPE0   0x00 /* Configuration cycle type 0 */
 
#define ST_TYPE1   0x01 /* Configuration cycle type 1 */
 
#define PCISH5_VCR_STATUS   0x00
 
#define PCISH5_VCR_VERSION   0x08
 
#define PCISH5_ICR_CR   0x100 /* PCI control register values */
 
#define CR_PBAM   (1<<12)
 
#define CR_PFCS   (1<<11)
 
#define CR_FTO   (1<<10)
 
#define CR_PFE   (1<<9)
 
#define CR_TBS   (1<<8)
 
#define CR_SPUE   (1<<7)
 
#define CR_BMAM   (1<<6)
 
#define CR_HOST   (1<<5)
 
#define CR_CLKEN   (1<<4)
 
#define CR_SOCS   (1<<3)
 
#define CR_IOCS   (1<<2)
 
#define CR_RSTCTL   (1<<1)
 
#define CR_CFINT   (1<<0)
 
#define CR_LOCK_MASK   0xa5000000
 
#define PCISH5_ICR_INT   0x114 /* Interrupt registert values */
 
#define INT_MADIM   (1<<2)
 
#define PCISH5_ICR_LSR0   0X104 /* Local space register values */
 
#define PCISH5_ICR_LSR1   0X108 /* Local space register values */
 
#define PCISH5_ICR_LAR0   0x10c /* Local address register values */
 
#define PCISH5_ICR_LAR1   0x110 /* Local address register values */
 
#define PCISH5_ICR_INTM   0x118 /* Interrupt mask register values */
 
#define PCISH5_ICR_AIR   0x11c /* Interrupt error address information register values */
 
#define PCISH5_ICR_CIR   0x120 /* Interrupt error command information register values */
 
#define PCISH5_ICR_AINT   0x130 /* Interrupt error arbiter interrupt register values */
 
#define PCISH5_ICR_AINTM   0x134 /* Interrupt error arbiter interrupt mask register values */
 
#define PCISH5_ICR_BMIR   0x138 /* Interrupt error info register of bus master values */
 
#define PCISH5_ICR_PAR   0x1c0 /* Pio address register values */
 
#define PCISH5_ICR_MBR   0x1c4 /* Memory space bank register values */
 
#define PCISH5_ICR_IOBR   0x1c8 /* I/O space bank register values */
 
#define PCISH5_ICR_PINT   0x1cc /* power management interrupt register values */
 
#define PCISH5_ICR_PINTM   0x1d0 /* power management interrupt mask register values */
 
#define PCISH5_ICR_MBMR   0x1d8 /* memory space bank mask register values */
 
#define PCISH5_ICR_IOBMR   0x1dc /* I/O space bank mask register values */
 
#define PCISH5_ICR_CSCR0   0x210 /* PCI cache snoop control register 0 */
 
#define PCISH5_ICR_CSCR1   0x214 /* PCI cache snoop control register 1 */
 
#define PCISH5_ICR_PDR   0x220 /* Pio data register values */
 
#define PCISH5_ICR_CSR_VID   0x000 /* Vendor id */
 
#define PCISH5_ICR_CSR_DID   0x002 /* Device id */
 
#define PCISH5_ICR_CSR_CMD   0x004 /* Command register */
 
#define PCISH5_ICR_CSR_STATUS   0x006 /* Stautus */
 
#define PCISH5_ICR_CSR_IBAR0   0x010 /* I/O base address register */
 
#define PCISH5_ICR_CSR_MBAR0   0x014 /* First Memory base address register */
 
#define PCISH5_ICR_CSR_MBAR1   0x018 /* Second Memory base address register */
 
#define SH5PCI_ICR_BASE   (PHYS_PCI_BLOCK + 0x00040000)
 
#define SH5PCI_IO_BASE   (PHYS_PCI_BLOCK + 0x00800000)
 
#define PCISH5_ICR_REG(x)   ( pcicr_virt + (PCISH5_ICR_##x))
 
#define SH5PCI_WRITE(reg, val)   __raw_writel((u32)(val),PCISH5_ICR_REG(reg))
 
#define SH5PCI_WRITE_SHORT(reg, val)   __raw_writew((u16)(val),PCISH5_ICR_REG(reg))
 
#define SH5PCI_WRITE_BYTE(reg, val)   __raw_writeb((u8)(val),PCISH5_ICR_REG(reg))
 
#define SH5PCI_READ(reg)   __raw_readl(PCISH5_ICR_REG(reg))
 
#define SH5PCI_READ_SHORT(reg)   __raw_readw(PCISH5_ICR_REG(reg))
 
#define SH5PCI_READ_BYTE(reg)   __raw_readb(PCISH5_ICR_REG(reg))
 
#define SET_CONFIG_BITS(bus, devfn, where)   ((((bus) << 16) | ((devfn) << 8) | ((where) & ~3)) | 0x80000000)
 
#define CONFIG_CMD(bus, devfn, where)   SET_CONFIG_BITS(bus->number,devfn,where)
 
#define PCISH5_MEM_SIZCONV(x)   (((x / 0x40000) - 1) << 18)
 
#define PCISH5_IO_SIZCONV(x)   (((x / 0x40000) - 1) << 18)
 

Variables

unsigned long pcicr_virt
 
struct pci_ops sh5_pci_ops
 

Macro Definition Documentation

#define CONFIG_CMD (   bus,
  devfn,
  where 
)    SET_CONFIG_BITS(bus->number,devfn,where)

Definition at line 102 of file pci-sh5.h.

#define CR_BMAM   (1<<6)

Definition at line 36 of file pci-sh5.h.

#define CR_CFINT   (1<<0)

Definition at line 42 of file pci-sh5.h.

#define CR_CLKEN   (1<<4)

Definition at line 38 of file pci-sh5.h.

#define CR_FTO   (1<<10)

Definition at line 32 of file pci-sh5.h.

#define CR_HOST   (1<<5)

Definition at line 37 of file pci-sh5.h.

#define CR_IOCS   (1<<2)

Definition at line 40 of file pci-sh5.h.

#define CR_LOCK_MASK   0xa5000000

Definition at line 43 of file pci-sh5.h.

#define CR_PBAM   (1<<12)

Definition at line 30 of file pci-sh5.h.

#define CR_PFCS   (1<<11)

Definition at line 31 of file pci-sh5.h.

#define CR_PFE   (1<<9)

Definition at line 33 of file pci-sh5.h.

#define CR_RSTCTL   (1<<1)

Definition at line 41 of file pci-sh5.h.

#define CR_SOCS   (1<<3)

Definition at line 39 of file pci-sh5.h.

#define CR_SPUE   (1<<7)

Definition at line 35 of file pci-sh5.h.

#define CR_TBS   (1<<8)

Definition at line 34 of file pci-sh5.h.

#define INT_MADIM   (1<<2)

Definition at line 46 of file pci-sh5.h.

#define PCISH5_ICR_AINT   0x130 /* Interrupt error arbiter interrupt register values */

Definition at line 55 of file pci-sh5.h.

#define PCISH5_ICR_AINTM   0x134 /* Interrupt error arbiter interrupt mask register values */

Definition at line 56 of file pci-sh5.h.

#define PCISH5_ICR_AIR   0x11c /* Interrupt error address information register values */

Definition at line 53 of file pci-sh5.h.

#define PCISH5_ICR_BMIR   0x138 /* Interrupt error info register of bus master values */

Definition at line 57 of file pci-sh5.h.

#define PCISH5_ICR_CIR   0x120 /* Interrupt error command information register values */

Definition at line 54 of file pci-sh5.h.

#define PCISH5_ICR_CR   0x100 /* PCI control register values */

Definition at line 29 of file pci-sh5.h.

#define PCISH5_ICR_CSCR0   0x210 /* PCI cache snoop control register 0 */

Definition at line 65 of file pci-sh5.h.

#define PCISH5_ICR_CSCR1   0x214 /* PCI cache snoop control register 1 */

Definition at line 66 of file pci-sh5.h.

#define PCISH5_ICR_CSR_CMD   0x004 /* Command register */

Definition at line 72 of file pci-sh5.h.

#define PCISH5_ICR_CSR_DID   0x002 /* Device id */

Definition at line 71 of file pci-sh5.h.

#define PCISH5_ICR_CSR_IBAR0   0x010 /* I/O base address register */

Definition at line 74 of file pci-sh5.h.

#define PCISH5_ICR_CSR_MBAR0   0x014 /* First Memory base address register */

Definition at line 75 of file pci-sh5.h.

#define PCISH5_ICR_CSR_MBAR1   0x018 /* Second Memory base address register */

Definition at line 76 of file pci-sh5.h.

#define PCISH5_ICR_CSR_STATUS   0x006 /* Stautus */

Definition at line 73 of file pci-sh5.h.

#define PCISH5_ICR_CSR_VID   0x000 /* Vendor id */

Definition at line 70 of file pci-sh5.h.

#define PCISH5_ICR_INT   0x114 /* Interrupt registert values */

Definition at line 45 of file pci-sh5.h.

#define PCISH5_ICR_INTM   0x118 /* Interrupt mask register values */

Definition at line 52 of file pci-sh5.h.

#define PCISH5_ICR_IOBMR   0x1dc /* I/O space bank mask register values */

Definition at line 64 of file pci-sh5.h.

#define PCISH5_ICR_IOBR   0x1c8 /* I/O space bank register values */

Definition at line 60 of file pci-sh5.h.

#define PCISH5_ICR_LAR0   0x10c /* Local address register values */

Definition at line 50 of file pci-sh5.h.

#define PCISH5_ICR_LAR1   0x110 /* Local address register values */

Definition at line 51 of file pci-sh5.h.

#define PCISH5_ICR_LSR0   0X104 /* Local space register values */

Definition at line 48 of file pci-sh5.h.

#define PCISH5_ICR_LSR1   0X108 /* Local space register values */

Definition at line 49 of file pci-sh5.h.

#define PCISH5_ICR_MBMR   0x1d8 /* memory space bank mask register values */

Definition at line 63 of file pci-sh5.h.

#define PCISH5_ICR_MBR   0x1c4 /* Memory space bank register values */

Definition at line 59 of file pci-sh5.h.

#define PCISH5_ICR_PAR   0x1c0 /* Pio address register values */

Definition at line 58 of file pci-sh5.h.

#define PCISH5_ICR_PDR   0x220 /* Pio data register values */

Definition at line 67 of file pci-sh5.h.

#define PCISH5_ICR_PINT   0x1cc /* power management interrupt register values */

Definition at line 61 of file pci-sh5.h.

#define PCISH5_ICR_PINTM   0x1d0 /* power management interrupt mask register values */

Definition at line 62 of file pci-sh5.h.

#define PCISH5_ICR_REG (   x)    ( pcicr_virt + (PCISH5_ICR_##x))

Definition at line 85 of file pci-sh5.h.

#define PCISH5_IO_SIZCONV (   x)    (((x / 0x40000) - 1) << 18)

Definition at line 106 of file pci-sh5.h.

#define PCISH5_MEM_SIZCONV (   x)    (((x / 0x40000) - 1) << 18)

Definition at line 105 of file pci-sh5.h.

#define PCISH5_PID   0x350d

Definition at line 13 of file pci-sh5.h.

#define PCISH5_VCR_STATUS   0x00

Definition at line 23 of file pci-sh5.h.

#define PCISH5_VCR_VERSION   0x08

Definition at line 24 of file pci-sh5.h.

#define PCISH5_VID   0x1054

Definition at line 16 of file pci-sh5.h.

#define SET_CONFIG_BITS (   bus,
  devfn,
  where 
)    ((((bus) << 16) | ((devfn) << 8) | ((where) & ~3)) | 0x80000000)

Definition at line 99 of file pci-sh5.h.

#define SH5PCI_ICR_BASE   (PHYS_PCI_BLOCK + 0x00040000)

Definition at line 79 of file pci-sh5.h.

#define SH5PCI_IO_BASE   (PHYS_PCI_BLOCK + 0x00800000)

Definition at line 80 of file pci-sh5.h.

#define SH5PCI_READ (   reg)    __raw_readl(PCISH5_ICR_REG(reg))

Definition at line 94 of file pci-sh5.h.

#define SH5PCI_READ_BYTE (   reg)    __raw_readb(PCISH5_ICR_REG(reg))

Definition at line 96 of file pci-sh5.h.

#define SH5PCI_READ_SHORT (   reg)    __raw_readw(PCISH5_ICR_REG(reg))

Definition at line 95 of file pci-sh5.h.

#define SH5PCI_WRITE (   reg,
  val 
)    __raw_writel((u32)(val),PCISH5_ICR_REG(reg))

Definition at line 89 of file pci-sh5.h.

#define SH5PCI_WRITE_BYTE (   reg,
  val 
)    __raw_writeb((u8)(val),PCISH5_ICR_REG(reg))

Definition at line 91 of file pci-sh5.h.

#define SH5PCI_WRITE_SHORT (   reg,
  val 
)    __raw_writew((u16)(val),PCISH5_ICR_REG(reg))

Definition at line 90 of file pci-sh5.h.

#define ST_TYPE0   0x00 /* Configuration cycle type 0 */

Definition at line 19 of file pci-sh5.h.

#define ST_TYPE1   0x01 /* Configuration cycle type 1 */

Definition at line 20 of file pci-sh5.h.

Variable Documentation

unsigned long pcicr_virt

Definition at line 27 of file pci-sh5.c.

struct pci_ops sh5_pci_ops

Definition at line 65 of file ops-sh5.c.