Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / arch / sun4v / niagara / release / dropins.src
CommitLineData
920dae64
AT
1# ========== Copyright Header Begin ==========================================
2#
3# Hypervisor Software File: dropins.src
4#
5# Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
6#
7# - Do no alter or remove copyright notices
8#
9# - Redistribution and use of this software in source and binary forms, with
10# or without modification, are permitted provided that the following
11# conditions are met:
12#
13# - Redistribution of source code must retain the above copyright notice,
14# this list of conditions and the following disclaimer.
15#
16# - Redistribution in binary form must reproduce the above copyright notice,
17# this list of conditions and the following disclaimer in the
18# documentation and/or other materials provided with the distribution.
19#
20# Neither the name of Sun Microsystems, Inc. or the names of contributors
21# may be used to endorse or promote products derived from this software
22# without specific prior written permission.
23#
24# This software is provided "AS IS," without a warranty of any kind.
25# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
26# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
27# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
28# MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
29# ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
30# DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
31# OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
32# FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
33# DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
34# ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
35# SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
36#
37# You acknowledge that this software is not designed, licensed or
38# intended for use in the design, construction, operation or maintenance of
39# any nuclear facility.
40#
41# ========== Copyright Header End ============================================
42# id: @(#)dropins.src 1.4 06/11/22
43# purpose: list the dropins required by this platform
44# copyright: Copyright 2006 Sun Microsystems, Inc. All Rights Reserved
45# copyright: Use is subject to license terms.
46#
47#
48# Format: key <data>
49# build <command to run>
50# depend <file>
51# target <dropin-src> <dropin-name>
52# source{ [code] terminated by }source
53# include <file>
54#
55version2
56
57# create the code to execute fcode dropins
58source{
59caps off
60" /packages/SUNW,builtin-drivers" find-device
61
62 headerless
63 : load-driver ( str$ -- )
64 find-drop-in if ( adr,len )
65 >r dup >r 1 byte-load ( )
66 r> r> free-drop-in ( )
67 then ( )
68 ;
69 headers
70
71 : interrupt-property ( n -- ) " interrupts" integer-property ;
72
73 : get-fcode ( adr1 len1 adr2 len2 -- true | false )
74 find-drop-in if
75 2dup >r >r
76 rot min rot swap move
77 r> r> free-drop-in
78 true
79 else 2drop false
80 then
81 ;
82
83 headers
84
85}source
86
87build ${MAKEDI}
88
89target bootprom.bin bootprom
90
91depend ${BP}/dev/sun4v-devices/vnexus/depend.mk
92target vnexus.fc SUNW,vnexus
93source{
94 : onboard-devices ( -- )
95 diagnostic-mode? if
96 ." Loading onboard drivers: "
97 then
98 0 0 " 100" " /" begin-package
99 " SUNW,vnexus" load-driver
100 end-package
101 ;
102}source
103
104# Fonts
105depend ${BP}/pkg/termemu/fonts.mk
106external font.di
107
108# Sunlogo
109depend ${BP}/pkg/sunlogo/logo.mk
110external sun-logo.di
111
112
113# vchannel support
114depend ${BP}/dev/sun4v-devices/vchannel/depend.mk
115target vchannel.fc sun4v-chan-dev
116source{
117 : SUNW,sun4v-channel-devices ( -- ) " sun4v-chan-dev" load-driver ;
118}source
119
120# vNET support
121depend ${BP}/dev/sun4v-devices/vnet/depend.mk
122target vnet.fc sun4v-vnet
123source{
124 : SUNW,sun4v-network ( -- ) " sun4v-vnet" load-driver ;
125}source
126
127# vDisk support
128depend ${BP}/dev/sun4v-devices/vdisk/depend.mk
129target vdisk.fc sun4v-vdisk
130source{
131 : SUNW,sun4v-disk ( -- ) " sun4v-vdisk" load-driver ;
132}source
133
134# Virtual console
135depend ${BP}/dev/sun4v-devices/console/depend.mk
136target console.fc sun4v-console
137source{
138 : SUNW,sun4v-console ( -- ) " sun4v-console" load-driver ;
139}source
140
141# Network boot support package
142depend ${BP}/pkg/dhcp/obptftp.mk
143external obptftp.di
144
145# hypervisor TOD
146depend ${BP}/dev/sun4v-devices/tod/depend.mk
147target tod.fc sun4v-tod
148source{
149 : SUNW,sun4v-tod ( -- ) " sun4v-tod" load-driver ;
150}source
151
152# virtual flashprom
153# WARNING - BINDING ON A "name" PROPERTY
154depend ${BP}/dev/sun4v-devices/flashprom/depend.mk
155target flashprom.fc sun4v-flashprom
156source{
157 : flashprom ( -- ) " sun4v-flashprom" load-driver ;
158}source
159
160# legion disk
161depend ${BP}/dev/sun4v-devices/legion-disk/depend.mk
162target sim-disk.fc legion-disk
163source{
164 : SUNW,legion-disk ( -- ) " legion-disk" load-driver ;
165 alias disk SUNW,legion-disk
166}source
167
168# finish the dropins
169source{
170device-end
171caps on
172}source