files.discovery revision 1.13 1 # $NetBSD: files.discovery,v 1.13 2010/06/02 06:18:11 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
20 defparam opt_marvell.h MPSC_CONSOLE
21 defparam opt_marvell.h GT_MPSC_DEFAULT_BAUD_RATE
22 defparam opt_marvell.h GT_MPSC_FREQUENCY GT_MPSC_CLOCK_SOURCE
23 defparam opt_marvell.h GT_MPP_WATCHDOG
24 defflag opt_marvell.h GT_DEVBUS GT_ECC GT_COMM GT_WATCHDOG
25
26 define gt { [unit = -1], [offset = -1], [irq = -1] }
27 device gt: gt
28 file dev/marvell/gt.c gt
29
30 # PCI Interface
31 define gtpci
32 file dev/marvell/gtpci.c gtpci & gtpci_gt needs-flag
33 device gtpci: pcibus
34 attach 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
43 define gfec { [port = -1], [irq = -1] }
44 device gfec: gfec
45 attach gfec at gt
46 device gfe: ether, ifnet, arp, mii
47 attach gfe at gfec
48 file dev/marvell/if_gfe.c gfec | gfe
49
50 # Multi-Protocol Serial controller
51 device gtmpsc: tty
52 attach gtmpsc at gt
53 file dev/marvell/gtmpsc.c gtmpsc needs-flag
54
55 define obio { [offset = -1], [size = 0], [irq = -1] }
56 device obio: obio
57 attach obio at gt
58 file 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
83 define gttwsi
84 file dev/marvell/gttwsi.c gttwsi
85 device gttwsi: i2cbus, gttwsi
86 attach 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