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

Go to the source code of this file.

Macros

#define BONITO(x)   *(volatile u32 *)(_pcictrl_bonito + (x))
 
#define BONITO_BOOT_BASE   0x1fc00000
 
#define BONITO_BOOT_SIZE   0x00100000
 
#define BONITO_BOOT_TOP   (BONITO_BOOT_BASE+BONITO_BOOT_SIZE-1)
 
#define BONITO_FLASH_BASE   0x1c000000
 
#define BONITO_FLASH_SIZE   0x03000000
 
#define BONITO_FLASH_TOP   (BONITO_FLASH_BASE+BONITO_FLASH_SIZE-1)
 
#define BONITO_SOCKET_BASE   0x1f800000
 
#define BONITO_SOCKET_SIZE   0x00400000
 
#define BONITO_SOCKET_TOP   (BONITO_SOCKET_BASE+BONITO_SOCKET_SIZE-1)
 
#define BONITO_REG_BASE   0x1fe00000
 
#define BONITO_REG_SIZE   0x00040000
 
#define BONITO_REG_TOP   (BONITO_REG_BASE+BONITO_REG_SIZE-1)
 
#define BONITO_DEV_BASE   0x1ff00000
 
#define BONITO_DEV_SIZE   0x00100000
 
#define BONITO_DEV_TOP   (BONITO_DEV_BASE+BONITO_DEV_SIZE-1)
 
#define BONITO_PCILO_BASE   0x10000000
 
#define BONITO_PCILO_SIZE   0x0c000000
 
#define BONITO_PCILO_TOP   (BONITO_PCILO_BASE+BONITO_PCILO_SIZE-1)
 
#define BONITO_PCILO0_BASE   0x10000000
 
#define BONITO_PCILO1_BASE   0x14000000
 
#define BONITO_PCILO2_BASE   0x18000000
 
#define BONITO_PCIHI_BASE   0x20000000
 
#define BONITO_PCIHI_SIZE   0x20000000
 
#define BONITO_PCIHI_TOP   (BONITO_PCIHI_BASE+BONITO_PCIHI_SIZE-1)
 
#define BONITO_PCIIO_BASE   0x1fd00000
 
#define BONITO_PCIIO_SIZE   0x00100000
 
#define BONITO_PCIIO_TOP   (BONITO_PCIIO_BASE+BONITO_PCIIO_SIZE-1)
 
#define BONITO_PCICFG_BASE   0x1fe80000
 
#define BONITO_PCICFG_SIZE   0x00080000
 
#define BONITO_PCICFG_TOP   (BONITO_PCICFG_BASE+BONITO_PCICFG_SIZE-1)
 
#define BONITO_PCICONFIGBASE   0x00
 
#define BONITO_REGBASE   0x100
 
#define BONITO_PCI_REG(x)   BONITO(BONITO_PCICONFIGBASE + (x))
 
#define BONITO_PCIDID   BONITO_PCI_REG(0x00)
 
#define BONITO_PCICMD   BONITO_PCI_REG(0x04)
 
#define BONITO_PCICLASS   BONITO_PCI_REG(0x08)
 
#define BONITO_PCILTIMER   BONITO_PCI_REG(0x0c)
 
#define BONITO_PCIBASE0   BONITO_PCI_REG(0x10)
 
#define BONITO_PCIBASE1   BONITO_PCI_REG(0x14)
 
#define BONITO_PCIBASE2   BONITO_PCI_REG(0x18)
 
#define BONITO_PCIEXPRBASE   BONITO_PCI_REG(0x30)
 
#define BONITO_PCIINT   BONITO_PCI_REG(0x3c)
 
#define BONITO_PCICMD_PERR_CLR   0x80000000
 
#define BONITO_PCICMD_SERR_CLR   0x40000000
 
#define BONITO_PCICMD_MABORT_CLR   0x20000000
 
#define BONITO_PCICMD_MTABORT_CLR   0x10000000
 
#define BONITO_PCICMD_TABORT_CLR   0x08000000
 
#define BONITO_PCICMD_MPERR_CLR   0x01000000
 
#define BONITO_PCICMD_PERRRESPEN   0x00000040
 
#define BONITO_PCICMD_ASTEPEN   0x00000080
 
#define BONITO_PCICMD_SERREN   0x00000100
 
#define BONITO_PCILTIMER_BUSLATENCY   0x0000ff00
 
#define BONITO_PCILTIMER_BUSLATENCY_SHIFT   8
 
#define BONITO_BONPONCFG   BONITO(BONITO_REGBASE + 0x00)
 
#define BONITO_BONPONCFG_SYSCONTROLLERRD   0x00040000
 
#define BONITO_BONPONCFG_ROMCS1SAMP   0x00020000
 
#define BONITO_BONPONCFG_ROMCS0SAMP   0x00010000
 
#define BONITO_BONPONCFG_CPUBIGEND   0x00004000
 
#define BONITO_BONPONCFG_BURSTORDER   0x00001000
 
#define BONITO_BONPONCFG_CPUPARITY   0x00002000
 
#define BONITO_BONPONCFG_CPUTYPE   0x00000007
 
#define BONITO_BONPONCFG_CPUTYPE_SHIFT   0
 
#define BONITO_BONPONCFG_PCIRESET_OUT   0x00000008
 
#define BONITO_BONPONCFG_IS_ARBITER   0x00000010
 
#define BONITO_BONPONCFG_ROMBOOT   0x000000c0
 
#define BONITO_BONPONCFG_ROMBOOT_SHIFT   6
 
#define BONITO_BONPONCFG_ROMBOOT_FLASH   (0x0<<BONITO_BONPONCFG_ROMBOOT_SHIFT)
 
#define BONITO_BONPONCFG_ROMBOOT_SOCKET   (0x1<<BONITO_BONPONCFG_ROMBOOT_SHIFT)
 
#define BONITO_BONPONCFG_ROMBOOT_SDRAM   (0x2<<BONITO_BONPONCFG_ROMBOOT_SHIFT)
 
#define BONITO_BONPONCFG_ROMBOOT_CPURESET   (0x3<<BONITO_BONPONCFG_ROMBOOT_SHIFT)
 
#define BONITO_BONPONCFG_ROMCS0WIDTH   0x00000100
 
#define BONITO_BONPONCFG_ROMCS1WIDTH   0x00000200
 
#define BONITO_BONPONCFG_ROMCS0FAST   0x00000400
 
#define BONITO_BONPONCFG_ROMCS1FAST   0x00000800
 
#define BONITO_BONPONCFG_CONFIG_DIS   0x00000020
 
#define BONITO_BONGENCFG_OFFSET   0x4
 
#define BONITO_BONGENCFG   BONITO(BONITO_REGBASE + BONITO_BONGENCFG_OFFSET)
 
#define BONITO_BONGENCFG_DEBUGMODE   0x00000001
 
#define BONITO_BONGENCFG_SNOOPEN   0x00000002
 
#define BONITO_BONGENCFG_CPUSELFRESET   0x00000004
 
#define BONITO_BONGENCFG_FORCE_IRQA   0x00000008
 
#define BONITO_BONGENCFG_IRQA_ISOUT   0x00000010
 
#define BONITO_BONGENCFG_IRQA_FROM_INT1   0x00000020
 
#define BONITO_BONGENCFG_BYTESWAP   0x00000040
 
#define BONITO_BONGENCFG_UNCACHED   0x00000080
 
#define BONITO_BONGENCFG_PREFETCHEN   0x00000100
 
#define BONITO_BONGENCFG_WBEHINDEN   0x00000200
 
#define BONITO_BONGENCFG_CACHEALG   0x00000c00
 
#define BONITO_BONGENCFG_CACHEALG_SHIFT   10
 
#define BONITO_BONGENCFG_PCIQUEUE   0x00001000
 
#define BONITO_BONGENCFG_CACHESTOP   0x00002000
 
#define BONITO_BONGENCFG_MSTRBYTESWAP   0x00004000
 
#define BONITO_BONGENCFG_BUSERREN   0x00008000
 
#define BONITO_BONGENCFG_NORETRYTIMEOUT   0x00010000
 
#define BONITO_BONGENCFG_SHORTCOPYTIMEOUT   0x00020000
 
#define BONITO_IODEVCFG   BONITO(BONITO_REGBASE + 0x08)
 
#define BONITO_SDCFG   BONITO(BONITO_REGBASE + 0x0c)
 
#define BONITO_PCIMAP   BONITO(BONITO_REGBASE + 0x10)
 
#define BONITO_PCIMEMBASECFG   BONITO(BONITO_REGBASE + 0x14)
 
#define BONITO_PCIMAP_CFG   BONITO(BONITO_REGBASE + 0x18)
 
#define BONITO_GPIODATA_OFFSET   0x1c
 
#define BONITO_GPIODATA   BONITO(BONITO_REGBASE + BONITO_GPIODATA_OFFSET)
 
#define BONITO_GPIOIE   BONITO(BONITO_REGBASE + 0x20)
 
#define BONITO_INTEDGE   BONITO(BONITO_REGBASE + 0x24)
 
#define BONITO_INTSTEER   BONITO(BONITO_REGBASE + 0x28)
 
#define BONITO_INTPOL   BONITO(BONITO_REGBASE + 0x2c)
 
#define BONITO_INTENSET   BONITO(BONITO_REGBASE + 0x30)
 
#define BONITO_INTENCLR   BONITO(BONITO_REGBASE + 0x34)
 
#define BONITO_INTEN   BONITO(BONITO_REGBASE + 0x38)
 
#define BONITO_INTISR   BONITO(BONITO_REGBASE + 0x3c)
 
#define BONITO_PCIMAIL0_OFFSET   0x40
 
#define BONITO_PCIMAIL1_OFFSET   0x44
 
#define BONITO_PCIMAIL2_OFFSET   0x48
 
#define BONITO_PCIMAIL3_OFFSET   0x4c
 
#define BONITO_PCIMAIL0   BONITO(BONITO_REGBASE + 0x40)
 
#define BONITO_PCIMAIL1   BONITO(BONITO_REGBASE + 0x44)
 
#define BONITO_PCIMAIL2   BONITO(BONITO_REGBASE + 0x48)
 
#define BONITO_PCIMAIL3   BONITO(BONITO_REGBASE + 0x4c)
 
#define BONITO_PCICACHECTRL   BONITO(BONITO_REGBASE + 0x50)
 
#define BONITO_PCICACHETAG   BONITO(BONITO_REGBASE + 0x54)
 
#define BONITO_PCIBADADDR   BONITO(BONITO_REGBASE + 0x58)
 
#define BONITO_PCIMSTAT   BONITO(BONITO_REGBASE + 0x5c)
 
#define BONITO_CONFIGBASE   0x000
 
#define BONITO_BONITOBASE   0x100
 
#define BONITO_LDMABASE   0x200
 
#define BONITO_COPBASE   0x300
 
#define BONITO_REG_BLOCKMASK   0x300
 
#define BONITO_LDMACTRL   BONITO(BONITO_LDMABASE + 0x0)
 
#define BONITO_LDMASTAT   BONITO(BONITO_LDMABASE + 0x0)
 
#define BONITO_LDMAADDR   BONITO(BONITO_LDMABASE + 0x4)
 
#define BONITO_LDMAGO   BONITO(BONITO_LDMABASE + 0x8)
 
#define BONITO_LDMADATA   BONITO(BONITO_LDMABASE + 0xc)
 
#define BONITO_COPCTRL   BONITO(BONITO_COPBASE + 0x0)
 
#define BONITO_COPSTAT   BONITO(BONITO_COPBASE + 0x0)
 
#define BONITO_COPPADDR   BONITO(BONITO_COPBASE + 0x4)
 
#define BONITO_COPDADDR   BONITO(BONITO_COPBASE + 0x8)
 
#define BONITO_COPGO   BONITO(BONITO_COPBASE + 0xc)
 
#define BONITO_IDECOPDADDR_DMA_DADDR   0x0ffffffc
 
#define BONITO_IDECOPDADDR_DMA_DADDR_SHIFT   2
 
#define BONITO_IDECOPPADDR_DMA_PADDR   0xfffffffc
 
#define BONITO_IDECOPPADDR_DMA_PADDR_SHIFT   2
 
#define BONITO_IDECOPGO_DMA_SIZE   0x0000fffe
 
#define BONITO_IDECOPGO_DMA_SIZE_SHIFT   0
 
#define BONITO_IDECOPGO_DMA_WRITE   0x00010000
 
#define BONITO_IDECOPGO_DMAWCOUNT   0x000f0000
 
#define BONITO_IDECOPGO_DMAWCOUNT_SHIFT   16
 
#define BONITO_IDECOPCTRL_DMA_STARTBIT   0x80000000
 
#define BONITO_IDECOPCTRL_DMA_RSTBIT   0x40000000
 
#define BONITO_SDCFG_AROWBITS   0x00000003
 
#define BONITO_SDCFG_AROWBITS_SHIFT   0
 
#define BONITO_SDCFG_ACOLBITS   0x0000000c
 
#define BONITO_SDCFG_ACOLBITS_SHIFT   2
 
#define BONITO_SDCFG_ABANKBIT   0x00000010
 
#define BONITO_SDCFG_ASIDES   0x00000020
 
#define BONITO_SDCFG_AABSENT   0x00000040
 
#define BONITO_SDCFG_AWIDTH64   0x00000080
 
#define BONITO_SDCFG_BROWBITS   0x00000300
 
#define BONITO_SDCFG_BROWBITS_SHIFT   8
 
#define BONITO_SDCFG_BCOLBITS   0x00000c00
 
#define BONITO_SDCFG_BCOLBITS_SHIFT   10
 
#define BONITO_SDCFG_BBANKBIT   0x00001000
 
#define BONITO_SDCFG_BSIDES   0x00002000
 
#define BONITO_SDCFG_BABSENT   0x00004000
 
#define BONITO_SDCFG_BWIDTH64   0x00008000
 
#define BONITO_SDCFG_EXTRDDATA   0x00010000
 
#define BONITO_SDCFG_EXTRASCAS   0x00020000
 
#define BONITO_SDCFG_EXTPRECH   0x00040000
 
#define BONITO_SDCFG_EXTRASWIDTH   0x00180000
 
#define BONITO_SDCFG_EXTRASWIDTH_SHIFT   19
 
#define BONITO_SDCFG_DRAMMODESET   0x00200000
 
#define BONITO_SDCFG_DRAMEXTREGS   0x00400000
 
#define BONITO_SDCFG_DRAMPARITY   0x00800000
 
#define BONITO_SDCFG_DRAMBURSTLEN   0x03000000
 
#define BONITO_SDCFG_DRAMBURSTLEN_SHIFT   24
 
#define BONITO_SDCFG_DRAMMODESET_DONE   0x80000000
 
#define BONITO_PCICACHECTRL_CACHECMD   0x00000007
 
#define BONITO_PCICACHECTRL_CACHECMD_SHIFT   0
 
#define BONITO_PCICACHECTRL_CACHECMDLINE   0x00000018
 
#define BONITO_PCICACHECTRL_CACHECMDLINE_SHIFT   3
 
#define BONITO_PCICACHECTRL_CMDEXEC   0x00000020
 
#define BONITO_PCICACHECTRL_IOBCCOH_PRES   0x00000100
 
#define BONITO_PCICACHECTRL_IOBCCOH_EN   0x00000200
 
#define BONITO_PCICACHECTRL_CPUCOH_PRES   0x00000400
 
#define BONITO_PCICACHECTRL_CPUCOH_EN   0x00000800
 
#define BONITO_IODEVCFG_BUFFBIT_CS0   0x00000001
 
#define BONITO_IODEVCFG_SPEEDBIT_CS0   0x00000002
 
#define BONITO_IODEVCFG_MOREABITS_CS0   0x00000004
 
#define BONITO_IODEVCFG_BUFFBIT_CS1   0x00000008
 
#define BONITO_IODEVCFG_SPEEDBIT_CS1   0x00000010
 
#define BONITO_IODEVCFG_MOREABITS_CS1   0x00000020
 
#define BONITO_IODEVCFG_BUFFBIT_CS2   0x00000040
 
#define BONITO_IODEVCFG_SPEEDBIT_CS2   0x00000080
 
#define BONITO_IODEVCFG_MOREABITS_CS2   0x00000100
 
#define BONITO_IODEVCFG_BUFFBIT_CS3   0x00000200
 
#define BONITO_IODEVCFG_SPEEDBIT_CS3   0x00000400
 
#define BONITO_IODEVCFG_MOREABITS_CS3   0x00000800
 
#define BONITO_IODEVCFG_BUFFBIT_IDE   0x00001000
 
#define BONITO_IODEVCFG_SPEEDBIT_IDE   0x00002000
 
#define BONITO_IODEVCFG_WORDSWAPBIT_IDE   0x00004000
 
#define BONITO_IODEVCFG_MODEBIT_IDE   0x00008000
 
#define BONITO_IODEVCFG_DMAON_IDE   0x001f0000
 
#define BONITO_IODEVCFG_DMAON_IDE_SHIFT   16
 
#define BONITO_IODEVCFG_DMAOFF_IDE   0x01e00000
 
#define BONITO_IODEVCFG_DMAOFF_IDE_SHIFT   21
 
#define BONITO_IODEVCFG_EPROMSPLIT   0x02000000
 
#define BONITO_IODEVCFG_CPUCLOCKPERIOD   0xfc000000
 
#define BONITO_IODEVCFG_CPUCLOCKPERIOD_SHIFT   26
 
#define BONITO_GPIO_GPIOW   0x000003ff
 
#define BONITO_GPIO_GPIOW_SHIFT   0
 
#define BONITO_GPIO_GPIOR   0x01ff0000
 
#define BONITO_GPIO_GPIOR_SHIFT   16
 
#define BONITO_GPIO_GPINR   0xfe000000
 
#define BONITO_GPIO_GPINR_SHIFT   25
 
#define BONITO_GPIO_IOW(N)   (1<<(BONITO_GPIO_GPIOW_SHIFT+(N)))
 
#define BONITO_GPIO_IOR(N)   (1<<(BONITO_GPIO_GPIOR_SHIFT+(N)))
 
#define BONITO_GPIO_INR(N)   (1<<(BONITO_GPIO_GPINR_SHIFT+(N)))
 
#define BONITO_ICU_MBOXES   0x0000000f
 
#define BONITO_ICU_MBOXES_SHIFT   0
 
#define BONITO_ICU_DMARDY   0x00000010
 
#define BONITO_ICU_DMAEMPTY   0x00000020
 
#define BONITO_ICU_COPYRDY   0x00000040
 
#define BONITO_ICU_COPYEMPTY   0x00000080
 
#define BONITO_ICU_COPYERR   0x00000100
 
#define BONITO_ICU_PCIIRQ   0x00000200
 
#define BONITO_ICU_MASTERERR   0x00000400
 
#define BONITO_ICU_SYSTEMERR   0x00000800
 
#define BONITO_ICU_DRAMPERR   0x00001000
 
#define BONITO_ICU_RETRYERR   0x00002000
 
#define BONITO_ICU_GPIOS   0x01ff0000
 
#define BONITO_ICU_GPIOS_SHIFT   16
 
#define BONITO_ICU_GPINS   0x7e000000
 
#define BONITO_ICU_GPINS_SHIFT   25
 
#define BONITO_ICU_MBOX(N)   (1<<(BONITO_ICU_MBOXES_SHIFT+(N)))
 
#define BONITO_ICU_GPIO(N)   (1<<(BONITO_ICU_GPIOS_SHIFT+(N)))
 
#define BONITO_ICU_GPIN(N)   (1<<(BONITO_ICU_GPINS_SHIFT+(N)))
 
#define BONITO_PCIMAP_PCIMAP_LO0   0x0000003f
 
#define BONITO_PCIMAP_PCIMAP_LO0_SHIFT   0
 
#define BONITO_PCIMAP_PCIMAP_LO1   0x00000fc0
 
#define BONITO_PCIMAP_PCIMAP_LO1_SHIFT   6
 
#define BONITO_PCIMAP_PCIMAP_LO2   0x0003f000
 
#define BONITO_PCIMAP_PCIMAP_LO2_SHIFT   12
 
#define BONITO_PCIMAP_PCIMAP_2   0x00040000
 
#define BONITO_PCIMAP_WIN(WIN, ADDR)   ((((ADDR)>>26) & BONITO_PCIMAP_PCIMAP_LO0) << ((WIN)*6))
 
#define BONITO_PCIMAP_WINSIZE   (1<<26)
 
#define BONITO_PCIMAP_WINOFFSET(ADDR)   ((ADDR) & (BONITO_PCIMAP_WINSIZE - 1))
 
#define BONITO_PCIMAP_WINBASE(ADDR)   ((ADDR) << 26)
 
#define BONITO_PCIMEMBASECFG_MASK   0xf0000000
 
#define BONITO_PCIMEMBASECFG_MEMBASE0_MASK   0x0000001f
 
#define BONITO_PCIMEMBASECFG_MEMBASE0_MASK_SHIFT   0
 
#define BONITO_PCIMEMBASECFG_MEMBASE0_TRANS   0x000003e0
 
#define BONITO_PCIMEMBASECFG_MEMBASE0_TRANS_SHIFT   5
 
#define BONITO_PCIMEMBASECFG_MEMBASE0_CACHED   0x00000400
 
#define BONITO_PCIMEMBASECFG_MEMBASE0_IO   0x00000800
 
#define BONITO_PCIMEMBASECFG_MEMBASE1_MASK   0x0001f000
 
#define BONITO_PCIMEMBASECFG_MEMBASE1_MASK_SHIFT   12
 
#define BONITO_PCIMEMBASECFG_MEMBASE1_TRANS   0x003e0000
 
#define BONITO_PCIMEMBASECFG_MEMBASE1_TRANS_SHIFT   17
 
#define BONITO_PCIMEMBASECFG_MEMBASE1_CACHED   0x00400000
 
#define BONITO_PCIMEMBASECFG_MEMBASE1_IO   0x00800000
 
#define BONITO_PCIMEMBASECFG_ASHIFT   23
 
#define BONITO_PCIMEMBASECFG_AMASK   0x007fffff
 
#define BONITO_PCIMEMBASECFGSIZE(WIN, SIZE)   (((~((SIZE)-1))>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK)
 
#define BONITO_PCIMEMBASECFGBASE(WIN, BASE)   (((BASE)>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS)
 
#define BONITO_PCIMEMBASECFG_SIZE(WIN, CFG)   (((((~(CFG)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK)) << (BONITO_PCIMEMBASECFG_ASHIFT - BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) | BONITO_PCIMEMBASECFG_AMASK)
 
#define BONITO_PCIMEMBASECFG_ADDRMASK(WIN, CFG)   ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT)
 
#define BONITO_PCIMEMBASECFG_ADDRMASK(WIN, CFG)   ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT)
 
#define BONITO_PCIMEMBASECFG_ADDRTRANS(WIN, CFG)   ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT)
 
#define BONITO_PCITOPHYS(WIN, ADDR, CFG)
 
#define BONITO_PCICMD_MEMEN   0x00000002
 
#define BONITO_PCICMD_MSTREN   0x00000004
 

Variables

unsigned long _pcictrl_bonito
 
unsigned long _pcictrl_bonito_pcicfg
 

Macro Definition Documentation

#define BONITO (   x)    *(volatile u32 *)(_pcictrl_bonito + (x))

Definition at line 37 of file bonito64.h.

#define BONITO_BONGENCFG   BONITO(BONITO_REGBASE + BONITO_BONGENCFG_OFFSET)

Definition at line 143 of file bonito64.h.

#define BONITO_BONGENCFG_BUSERREN   0x00008000

Definition at line 162 of file bonito64.h.

#define BONITO_BONGENCFG_BYTESWAP   0x00000040

Definition at line 152 of file bonito64.h.

#define BONITO_BONGENCFG_CACHEALG   0x00000c00

Definition at line 157 of file bonito64.h.

#define BONITO_BONGENCFG_CACHEALG_SHIFT   10

Definition at line 158 of file bonito64.h.

#define BONITO_BONGENCFG_CACHESTOP   0x00002000

Definition at line 160 of file bonito64.h.

#define BONITO_BONGENCFG_CPUSELFRESET   0x00000004

Definition at line 147 of file bonito64.h.

#define BONITO_BONGENCFG_DEBUGMODE   0x00000001

Definition at line 145 of file bonito64.h.

#define BONITO_BONGENCFG_FORCE_IRQA   0x00000008

Definition at line 149 of file bonito64.h.

#define BONITO_BONGENCFG_IRQA_FROM_INT1   0x00000020

Definition at line 151 of file bonito64.h.

#define BONITO_BONGENCFG_IRQA_ISOUT   0x00000010

Definition at line 150 of file bonito64.h.

#define BONITO_BONGENCFG_MSTRBYTESWAP   0x00004000

Definition at line 161 of file bonito64.h.

#define BONITO_BONGENCFG_NORETRYTIMEOUT   0x00010000

Definition at line 163 of file bonito64.h.

#define BONITO_BONGENCFG_OFFSET   0x4

Definition at line 142 of file bonito64.h.

#define BONITO_BONGENCFG_PCIQUEUE   0x00001000

Definition at line 159 of file bonito64.h.

#define BONITO_BONGENCFG_PREFETCHEN   0x00000100

Definition at line 155 of file bonito64.h.

#define BONITO_BONGENCFG_SHORTCOPYTIMEOUT   0x00020000

Definition at line 164 of file bonito64.h.

#define BONITO_BONGENCFG_SNOOPEN   0x00000002

Definition at line 146 of file bonito64.h.

#define BONITO_BONGENCFG_UNCACHED   0x00000080

Definition at line 154 of file bonito64.h.

#define BONITO_BONGENCFG_WBEHINDEN   0x00000200

Definition at line 156 of file bonito64.h.

#define BONITO_BONITOBASE   0x100

Definition at line 230 of file bonito64.h.

#define BONITO_BONPONCFG   BONITO(BONITO_REGBASE + 0x00)

Definition at line 111 of file bonito64.h.

#define BONITO_BONPONCFG_BURSTORDER   0x00001000

Definition at line 118 of file bonito64.h.

#define BONITO_BONPONCFG_CONFIG_DIS   0x00000020

Definition at line 137 of file bonito64.h.

#define BONITO_BONPONCFG_CPUBIGEND   0x00004000

Definition at line 116 of file bonito64.h.

#define BONITO_BONPONCFG_CPUPARITY   0x00002000

Definition at line 120 of file bonito64.h.

#define BONITO_BONPONCFG_CPUTYPE   0x00000007

Definition at line 121 of file bonito64.h.

#define BONITO_BONPONCFG_CPUTYPE_SHIFT   0

Definition at line 122 of file bonito64.h.

#define BONITO_BONPONCFG_IS_ARBITER   0x00000010

Definition at line 124 of file bonito64.h.

#define BONITO_BONPONCFG_PCIRESET_OUT   0x00000008

Definition at line 123 of file bonito64.h.

#define BONITO_BONPONCFG_ROMBOOT   0x000000c0

Definition at line 125 of file bonito64.h.

#define BONITO_BONPONCFG_ROMBOOT_CPURESET   (0x3<<BONITO_BONPONCFG_ROMBOOT_SHIFT)

Definition at line 131 of file bonito64.h.

#define BONITO_BONPONCFG_ROMBOOT_FLASH   (0x0<<BONITO_BONPONCFG_ROMBOOT_SHIFT)

Definition at line 128 of file bonito64.h.

#define BONITO_BONPONCFG_ROMBOOT_SDRAM   (0x2<<BONITO_BONPONCFG_ROMBOOT_SHIFT)

Definition at line 130 of file bonito64.h.

#define BONITO_BONPONCFG_ROMBOOT_SHIFT   6

Definition at line 126 of file bonito64.h.

#define BONITO_BONPONCFG_ROMBOOT_SOCKET   (0x1<<BONITO_BONPONCFG_ROMBOOT_SHIFT)

Definition at line 129 of file bonito64.h.

#define BONITO_BONPONCFG_ROMCS0FAST   0x00000400

Definition at line 135 of file bonito64.h.

#define BONITO_BONPONCFG_ROMCS0SAMP   0x00010000

Definition at line 115 of file bonito64.h.

#define BONITO_BONPONCFG_ROMCS0WIDTH   0x00000100

Definition at line 133 of file bonito64.h.

#define BONITO_BONPONCFG_ROMCS1FAST   0x00000800

Definition at line 136 of file bonito64.h.

#define BONITO_BONPONCFG_ROMCS1SAMP   0x00020000

Definition at line 114 of file bonito64.h.

#define BONITO_BONPONCFG_ROMCS1WIDTH   0x00000200

Definition at line 134 of file bonito64.h.

#define BONITO_BONPONCFG_SYSCONTROLLERRD   0x00040000

Definition at line 113 of file bonito64.h.

#define BONITO_BOOT_BASE   0x1fc00000

Definition at line 42 of file bonito64.h.

#define BONITO_BOOT_SIZE   0x00100000

Definition at line 43 of file bonito64.h.

#define BONITO_BOOT_TOP   (BONITO_BOOT_BASE+BONITO_BOOT_SIZE-1)

Definition at line 44 of file bonito64.h.

#define BONITO_CONFIGBASE   0x000

Definition at line 229 of file bonito64.h.

#define BONITO_COPBASE   0x300

Definition at line 232 of file bonito64.h.

#define BONITO_COPCTRL   BONITO(BONITO_COPBASE + 0x0)

Definition at line 241 of file bonito64.h.

#define BONITO_COPDADDR   BONITO(BONITO_COPBASE + 0x8)

Definition at line 244 of file bonito64.h.

#define BONITO_COPGO   BONITO(BONITO_COPBASE + 0xc)

Definition at line 245 of file bonito64.h.

#define BONITO_COPPADDR   BONITO(BONITO_COPBASE + 0x4)

Definition at line 243 of file bonito64.h.

#define BONITO_COPSTAT   BONITO(BONITO_COPBASE + 0x0)

Definition at line 242 of file bonito64.h.

#define BONITO_DEV_BASE   0x1ff00000

Definition at line 54 of file bonito64.h.

#define BONITO_DEV_SIZE   0x00100000

Definition at line 55 of file bonito64.h.

#define BONITO_DEV_TOP   (BONITO_DEV_BASE+BONITO_DEV_SIZE-1)

Definition at line 56 of file bonito64.h.

#define BONITO_FLASH_BASE   0x1c000000

Definition at line 45 of file bonito64.h.

#define BONITO_FLASH_SIZE   0x03000000

Definition at line 46 of file bonito64.h.

#define BONITO_FLASH_TOP   (BONITO_FLASH_BASE+BONITO_FLASH_SIZE-1)

Definition at line 47 of file bonito64.h.

#define BONITO_GPIO_GPINR   0xfe000000

Definition at line 349 of file bonito64.h.

#define BONITO_GPIO_GPINR_SHIFT   25

Definition at line 350 of file bonito64.h.

#define BONITO_GPIO_GPIOR   0x01ff0000

Definition at line 347 of file bonito64.h.

#define BONITO_GPIO_GPIOR_SHIFT   16

Definition at line 348 of file bonito64.h.

#define BONITO_GPIO_GPIOW   0x000003ff

Definition at line 345 of file bonito64.h.

#define BONITO_GPIO_GPIOW_SHIFT   0

Definition at line 346 of file bonito64.h.

#define BONITO_GPIO_INR (   N)    (1<<(BONITO_GPIO_GPINR_SHIFT+(N)))

Definition at line 353 of file bonito64.h.

#define BONITO_GPIO_IOR (   N)    (1<<(BONITO_GPIO_GPIOR_SHIFT+(N)))

Definition at line 352 of file bonito64.h.

#define BONITO_GPIO_IOW (   N)    (1<<(BONITO_GPIO_GPIOW_SHIFT+(N)))

Definition at line 351 of file bonito64.h.

#define BONITO_GPIODATA   BONITO(BONITO_REGBASE + BONITO_GPIODATA_OFFSET)

Definition at line 185 of file bonito64.h.

#define BONITO_GPIODATA_OFFSET   0x1c

Definition at line 184 of file bonito64.h.

#define BONITO_GPIOIE   BONITO(BONITO_REGBASE + 0x20)

Definition at line 186 of file bonito64.h.

#define BONITO_ICU_COPYEMPTY   0x00000080

Definition at line 361 of file bonito64.h.

#define BONITO_ICU_COPYERR   0x00000100

Definition at line 362 of file bonito64.h.

#define BONITO_ICU_COPYRDY   0x00000040

Definition at line 360 of file bonito64.h.

#define BONITO_ICU_DMAEMPTY   0x00000020

Definition at line 359 of file bonito64.h.

#define BONITO_ICU_DMARDY   0x00000010

Definition at line 358 of file bonito64.h.

#define BONITO_ICU_DRAMPERR   0x00001000

Definition at line 366 of file bonito64.h.

#define BONITO_ICU_GPIN (   N)    (1<<(BONITO_ICU_GPINS_SHIFT+(N)))

Definition at line 374 of file bonito64.h.

#define BONITO_ICU_GPINS   0x7e000000

Definition at line 370 of file bonito64.h.

#define BONITO_ICU_GPINS_SHIFT   25

Definition at line 371 of file bonito64.h.

#define BONITO_ICU_GPIO (   N)    (1<<(BONITO_ICU_GPIOS_SHIFT+(N)))

Definition at line 373 of file bonito64.h.

#define BONITO_ICU_GPIOS   0x01ff0000

Definition at line 368 of file bonito64.h.

#define BONITO_ICU_GPIOS_SHIFT   16

Definition at line 369 of file bonito64.h.

#define BONITO_ICU_MASTERERR   0x00000400

Definition at line 364 of file bonito64.h.

#define BONITO_ICU_MBOX (   N)    (1<<(BONITO_ICU_MBOXES_SHIFT+(N)))

Definition at line 372 of file bonito64.h.

#define BONITO_ICU_MBOXES   0x0000000f

Definition at line 356 of file bonito64.h.

#define BONITO_ICU_MBOXES_SHIFT   0

Definition at line 357 of file bonito64.h.

#define BONITO_ICU_PCIIRQ   0x00000200

Definition at line 363 of file bonito64.h.

#define BONITO_ICU_RETRYERR   0x00002000

Definition at line 367 of file bonito64.h.

#define BONITO_ICU_SYSTEMERR   0x00000800

Definition at line 365 of file bonito64.h.

#define BONITO_IDECOPCTRL_DMA_RSTBIT   0x40000000

Definition at line 263 of file bonito64.h.

#define BONITO_IDECOPCTRL_DMA_STARTBIT   0x80000000

Definition at line 262 of file bonito64.h.

#define BONITO_IDECOPDADDR_DMA_DADDR   0x0ffffffc

Definition at line 252 of file bonito64.h.

#define BONITO_IDECOPDADDR_DMA_DADDR_SHIFT   2

Definition at line 253 of file bonito64.h.

#define BONITO_IDECOPGO_DMA_SIZE   0x0000fffe

Definition at line 256 of file bonito64.h.

#define BONITO_IDECOPGO_DMA_SIZE_SHIFT   0

Definition at line 257 of file bonito64.h.

#define BONITO_IDECOPGO_DMA_WRITE   0x00010000

Definition at line 258 of file bonito64.h.

#define BONITO_IDECOPGO_DMAWCOUNT   0x000f0000

Definition at line 259 of file bonito64.h.

#define BONITO_IDECOPGO_DMAWCOUNT_SHIFT   16

Definition at line 260 of file bonito64.h.

#define BONITO_IDECOPPADDR_DMA_PADDR   0xfffffffc

Definition at line 254 of file bonito64.h.

#define BONITO_IDECOPPADDR_DMA_PADDR_SHIFT   2

Definition at line 255 of file bonito64.h.

#define BONITO_INTEDGE   BONITO(BONITO_REGBASE + 0x24)

Definition at line 190 of file bonito64.h.

#define BONITO_INTEN   BONITO(BONITO_REGBASE + 0x38)

Definition at line 198 of file bonito64.h.

#define BONITO_INTENCLR   BONITO(BONITO_REGBASE + 0x34)

Definition at line 197 of file bonito64.h.

#define BONITO_INTENSET   BONITO(BONITO_REGBASE + 0x30)

Definition at line 196 of file bonito64.h.

#define BONITO_INTISR   BONITO(BONITO_REGBASE + 0x3c)

Definition at line 199 of file bonito64.h.

#define BONITO_INTPOL   BONITO(BONITO_REGBASE + 0x2c)

Definition at line 192 of file bonito64.h.

#define BONITO_INTSTEER   BONITO(BONITO_REGBASE + 0x28)

Definition at line 191 of file bonito64.h.

#define BONITO_IODEVCFG   BONITO(BONITO_REGBASE + 0x08)

Definition at line 168 of file bonito64.h.

#define BONITO_IODEVCFG_BUFFBIT_CS0   0x00000001

Definition at line 314 of file bonito64.h.

#define BONITO_IODEVCFG_BUFFBIT_CS1   0x00000008

Definition at line 318 of file bonito64.h.

#define BONITO_IODEVCFG_BUFFBIT_CS2   0x00000040

Definition at line 322 of file bonito64.h.

#define BONITO_IODEVCFG_BUFFBIT_CS3   0x00000200

Definition at line 326 of file bonito64.h.

#define BONITO_IODEVCFG_BUFFBIT_IDE   0x00001000

Definition at line 330 of file bonito64.h.

#define BONITO_IODEVCFG_CPUCLOCKPERIOD   0xfc000000

Definition at line 340 of file bonito64.h.

#define BONITO_IODEVCFG_CPUCLOCKPERIOD_SHIFT   26

Definition at line 341 of file bonito64.h.

#define BONITO_IODEVCFG_DMAOFF_IDE   0x01e00000

Definition at line 336 of file bonito64.h.

#define BONITO_IODEVCFG_DMAOFF_IDE_SHIFT   21

Definition at line 337 of file bonito64.h.

#define BONITO_IODEVCFG_DMAON_IDE   0x001f0000

Definition at line 334 of file bonito64.h.

#define BONITO_IODEVCFG_DMAON_IDE_SHIFT   16

Definition at line 335 of file bonito64.h.

#define BONITO_IODEVCFG_EPROMSPLIT   0x02000000

Definition at line 338 of file bonito64.h.

#define BONITO_IODEVCFG_MODEBIT_IDE   0x00008000

Definition at line 333 of file bonito64.h.

#define BONITO_IODEVCFG_MOREABITS_CS0   0x00000004

Definition at line 316 of file bonito64.h.

#define BONITO_IODEVCFG_MOREABITS_CS1   0x00000020

Definition at line 320 of file bonito64.h.

#define BONITO_IODEVCFG_MOREABITS_CS2   0x00000100

Definition at line 324 of file bonito64.h.

#define BONITO_IODEVCFG_MOREABITS_CS3   0x00000800

Definition at line 328 of file bonito64.h.

#define BONITO_IODEVCFG_SPEEDBIT_CS0   0x00000002

Definition at line 315 of file bonito64.h.

#define BONITO_IODEVCFG_SPEEDBIT_CS1   0x00000010

Definition at line 319 of file bonito64.h.

#define BONITO_IODEVCFG_SPEEDBIT_CS2   0x00000080

Definition at line 323 of file bonito64.h.

#define BONITO_IODEVCFG_SPEEDBIT_CS3   0x00000400

Definition at line 327 of file bonito64.h.

#define BONITO_IODEVCFG_SPEEDBIT_IDE   0x00002000

Definition at line 331 of file bonito64.h.

#define BONITO_IODEVCFG_WORDSWAPBIT_IDE   0x00004000

Definition at line 332 of file bonito64.h.

#define BONITO_LDMAADDR   BONITO(BONITO_LDMABASE + 0x4)

Definition at line 237 of file bonito64.h.

#define BONITO_LDMABASE   0x200

Definition at line 231 of file bonito64.h.

#define BONITO_LDMACTRL   BONITO(BONITO_LDMABASE + 0x0)

Definition at line 235 of file bonito64.h.

#define BONITO_LDMADATA   BONITO(BONITO_LDMABASE + 0xc)

Definition at line 239 of file bonito64.h.

#define BONITO_LDMAGO   BONITO(BONITO_LDMABASE + 0x8)

Definition at line 238 of file bonito64.h.

#define BONITO_LDMASTAT   BONITO(BONITO_LDMABASE + 0x0)

Definition at line 236 of file bonito64.h.

#define BONITO_PCI_REG (   x)    BONITO(BONITO_PCICONFIGBASE + (x))

Definition at line 82 of file bonito64.h.

#define BONITO_PCIBADADDR   BONITO(BONITO_REGBASE + 0x58)

Definition at line 218 of file bonito64.h.

#define BONITO_PCIBASE0   BONITO_PCI_REG(0x10)

Definition at line 87 of file bonito64.h.

#define BONITO_PCIBASE1   BONITO_PCI_REG(0x14)

Definition at line 88 of file bonito64.h.

#define BONITO_PCIBASE2   BONITO_PCI_REG(0x18)

Definition at line 89 of file bonito64.h.

#define BONITO_PCICACHECTRL   BONITO(BONITO_REGBASE + 0x50)

Definition at line 215 of file bonito64.h.

#define BONITO_PCICACHECTRL_CACHECMD   0x00000007

Definition at line 303 of file bonito64.h.

#define BONITO_PCICACHECTRL_CACHECMD_SHIFT   0

Definition at line 304 of file bonito64.h.

#define BONITO_PCICACHECTRL_CACHECMDLINE   0x00000018

Definition at line 305 of file bonito64.h.

#define BONITO_PCICACHECTRL_CACHECMDLINE_SHIFT   3

Definition at line 306 of file bonito64.h.

#define BONITO_PCICACHECTRL_CMDEXEC   0x00000020

Definition at line 307 of file bonito64.h.

#define BONITO_PCICACHECTRL_CPUCOH_EN   0x00000800

Definition at line 312 of file bonito64.h.

#define BONITO_PCICACHECTRL_CPUCOH_PRES   0x00000400

Definition at line 311 of file bonito64.h.

#define BONITO_PCICACHECTRL_IOBCCOH_EN   0x00000200

Definition at line 310 of file bonito64.h.

#define BONITO_PCICACHECTRL_IOBCCOH_PRES   0x00000100

Definition at line 309 of file bonito64.h.

#define BONITO_PCICACHETAG   BONITO(BONITO_REGBASE + 0x54)

Definition at line 216 of file bonito64.h.

#define BONITO_PCICFG_BASE   0x1fe80000

Definition at line 69 of file bonito64.h.

#define BONITO_PCICFG_SIZE   0x00080000

Definition at line 70 of file bonito64.h.

#define BONITO_PCICFG_TOP   (BONITO_PCICFG_BASE+BONITO_PCICFG_SIZE-1)

Definition at line 71 of file bonito64.h.

#define BONITO_PCICLASS   BONITO_PCI_REG(0x08)

Definition at line 85 of file bonito64.h.

#define BONITO_PCICMD   BONITO_PCI_REG(0x04)

Definition at line 84 of file bonito64.h.

#define BONITO_PCICMD_ASTEPEN   0x00000080

Definition at line 100 of file bonito64.h.

#define BONITO_PCICMD_MABORT_CLR   0x20000000

Definition at line 95 of file bonito64.h.

#define BONITO_PCICMD_MEMEN   0x00000002

Definition at line 427 of file bonito64.h.

#define BONITO_PCICMD_MPERR_CLR   0x01000000

Definition at line 98 of file bonito64.h.

#define BONITO_PCICMD_MSTREN   0x00000004

Definition at line 428 of file bonito64.h.

#define BONITO_PCICMD_MTABORT_CLR   0x10000000

Definition at line 96 of file bonito64.h.

#define BONITO_PCICMD_PERR_CLR   0x80000000

Definition at line 93 of file bonito64.h.

#define BONITO_PCICMD_PERRRESPEN   0x00000040

Definition at line 99 of file bonito64.h.

#define BONITO_PCICMD_SERR_CLR   0x40000000

Definition at line 94 of file bonito64.h.

#define BONITO_PCICMD_SERREN   0x00000100

Definition at line 101 of file bonito64.h.

#define BONITO_PCICMD_TABORT_CLR   0x08000000

Definition at line 97 of file bonito64.h.

#define BONITO_PCICONFIGBASE   0x00

Definition at line 76 of file bonito64.h.

#define BONITO_PCIDID   BONITO_PCI_REG(0x00)

Definition at line 83 of file bonito64.h.

#define BONITO_PCIEXPRBASE   BONITO_PCI_REG(0x30)

Definition at line 90 of file bonito64.h.

#define BONITO_PCIHI_BASE   0x20000000

Definition at line 63 of file bonito64.h.

#define BONITO_PCIHI_SIZE   0x20000000

Definition at line 64 of file bonito64.h.

#define BONITO_PCIHI_TOP   (BONITO_PCIHI_BASE+BONITO_PCIHI_SIZE-1)

Definition at line 65 of file bonito64.h.

#define BONITO_PCIINT   BONITO_PCI_REG(0x3c)

Definition at line 91 of file bonito64.h.

#define BONITO_PCIIO_BASE   0x1fd00000

Definition at line 66 of file bonito64.h.

#define BONITO_PCIIO_SIZE   0x00100000

Definition at line 67 of file bonito64.h.

#define BONITO_PCIIO_TOP   (BONITO_PCIIO_BASE+BONITO_PCIIO_SIZE-1)

Definition at line 68 of file bonito64.h.

#define BONITO_PCILO0_BASE   0x10000000

Definition at line 60 of file bonito64.h.

#define BONITO_PCILO1_BASE   0x14000000

Definition at line 61 of file bonito64.h.

#define BONITO_PCILO2_BASE   0x18000000

Definition at line 62 of file bonito64.h.

#define BONITO_PCILO_BASE   0x10000000

Definition at line 57 of file bonito64.h.

#define BONITO_PCILO_SIZE   0x0c000000

Definition at line 58 of file bonito64.h.

#define BONITO_PCILO_TOP   (BONITO_PCILO_BASE+BONITO_PCILO_SIZE-1)

Definition at line 59 of file bonito64.h.

#define BONITO_PCILTIMER   BONITO_PCI_REG(0x0c)

Definition at line 86 of file bonito64.h.

#define BONITO_PCILTIMER_BUSLATENCY   0x0000ff00

Definition at line 102 of file bonito64.h.

#define BONITO_PCILTIMER_BUSLATENCY_SHIFT   8

Definition at line 103 of file bonito64.h.

#define BONITO_PCIMAIL0   BONITO(BONITO_REGBASE + 0x40)

Definition at line 207 of file bonito64.h.

#define BONITO_PCIMAIL0_OFFSET   0x40

Definition at line 203 of file bonito64.h.

#define BONITO_PCIMAIL1   BONITO(BONITO_REGBASE + 0x44)

Definition at line 208 of file bonito64.h.

#define BONITO_PCIMAIL1_OFFSET   0x44

Definition at line 204 of file bonito64.h.

#define BONITO_PCIMAIL2   BONITO(BONITO_REGBASE + 0x48)

Definition at line 209 of file bonito64.h.

#define BONITO_PCIMAIL2_OFFSET   0x48

Definition at line 205 of file bonito64.h.

#define BONITO_PCIMAIL3   BONITO(BONITO_REGBASE + 0x4c)

Definition at line 210 of file bonito64.h.

#define BONITO_PCIMAIL3_OFFSET   0x4c

Definition at line 206 of file bonito64.h.

#define BONITO_PCIMAP   BONITO(BONITO_REGBASE + 0x10)

Definition at line 176 of file bonito64.h.

#define BONITO_PCIMAP_CFG   BONITO(BONITO_REGBASE + 0x18)

Definition at line 178 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_2   0x00040000

Definition at line 384 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_LO0   0x0000003f

Definition at line 378 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_LO0_SHIFT   0

Definition at line 379 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_LO1   0x00000fc0

Definition at line 380 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_LO1_SHIFT   6

Definition at line 381 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_LO2   0x0003f000

Definition at line 382 of file bonito64.h.

#define BONITO_PCIMAP_PCIMAP_LO2_SHIFT   12

Definition at line 383 of file bonito64.h.

#define BONITO_PCIMAP_WIN (   WIN,
  ADDR 
)    ((((ADDR)>>26) & BONITO_PCIMAP_PCIMAP_LO0) << ((WIN)*6))

Definition at line 385 of file bonito64.h.

#define BONITO_PCIMAP_WINBASE (   ADDR)    ((ADDR) << 26)

Definition at line 389 of file bonito64.h.

#define BONITO_PCIMAP_WINOFFSET (   ADDR)    ((ADDR) & (BONITO_PCIMAP_WINSIZE - 1))

Definition at line 388 of file bonito64.h.

#define BONITO_PCIMAP_WINSIZE   (1<<26)

Definition at line 387 of file bonito64.h.

#define BONITO_PCIMEMBASECFG   BONITO(BONITO_REGBASE + 0x14)

Definition at line 177 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_ADDRMASK (   WIN,
  CFG 
)    ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT)

Definition at line 417 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_ADDRMASK (   WIN,
  CFG 
)    ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT)

Definition at line 417 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_ADDRTRANS (   WIN,
  CFG 
)    ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT)

Definition at line 418 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_AMASK   0x007fffff

Definition at line 409 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_ASHIFT   23

Definition at line 408 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MASK   0xf0000000

Definition at line 393 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE0_CACHED   0x00000400

Definition at line 398 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE0_IO   0x00000800

Definition at line 399 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE0_MASK   0x0000001f

Definition at line 394 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE0_MASK_SHIFT   0

Definition at line 395 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE0_TRANS   0x000003e0

Definition at line 396 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE0_TRANS_SHIFT   5

Definition at line 397 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE1_CACHED   0x00400000

Definition at line 405 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE1_IO   0x00800000

Definition at line 406 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE1_MASK   0x0001f000

Definition at line 401 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE1_MASK_SHIFT   12

Definition at line 402 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE1_TRANS   0x003e0000

Definition at line 403 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_MEMBASE1_TRANS_SHIFT   17

Definition at line 404 of file bonito64.h.

#define BONITO_PCIMEMBASECFG_SIZE (   WIN,
  CFG 
)    (((((~(CFG)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK)) << (BONITO_PCIMEMBASECFG_ASHIFT - BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) | BONITO_PCIMEMBASECFG_AMASK)

Definition at line 413 of file bonito64.h.

#define BONITO_PCIMEMBASECFGBASE (   WIN,
  BASE 
)    (((BASE)>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS)

Definition at line 411 of file bonito64.h.

#define BONITO_PCIMEMBASECFGSIZE (   WIN,
  SIZE 
)    (((~((SIZE)-1))>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK)

Definition at line 410 of file bonito64.h.

#define BONITO_PCIMSTAT   BONITO(BONITO_REGBASE + 0x5c)

Definition at line 219 of file bonito64.h.

#define BONITO_PCITOPHYS (   WIN,
  ADDR,
  CFG 
)
Value:

Definition at line 420 of file bonito64.h.

#define BONITO_REG_BASE   0x1fe00000

Definition at line 51 of file bonito64.h.

#define BONITO_REG_BLOCKMASK   0x300

Definition at line 233 of file bonito64.h.

#define BONITO_REG_SIZE   0x00040000

Definition at line 52 of file bonito64.h.

#define BONITO_REG_TOP   (BONITO_REG_BASE+BONITO_REG_SIZE-1)

Definition at line 53 of file bonito64.h.

#define BONITO_REGBASE   0x100

Definition at line 77 of file bonito64.h.

#define BONITO_SDCFG   BONITO(BONITO_REGBASE + 0x0c)

Definition at line 172 of file bonito64.h.

#define BONITO_SDCFG_AABSENT   0x00000040

Definition at line 273 of file bonito64.h.

#define BONITO_SDCFG_ABANKBIT   0x00000010

Definition at line 271 of file bonito64.h.

#define BONITO_SDCFG_ACOLBITS   0x0000000c

Definition at line 269 of file bonito64.h.

#define BONITO_SDCFG_ACOLBITS_SHIFT   2

Definition at line 270 of file bonito64.h.

#define BONITO_SDCFG_AROWBITS   0x00000003

Definition at line 267 of file bonito64.h.

#define BONITO_SDCFG_AROWBITS_SHIFT   0

Definition at line 268 of file bonito64.h.

#define BONITO_SDCFG_ASIDES   0x00000020

Definition at line 272 of file bonito64.h.

#define BONITO_SDCFG_AWIDTH64   0x00000080

Definition at line 274 of file bonito64.h.

#define BONITO_SDCFG_BABSENT   0x00004000

Definition at line 282 of file bonito64.h.

#define BONITO_SDCFG_BBANKBIT   0x00001000

Definition at line 280 of file bonito64.h.

#define BONITO_SDCFG_BCOLBITS   0x00000c00

Definition at line 278 of file bonito64.h.

#define BONITO_SDCFG_BCOLBITS_SHIFT   10

Definition at line 279 of file bonito64.h.

#define BONITO_SDCFG_BROWBITS   0x00000300

Definition at line 276 of file bonito64.h.

#define BONITO_SDCFG_BROWBITS_SHIFT   8

Definition at line 277 of file bonito64.h.

#define BONITO_SDCFG_BSIDES   0x00002000

Definition at line 281 of file bonito64.h.

#define BONITO_SDCFG_BWIDTH64   0x00008000

Definition at line 283 of file bonito64.h.

#define BONITO_SDCFG_DRAMBURSTLEN   0x03000000

Definition at line 296 of file bonito64.h.

#define BONITO_SDCFG_DRAMBURSTLEN_SHIFT   24

Definition at line 297 of file bonito64.h.

#define BONITO_SDCFG_DRAMEXTREGS   0x00400000

Definition at line 293 of file bonito64.h.

#define BONITO_SDCFG_DRAMMODESET   0x00200000

Definition at line 291 of file bonito64.h.

#define BONITO_SDCFG_DRAMMODESET_DONE   0x80000000

Definition at line 298 of file bonito64.h.

#define BONITO_SDCFG_DRAMPARITY   0x00800000

Definition at line 294 of file bonito64.h.

#define BONITO_SDCFG_EXTPRECH   0x00040000

Definition at line 287 of file bonito64.h.

#define BONITO_SDCFG_EXTRASCAS   0x00020000

Definition at line 286 of file bonito64.h.

#define BONITO_SDCFG_EXTRASWIDTH   0x00180000

Definition at line 288 of file bonito64.h.

#define BONITO_SDCFG_EXTRASWIDTH_SHIFT   19

Definition at line 289 of file bonito64.h.

#define BONITO_SDCFG_EXTRDDATA   0x00010000

Definition at line 285 of file bonito64.h.

#define BONITO_SOCKET_BASE   0x1f800000

Definition at line 48 of file bonito64.h.

#define BONITO_SOCKET_SIZE   0x00400000

Definition at line 49 of file bonito64.h.

#define BONITO_SOCKET_TOP   (BONITO_SOCKET_BASE+BONITO_SOCKET_SIZE-1)

Definition at line 50 of file bonito64.h.

Variable Documentation

unsigned long _pcictrl_bonito

Definition at line 56 of file malta-init.c.

unsigned long _pcictrl_bonito_pcicfg

Definition at line 57 of file malta-init.c.