1# $NetBSD: files.discovery,v 1.11 2010/04/28 13:51:56 kiyohara Exp $ 2# 3# Config file and device description for machine-independent support for 4# the Marvell (formerly Galileo Technology) Discovery system controllers. 5# 6# Ports that include this must also supply some glue code of their own. 7# Notably: 8# * devices here are indirectly configured by the configuration 9# file since different systems will be configured somewhat 10# differently, 11# * The Multi-Purpose Port (MPP) is configured differently on 12# different systems, 13# * CPU attachment is handled in largely a machine-independent 14# fashion, 15# * The interrupts on different systems will be handled differently. 16# 17# Systems with multiple GT controllers are not currently handled by this 18# code. 19 20defparam opt_marvell.h MPSC_CONSOLE 21defparam opt_marvell.h GT_MPSC_DEFAULT_BAUD_RATE 22defparam opt_marvell.h GT_MPSC_FREQUENCY GT_MPSC_CLOCK_SOURCE 23defparam opt_marvell.h GT_MPP_WATCHDOG 24defflag opt_marvell.h GT_DEVBUS GT_ECC GT_COMM GT_WATCHDOG 25 26define gt { [unit = -1], [offset = -1], [irq = -1] } 27device gt: gt 28file dev/marvell/gt.c gt 29 30# PCI Interface 31define gtpci 32file dev/marvell/gtpci.c gtpci & gtpci_gt needs-flag 33device gtpci: pcibus 34attach gtpci at gt with gtpci_gt 35 36# PCI Express Interface 37#define mvpex 38#file dev/marvell/mvpex.c mvpex & (mvpex_gt|mvpex_mbus) needs-flag 39#device mvpex: pcibus 40#attach mvpex at gt with mvpex_gt 41 42# Fast ethernet 43define gfec { [port = -1], [irq = -1] } 44device gfec: gfec 45attach gfec at gt 46device gfe: ether, ifnet, arp, mii 47attach gfe at gfec 48file dev/marvell/if_gfe.c gfec | gfe 49 50# Multi-Protocol Serial controller 51device gtmpsc: tty 52attach gtmpsc at gt 53file dev/marvell/gtmpsc.c gtmpsc needs-flag 54 55define obio { [offset = -1], [size = 0], [irq = -1] } 56device obio: obio 57attach obio at gt 58file dev/marvell/obio.c obio 59 60# Serial-ATA II Host Controller (SATAHC) 61#attach mvsata at gt with mvsata_gt 62#file dev/marvell/mvsata_mv.c mvsata_gt | mvsata_mbus 63 64# Gigabit Ethernet Controller Interface 65#define mvgbec { [port = -1], [irq = -1] } 66#device mvgbec: mvgbec 67#attach mvgbec at gt with mvgbec_gt 68#device mvgbe: ether, ifnet, arp, mii 69#attach mvgbe at mvgbec 70#file dev/marvell/if_mvgbe.c mvgbec | mvgbe 71 72# USB 2.0 Interface 73#attach ehci at gt with mvusb_gt 74#file dev/marvell/ehci_mv.c mvusb_gt | mvusb_mbus 75 76# Cryptographic Engines and Security Accelerator 77#define mvcesa 78#file dev/marvell/mvcesa.c mvcesa 79#device mvcesa: opencrypto 80#attach mvcesa at gt with mvcesa_gt 81 82# Two-Wire Serial Interface 83define gttwsi 84file dev/marvell/gttwsi.c gttwsi 85device gttwsi: i2cbus, gttwsi 86attach gttwsi at gt with gttwsi_gt 87 88# UART Interface 89#attach com at gt with mvuart_gt 90#file dev/marvell/com_mv.c mvuart_gt | mvuart_mbus 91 92# IDMA Controller and XOR Engine 93#define gtidmac 94#file dev/marvell/gtidmac.c gtidmac 95#device gtidmac: dmover_service 96#attach gtidmac at gt with gtidmac_gt 97