Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / arch / sun4v / niagara / t1_fpga / dropins.src
CommitLineData
920dae64
AT
1# id: @(#)dropins.src 1.4 06/11/22
2# purpose: list the dropins required by this platform
3# copyright: Copyright 2006 Sun Microsystems, Inc. All Rights Reserved
4# copyright: Use is subject to license terms.
5#
6#
7# Format: key <data>
8# build <command to run>
9# depend <file>
10# target <dropin-src> <dropin-name>
11# source{ [code] terminated by }source
12# include <file>
13#
14version2
15
16# create the code to execute fcode dropins
17source{
18caps off
19" /packages/SUNW,builtin-drivers" find-device
20
21 headerless
22 : load-driver ( str$ -- )
23 find-drop-in if ( adr,len )
24 >r dup >r 1 byte-load ( )
25 r> r> free-drop-in ( )
26 then ( )
27 ;
28 headers
29
30 : interrupt-property ( n -- ) " interrupts" integer-property ;
31
32 : get-fcode ( adr1 len1 adr2 len2 -- true | false )
33 find-drop-in if
34 2dup >r >r
35 rot min rot swap move
36 r> r> free-drop-in
37 true
38 else 2drop false
39 then
40 ;
41
42 headers
43
44}source
45
46build ${MAKEDI}
47
48target bootprom.bin bootprom
49
50depend ${BP}/dev/sun4v-devices/vnexus/depend.mk
51target vnexus.fc SUNW,vnexus
52source{
53 : onboard-devices ( -- )
54 diagnostic-mode? if
55 ." Loading onboard drivers: "
56 then
57 0 0 " 100" " /" begin-package
58 " SUNW,vnexus" load-driver
59 end-package
60 ;
61}source
62
63# Fonts
64depend ${BP}/pkg/termemu/fonts.mk
65external font.di
66
67# Sunlogo
68depend ${BP}/pkg/sunlogo/logo.mk
69external sun-logo.di
70
71
72# vchannel support
73depend ${BP}/dev/sun4v-devices/vchannel/depend.mk
74target vchannel.fc sun4v-chan-dev
75source{
76 : SUNW,sun4v-channel-devices ( -- ) " sun4v-chan-dev" load-driver ;
77}source
78
79# vNET support
80depend ${BP}/dev/sun4v-devices/vnet/depend.mk
81target vnet.fc sun4v-vnet
82source{
83 : SUNW,sun4v-network ( -- ) " sun4v-vnet" load-driver ;
84}source
85
86# vDisk support
87depend ${BP}/dev/sun4v-devices/vdisk/depend.mk
88target vdisk.fc sun4v-vdisk
89source{
90 : SUNW,sun4v-disk ( -- ) " sun4v-vdisk" load-driver ;
91}source
92
93# Virtual console
94depend ${BP}/dev/sun4v-devices/console/depend.mk
95target console.fc sun4v-console
96source{
97 : SUNW,sun4v-console ( -- ) " sun4v-console" load-driver ;
98}source
99
100# Network boot support package
101depend ${BP}/pkg/dhcp/obptftp.mk
102external obptftp.di
103
104# hypervisor TOD
105depend ${BP}/dev/sun4v-devices/tod/depend.mk
106target tod.fc sun4v-tod
107source{
108 : SUNW,sun4v-tod ( -- ) " sun4v-tod" load-driver ;
109}source
110
111# virtual flashprom
112# WARNING - BINDING ON A "name" PROPERTY
113depend ${BP}/dev/sun4v-devices/flashprom/depend.mk
114target flashprom.fc sun4v-flashprom
115source{
116 : flashprom ( -- ) " sun4v-flashprom" load-driver ;
117}source
118
119# legion disk
120depend ${BP}/dev/sun4v-devices/legion-disk/depend.mk
121target sim-disk.fc legion-disk
122source{
123 : SUNW,legion-disk ( -- ) " legion-disk" load-driver ;
124 alias disk SUNW,legion-disk
125}source
126
127# t1-fpga snet
128depend ${BP}/dev/sun4v-devices/t1-fpga-snet/depend.mk
129target t1-fpga-snet.fc t1-fpga-snet
130source{
131 : SUNW,t1-fpga-snet ( -- ) " t1-fpga-snet" load-driver ;
132 alias snet SUNW,t1-fpga-snet
133}source
134
135# finish the dropins
136source{
137device-end
138caps on
139}source